| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Invoked by InstantLoader to commit the preview. | 121 // Invoked by InstantLoader to commit the preview. |
| 122 void CommitInstantLoader(InstantLoader* loader); | 122 void CommitInstantLoader(InstantLoader* loader); |
| 123 | 123 |
| 124 // Invoked by InstantLoader to request that the preview be shown. | 124 // Invoked by InstantLoader to request that the preview be shown. |
| 125 void ShowInstantPreview(InstantLoader* loader, | 125 void ShowInstantPreview(InstantLoader* loader, |
| 126 InstantShownReason reason, | 126 InstantShownReason reason, |
| 127 int height, | 127 int height, |
| 128 InstantSizeUnits units); | 128 InstantSizeUnits units); |
| 129 | 129 |
| 130 // Invoked by InstantLoader to request the browser to start capturing user key |
| 131 // strokes. |
| 132 void StartCapturingKeyStrokes(InstantLoader* loader); |
| 133 |
| 130 // Invoked by InstantLoader when it has determined whether or not the page | 134 // Invoked by InstantLoader when it has determined whether or not the page |
| 131 // supports the Instant API. | 135 // supports the Instant API. |
| 132 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); | 136 void InstantSupportDetermined(InstantLoader* loader, bool supports_instant); |
| 133 | 137 |
| 134 // Invoked by InstantLoader when it has swapped a different TabContents into | 138 // Invoked by InstantLoader when it has swapped a different TabContents into |
| 135 // the preview, usually because a prerendered page was navigated to. | 139 // the preview, usually because a prerendered page was navigated to. |
| 136 void SwappedTabContents(InstantLoader* loader); | 140 void SwappedTabContents(InstantLoader* loader); |
| 137 | 141 |
| 138 // Invoked by InstantLoader when the preview gains focus, usually due to the | 142 // Invoked by InstantLoader when the preview gains focus, usually due to the |
| 139 // user clicking on it. | 143 // user clicking on it. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 253 |
| 250 // The timestamp at which query editing began. This value is used when the | 254 // The timestamp at which query editing began. This value is used when the |
| 251 // first set of suggestions is processed and cleared when the overlay is | 255 // first set of suggestions is processed and cleared when the overlay is |
| 252 // hidden. | 256 // hidden. |
| 253 base::Time first_interaction_time_; | 257 base::Time first_interaction_time_; |
| 254 | 258 |
| 255 DISALLOW_COPY_AND_ASSIGN(InstantController); | 259 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 256 }; | 260 }; |
| 257 | 261 |
| 258 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ | 262 #endif // CHROME_BROWSER_INSTANT_INSTANT_CONTROLLER_H_ |
| OLD | NEW |