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_LOADER_H_ | 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 6 #define CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Tells the preview page about the current theme background. | 77 // Tells the preview page about the current theme background. |
78 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); | 78 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); |
79 | 79 |
80 // Tells the preview page about the current theme area height. | 80 // Tells the preview page about the current theme area height. |
81 void SendThemeAreaHeight(int height); | 81 void SendThemeAreaHeight(int height); |
82 | 82 |
83 // Tells the preview page that the user pressed the up or down key. |count| | 83 // Tells the preview page that the user pressed the up or down key. |count| |
84 // is a repeat count, negative for moving up, positive for moving down. | 84 // is a repeat count, negative for moving up, positive for moving down. |
85 void OnUpOrDownKeyPressed(int count); | 85 void OnUpOrDownKeyPressed(int count); |
86 | 86 |
| 87 // Tells the preview page that the browser has started capturing user key |
| 88 // strokes. |
| 89 void OnStartedCapturingKeyStrokes(); |
| 90 |
| 91 // Tells the preview page that the browser has stopped capturing user key |
| 92 // strokes. |
| 93 void OnStoppedCapturingKeyStrokes(); |
| 94 |
87 // Tells the preview page that the active tab's search mode has changed. | 95 // Tells the preview page that the active tab's search mode has changed. |
88 void SearchModeChanged(const chrome::search::Mode& mode); | 96 void SearchModeChanged(const chrome::search::Mode& mode); |
89 | 97 |
90 // Called by the history tab helper with the information that it would have | 98 // Called by the history tab helper with the information that it would have |
91 // added to the history service had this web contents not been used for | 99 // added to the history service had this web contents not been used for |
92 // Instant. | 100 // Instant. |
93 void DidNavigate(const history::HistoryAddPageArgs& add_page_args); | 101 void DidNavigate(const history::HistoryAddPageArgs& add_page_args); |
94 | 102 |
95 // Releases the preview TabContents passing ownership to the caller. This | 103 // Releases the preview TabContents passing ownership to the caller. This |
96 // should be called when the preview is committed. Notifies the page but not | 104 // should be called when the preview is committed. Notifies the page but not |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // Used to get notifications about renderers coming and going. | 166 // Used to get notifications about renderers coming and going. |
159 content::NotificationRegistrar registrar_; | 167 content::NotificationRegistrar registrar_; |
160 | 168 |
161 // See comments on the getter above. | 169 // See comments on the getter above. |
162 history::HistoryAddPageArgs last_navigation_; | 170 history::HistoryAddPageArgs last_navigation_; |
163 | 171 |
164 DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 172 DISALLOW_COPY_AND_ASSIGN(InstantLoader); |
165 }; | 173 }; |
166 | 174 |
167 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 175 #endif // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ |
OLD | NEW |