| 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 #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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Invoked by the page when its support for the Instant API is determined. | 124 // Invoked by the page when its support for the Instant API is determined. |
| 125 void InstantSupportDetermined(const content::WebContents* contents, | 125 void InstantSupportDetermined(const content::WebContents* contents, |
| 126 bool supports_instant); | 126 bool supports_instant); |
| 127 | 127 |
| 128 // Invoked by InstantLoader to request that the preview be shown. | 128 // Invoked by InstantLoader to request that the preview be shown. |
| 129 void ShowInstantPreview(InstantShownReason reason, | 129 void ShowInstantPreview(InstantShownReason reason, |
| 130 int height, | 130 int height, |
| 131 InstantSizeUnits units); | 131 InstantSizeUnits units); |
| 132 | 132 |
| 133 // Invoked by InstantLoader to request the browser to start capturing user key |
| 134 // strokes. |
| 135 void StartCapturingKeyStrokes(); |
| 136 |
| 133 // Invoked by InstantLoader when it has swapped a different WebContents into | 137 // Invoked by InstantLoader when it has swapped a different WebContents into |
| 134 // the preview, usually because a prerendered page was navigated to. | 138 // the preview, usually because a prerendered page was navigated to. |
| 135 void SwappedWebContents(); | 139 void SwappedWebContents(); |
| 136 | 140 |
| 137 // Invoked by InstantLoader when the preview gains focus, usually due to the | 141 // Invoked by InstantLoader when the preview gains focus, usually due to the |
| 138 // user clicking on it. | 142 // user clicking on it. |
| 139 void InstantLoaderContentsFocused(); | 143 void InstantLoaderContentsFocused(); |
| 140 | 144 |
| 141 private: | 145 private: |
| 142 FRIEND_TEST_ALL_PREFIXES(InstantTest, OmniboxFocusLoadsInstant); | 146 FRIEND_TEST_ALL_PREFIXES(InstantTest, OmniboxFocusLoadsInstant); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 275 |
| 272 // Whether to allow the preview to show search suggestions. In general, the | 276 // Whether to allow the preview to show search suggestions. In general, the |
| 273 // preview is allowed to show search suggestions whenever |search_mode_| is | 277 // preview is allowed to show search suggestions whenever |search_mode_| is |
| 274 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. | 278 // MODE_SEARCH_SUGGESTIONS, except in those cases where this is false. |
| 275 bool allow_preview_to_show_search_suggestions_; | 279 bool allow_preview_to_show_search_suggestions_; |
| 276 | 280 |
| 277 DISALLOW_COPY_AND_ASSIGN(InstantController); | 281 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 278 }; | 282 }; |
| 279 | 283 |
| 280 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 284 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
| OLD | NEW |