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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |