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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 virtual void RendererResponsive(RenderViewHost* render_view_host) {} | 155 virtual void RendererResponsive(RenderViewHost* render_view_host) {} |
156 | 156 |
157 // Notification that the RenderViewHost's load state changed. | 157 // Notification that the RenderViewHost's load state changed. |
158 virtual void LoadStateChanged(const GURL& url, | 158 virtual void LoadStateChanged(const GURL& url, |
159 const net::LoadStateWithParam& load_state, | 159 const net::LoadStateWithParam& load_state, |
160 uint64 upload_position, | 160 uint64 upload_position, |
161 uint64 upload_size) {} | 161 uint64 upload_size) {} |
162 | 162 |
163 // The page wants the hosting window to activate/deactivate itself (it | 163 // The page wants the hosting window to activate/deactivate itself (it |
164 // called the JavaScript window.focus()/blur() method). | 164 // called the JavaScript window.focus()/blur() method). |
165 virtual void Activate() {} | 165 virtual void Activate(bool user_gesture) {} |
166 virtual void Deactivate() {} | 166 virtual void Deactivate() {} |
167 | 167 |
168 // Notification that the view has lost capture. | 168 // Notification that the view has lost capture. |
169 virtual void LostCapture() {} | 169 virtual void LostCapture() {} |
170 | 170 |
171 // Called when a file selection is to be done. | 171 // Called when a file selection is to be done. |
172 virtual void RunFileChooser( | 172 virtual void RunFileChooser( |
173 RenderViewHost* render_view_host, | 173 RenderViewHost* render_view_host, |
174 const FileChooserParams& params) {} | 174 const FileChooserParams& params) {} |
175 | 175 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 271 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
272 virtual bool IsVirtualKeyboardRequested(); | 272 virtual bool IsVirtualKeyboardRequested(); |
273 | 273 |
274 protected: | 274 protected: |
275 virtual ~RenderViewHostDelegate() {} | 275 virtual ~RenderViewHostDelegate() {} |
276 }; | 276 }; |
277 | 277 |
278 } // namespace content | 278 } // namespace content |
279 | 279 |
280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |