OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 // responsive again. The delegate can use this notification to end the | 154 // responsive again. The delegate can use this notification to end the |
155 // warning shown to the user. | 155 // warning shown to the user. |
156 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 156 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
157 | 157 |
158 // Notification that the RenderViewHost's load state changed. | 158 // Notification that the RenderViewHost's load state changed. |
159 virtual void LoadStateChanged(const GURL& url, | 159 virtual void LoadStateChanged(const GURL& url, |
160 const net::LoadStateWithParam& load_state, | 160 const net::LoadStateWithParam& load_state, |
161 uint64 upload_position, | 161 uint64 upload_position, |
162 uint64 upload_size) {} | 162 uint64 upload_size) {} |
163 | 163 |
164 // The page wants the hosting window to activate/deactivate itself (it | 164 // The page wants the hosting window to activate itself (it called the |
165 // called the JavaScript window.focus()/blur() method). | 165 // JavaScript window.focus() method). |
166 virtual void Activate() {} | 166 virtual void Activate() {} |
167 virtual void Deactivate() {} | |
168 | 167 |
169 // Notification that the view has lost capture. | 168 // Notification that the view has lost capture. |
170 virtual void LostCapture() {} | 169 virtual void LostCapture() {} |
171 | 170 |
172 // Called when a file selection is to be done. | 171 // Called when a file selection is to be done. |
173 virtual void RunFileChooser( | 172 virtual void RunFileChooser( |
174 RenderViewHost* render_view_host, | 173 RenderViewHost* render_view_host, |
175 const FileChooserParams& params) {} | 174 const FileChooserParams& params) {} |
176 | 175 |
177 // Returns whether the associated tab is in fullscreen mode. | 176 // Returns whether the associated tab is in fullscreen mode. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 276 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
278 virtual bool IsVirtualKeyboardRequested(); | 277 virtual bool IsVirtualKeyboardRequested(); |
279 | 278 |
280 protected: | 279 protected: |
281 virtual ~RenderViewHostDelegate() {} | 280 virtual ~RenderViewHostDelegate() {} |
282 }; | 281 }; |
283 | 282 |
284 } // namespace content | 283 } // namespace content |
285 | 284 |
286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 285 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |