| 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 either started or stopped | 
|  | 88   // capturing user key strokes. | 
|  | 89   void OnKeyCaptureChange(bool is_key_capture_enabled); | 
|  | 90 | 
| 87   // Tells the preview page that the active tab's search mode has changed. | 91   // Tells the preview page that the active tab's search mode has changed. | 
| 88   void SearchModeChanged(const chrome::search::Mode& mode); | 92   void SearchModeChanged(const chrome::search::Mode& mode); | 
| 89 | 93 | 
| 90   // Called by the history tab helper with the information that it would have | 94   // 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 | 95   // added to the history service had this web contents not been used for | 
| 92   // Instant. | 96   // Instant. | 
| 93   void DidNavigate(const history::HistoryAddPageArgs& add_page_args); | 97   void DidNavigate(const history::HistoryAddPageArgs& add_page_args); | 
| 94 | 98 | 
| 95   // Releases the preview TabContents passing ownership to the caller. This | 99   // Releases the preview TabContents passing ownership to the caller. This | 
| 96   // should be called when the preview is committed. Notifies the page but not | 100   // 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. | 162   // Used to get notifications about renderers coming and going. | 
| 159   content::NotificationRegistrar registrar_; | 163   content::NotificationRegistrar registrar_; | 
| 160 | 164 | 
| 161   // See comments on the getter above. | 165   // See comments on the getter above. | 
| 162   history::HistoryAddPageArgs last_navigation_; | 166   history::HistoryAddPageArgs last_navigation_; | 
| 163 | 167 | 
| 164   DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 168   DISALLOW_COPY_AND_ASSIGN(InstantLoader); | 
| 165 }; | 169 }; | 
| 166 | 170 | 
| 167 #endif  // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 171 #endif  // CHROME_BROWSER_INSTANT_INSTANT_LOADER_H_ | 
| OLD | NEW | 
|---|