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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 // Invoked by InstantLoader to request that the preview be shown. | 115 // Invoked by InstantLoader to request that the preview be shown. |
116 void ShowInstantPreview(InstantLoader* loader, | 116 void ShowInstantPreview(InstantLoader* loader, |
117 InstantShownReason reason, | 117 InstantShownReason reason, |
118 int height, | 118 int height, |
119 InstantSizeUnits units); | 119 InstantSizeUnits units); |
120 | 120 |
121 // Invoked by InstantLoader when it has determined whether or not the page | 121 // Invoked by InstantLoader when it has determined whether or not the page |
122 // supports the Instant API. | 122 // supports the Instant API. |
123 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); | 123 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); |
124 | 124 |
125 // Invoked by InstantLoader to notify that the Instant page searchbox received | |
126 // or lost focus. | |
127 void OnWebSearchBoxFocusChange(InstantLoader* loader, bool is_foxued); | |
Mathieu
2012/11/20 23:26:01
*is_focused
*OnWebSearchBoxFocusChanged to be cons
samarth
2012/11/21 00:40:15
Done. Also renamed all the other methods to be co
| |
128 | |
125 // Invoked by InstantLoader when it has swapped a different TabContents into | 129 // Invoked by InstantLoader when it has swapped a different TabContents into |
126 // the preview, usually because a prerendered page was navigated to. | 130 // the preview, usually because a prerendered page was navigated to. |
127 void SwappedTabContents(InstantLoader* loader); | 131 void SwappedTabContents(InstantLoader* loader); |
128 | 132 |
129 // Invoked by InstantLoader when the preview gains focus, usually due to the | 133 // Invoked by InstantLoader when the preview gains focus, usually due to the |
130 // user clicking on it. | 134 // user clicking on it. |
131 void InstantLoaderContentsFocused(InstantLoader* loader); | 135 void InstantLoaderContentsFocused(InstantLoader* loader); |
132 | 136 |
133 #if defined(UNIT_TEST) | 137 #if defined(UNIT_TEST) |
134 // Accessors used only in tests. | 138 // Accessors used only in tests. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
240 | 244 |
241 // The timestamp at which query editing began. This value is used when the | 245 // The timestamp at which query editing began. This value is used when the |
242 // first set of suggestions is processed and cleared when the overlay is | 246 // first set of suggestions is processed and cleared when the overlay is |
243 // hidden. | 247 // hidden. |
244 base::Time first_interaction_time_; | 248 base::Time first_interaction_time_; |
245 | 249 |
246 DISALLOW_COPY_AND_ASSIGN(InstantController); | 250 DISALLOW_COPY_AND_ASSIGN(InstantController); |
247 }; | 251 }; |
248 | 252 |
249 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 253 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
OLD | NEW |