Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: chrome/browser/instant/instant_loader.h

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: Fix js error. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698