OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 var chrome; | 5 var chrome; |
6 if (!chrome) | 6 if (!chrome) |
7 chrome = {}; | 7 chrome = {}; |
8 | 8 |
9 if (!chrome.embeddedSearch) { | 9 if (!chrome.embeddedSearch) { |
10 chrome.embeddedSearch = new function() { | 10 chrome.embeddedSearch = new function() { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 }; | 118 }; |
119 | 119 |
120 // This method is restricted to chrome-search://most-visited pages by | 120 // This method is restricted to chrome-search://most-visited pages by |
121 // checking the invoking context's origin in searchbox_extension.cc. | 121 // checking the invoking context's origin in searchbox_extension.cc. |
122 this.logEvent = function(histogram_name) { | 122 this.logEvent = function(histogram_name) { |
123 LogEvent(histogram_name); | 123 LogEvent(histogram_name); |
124 }; | 124 }; |
125 | 125 |
126 // This method is restricted to chrome-search://most-visited pages by | 126 // This method is restricted to chrome-search://most-visited pages by |
127 // checking the invoking context's origin in searchbox_extension.cc. | 127 // checking the invoking context's origin in searchbox_extension.cc. |
128 this.logMostVisitedImpression = function(position, provider) { | 128 this.logMostVisitedImpression = function(position, tileSource, tileType) { |
129 LogMostVisitedImpression(position, provider); | 129 LogMostVisitedImpression(position, tileSource, tileType); |
130 }; | 130 }; |
131 | 131 |
132 // This method is restricted to chrome-search://most-visited pages by | 132 // This method is restricted to chrome-search://most-visited pages by |
133 // checking the invoking context's origin in searchbox_extension.cc. | 133 // checking the invoking context's origin in searchbox_extension.cc. |
134 this.logMostVisitedNavigation = function(position, provider) { | 134 this.logMostVisitedNavigation = function(position, tileSource, tileType) { |
135 LogMostVisitedNavigation(position, provider); | 135 LogMostVisitedNavigation(position, tileSource, tileType); |
136 }; | 136 }; |
137 | 137 |
138 this.undoAllMostVisitedDeletions = function() { | 138 this.undoAllMostVisitedDeletions = function() { |
139 UndoAllMostVisitedDeletions(); | 139 UndoAllMostVisitedDeletions(); |
140 }; | 140 }; |
141 | 141 |
142 this.undoMostVisitedDeletion = function(restrictedId) { | 142 this.undoMostVisitedDeletion = function(restrictedId) { |
143 UndoMostVisitedDeletion(restrictedId); | 143 UndoMostVisitedDeletion(restrictedId); |
144 }; | 144 }; |
145 | 145 |
146 this.onsignedincheckdone = null; | 146 this.onsignedincheckdone = null; |
147 this.onhistorysynccheckdone = null; | 147 this.onhistorysynccheckdone = null; |
148 this.oninputcancel = null; | 148 this.oninputcancel = null; |
149 this.oninputstart = null; | 149 this.oninputstart = null; |
150 this.onmostvisitedchange = null; | 150 this.onmostvisitedchange = null; |
151 this.onthemechange = null; | 151 this.onthemechange = null; |
152 }; | 152 }; |
153 | 153 |
154 // TODO(jered): Remove when google no longer expects this object. | 154 // TODO(jered): Remove when google no longer expects this object. |
155 chrome.searchBox = this.searchBox; | 155 chrome.searchBox = this.searchBox; |
156 }; | 156 }; |
157 } | 157 } |
OLD | NEW |