-
Notifications
You must be signed in to change notification settings - Fork 6.6k
/
externs.js
54 lines (47 loc) · 1.45 KB
/
externs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* @license
* Copyright 2019 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @fileoverview Externs for objects sent from C++ to
* chrome-search://most-visited/title.html.
* @externs
*/
/**************************** Embedded Search API ****************************/
/**
* Embedded Search API methods defined in
* chrome/renderer/searchbox/searchbox_extension.cc:
* NewTabPageBindings::GetObjectTemplateBuilder()
*/
window.chrome;
window.chrome.embeddedSearch;
window.chrome.embeddedSearch.newTabPage;
/**
* @param {number} rid
*/
window.chrome.embeddedSearch.newTabPage.getMostVisitedItemData;
/**
* @typedef {{
* alternateLogo: boolean,
* attribution1: (string|undefined),
* attribution2: (string|undefined),
* attributionActionUrl: (string|undefined),
* attributionUrl: (string|undefined),
* backgroundColorRgba: !Array<number>,
* collectionId: (string|undefined),
* customBackgroundConfigured: boolean,
* imageHorizontalAlignment: (string|undefined),
* imageTiling: (string|undefined),
* imageUrl: (string|undefined),
* imageVerticalAlignment: (string|undefined),
* textColorLightRgba: !Array<number>,
* textColorRgba: !Array<number>,
* usingDefaultTheme: boolean,
* }}
*/
let NtpTheme;
/** @type {?NtpTheme} */
window.chrome.embeddedSearch.newTabPage.ntpTheme;