OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 // An experimental API that allows extensions to inject suggest links in the rec
ommended pane of the New Tab Page. |
5 namespace experimental.discovery { | 6 namespace experimental.discovery { |
6 | 7 |
7 dictionary SuggestDetails { | 8 dictionary SuggestDetails { |
8 // The URL to suggest and that will be displayed in the new tab page under | 9 // The URL to suggest and that will be displayed in the new tab page under |
9 // the recommended pane. | 10 // the recommended pane. |
10 DOMString linkUrl; | 11 DOMString linkUrl; |
11 | 12 |
12 // The linkified text. It should be relatively short. | 13 // The linkified text. It should be relatively short. |
13 DOMString linkText; | 14 DOMString linkText; |
14 | 15 |
(...skipping 16 matching lines...) Expand all Loading... |
31 // extension. | 32 // extension. |
32 // |linkUrl|: The URl to remove from discovery. Must be exactly the same as | 33 // |linkUrl|: The URl to remove from discovery. Must be exactly the same as |
33 // a linkUrl previously used on a call to suggest. | 34 // a linkUrl previously used on a call to suggest. |
34 static void removeSuggestion(DOMString linkUrl); | 35 static void removeSuggestion(DOMString linkUrl); |
35 | 36 |
36 // Clear all the URLs that were previously suggested for discovery by this | 37 // Clear all the URLs that were previously suggested for discovery by this |
37 // extension. | 38 // extension. |
38 static void clearAllSuggestions(); | 39 static void clearAllSuggestions(); |
39 }; | 40 }; |
40 }; | 41 }; |
OLD | NEW |