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

Side by Side Diff: chrome/browser/instant/instant_client.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: Rebase. 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_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // Tells the page about the current theme background. 115 // Tells the page about the current theme background.
116 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info); 116 void SendThemeBackgroundInfo(const ThemeBackgroundInfo& theme_info);
117 117
118 // Tells the page about the current theme area height. 118 // Tells the page about the current theme area height.
119 void SendThemeAreaHeight(int height); 119 void SendThemeAreaHeight(int height);
120 120
121 // Tells the page whether it is allowed to display Instant results. 121 // Tells the page whether it is allowed to display Instant results.
122 void SetDisplayInstantResults(bool display_instant_results); 122 void SetDisplayInstantResults(bool display_instant_results);
123 123
124 // Tells the page whether the browser is capturing user key strokes.
125 void KeyCaptureChanged(bool is_key_capture_enabled);
126
124 private: 127 private:
125 // Overridden from content::WebContentsObserver: 128 // Overridden from content::WebContentsObserver:
126 virtual void DidFinishLoad( 129 virtual void DidFinishLoad(
127 int64 frame_id, 130 int64 frame_id,
128 const GURL& validated_url, 131 const GURL& validated_url,
129 bool is_main_frame, 132 bool is_main_frame,
130 content::RenderViewHost* render_view_host) OVERRIDE; 133 content::RenderViewHost* render_view_host) OVERRIDE;
131 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 134 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
132 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; 135 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE;
133 virtual void DidCommitProvisionalLoadForFrame( 136 virtual void DidCommitProvisionalLoadForFrame(
(...skipping 12 matching lines...) Expand all
146 InstantSizeUnits units); 149 InstantSizeUnits units);
147 void StartCapturingKeyStrokes(int page_id); 150 void StartCapturingKeyStrokes(int page_id);
148 void StopCapturingKeyStrokes(int page_id); 151 void StopCapturingKeyStrokes(int page_id);
149 152
150 Delegate* const delegate_; 153 Delegate* const delegate_;
151 154
152 DISALLOW_COPY_AND_ASSIGN(InstantClient); 155 DISALLOW_COPY_AND_ASSIGN(InstantClient);
153 }; 156 };
154 157
155 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 158 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/ui/omnibox/omnibox_edit_model.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698