| 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 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 int height, | 159 int height, |
| 160 InstantSizeUnits units); | 160 InstantSizeUnits units); |
| 161 | 161 |
| 162 // Invoked by InstantLoader to notify that the Instant URL completed loading. | 162 // Invoked by InstantLoader to notify that the Instant URL completed loading. |
| 163 void InstantLoaderPreviewLoaded(InstantLoader* loader); | 163 void InstantLoaderPreviewLoaded(InstantLoader* loader); |
| 164 | 164 |
| 165 // Invoked by InstantLoader when it has determined whether or not the page | 165 // Invoked by InstantLoader when it has determined whether or not the page |
| 166 // supports the Instant API. | 166 // supports the Instant API. |
| 167 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); | 167 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); |
| 168 | 168 |
| 169 // Invoked by InstantLoader to notify that the Instant page searchbox lost |
| 170 // focus. |
| 171 void OnWebSearchBoxBlur(InstantLoader* loader); |
| 172 |
| 173 // Invoked by InstantLoader to notify that the Instant page searchbox received |
| 174 // focus. |
| 175 void OnWebSearchBoxFocus(InstantLoader* loader); |
| 176 |
| 169 // Invoked by InstantLoader when it has swapped a different TabContents into | 177 // Invoked by InstantLoader when it has swapped a different TabContents into |
| 170 // the preview, usually because a prerendered page was navigated to. | 178 // the preview, usually because a prerendered page was navigated to. |
| 171 void SwappedTabContents(InstantLoader* loader); | 179 void SwappedTabContents(InstantLoader* loader); |
| 172 | 180 |
| 173 // Invoked by InstantLoader when the preview gains focus, usually due to the | 181 // Invoked by InstantLoader when the preview gains focus, usually due to the |
| 174 // user clicking on it. | 182 // user clicking on it. |
| 175 void InstantLoaderContentsFocused(InstantLoader* loader); | 183 void InstantLoaderContentsFocused(InstantLoader* loader); |
| 176 | 184 |
| 177 #if defined(UNIT_TEST) | 185 #if defined(UNIT_TEST) |
| 178 // Accessors used only in tests. | 186 // Accessors used only in tests. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // Search terms extraction (for autocomplete history matches) doesn't work | 283 // Search terms extraction (for autocomplete history matches) doesn't work |
| 276 // on Instant URLs. So, whenever the user commits an Instant search, we add | 284 // on Instant URLs. So, whenever the user commits an Instant search, we add |
| 277 // an equivalent non-Instant search URL to history, so that the search shows | 285 // an equivalent non-Instant search URL to history, so that the search shows |
| 278 // up in autocomplete history matches. | 286 // up in autocomplete history matches. |
| 279 GURL url_for_history_; | 287 GURL url_for_history_; |
| 280 | 288 |
| 281 DISALLOW_COPY_AND_ASSIGN(InstantController); | 289 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 282 }; | 290 }; |
| 283 | 291 |
| 284 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 292 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
| OLD | NEW |