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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 virtual void HandleMouseUp() {} | 184 virtual void HandleMouseUp() {} |
185 virtual void HandlePointerActivate() {} | 185 virtual void HandlePointerActivate() {} |
186 virtual void HandleGestureBegin() {} | 186 virtual void HandleGestureBegin() {} |
187 virtual void HandleGestureEnd() {} | 187 virtual void HandleGestureEnd() {} |
188 | 188 |
189 // Called when a file selection is to be done. | 189 // Called when a file selection is to be done. |
190 virtual void RunFileChooser( | 190 virtual void RunFileChooser( |
191 RenderViewHost* render_view_host, | 191 RenderViewHost* render_view_host, |
192 const FileChooserParams& params) {} | 192 const FileChooserParams& params) {} |
193 | 193 |
194 // Notification that the page wants to go into or out of fullscreen mode. | 194 // Returns whether the associated tab is in fullscreen mode. |
195 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | |
196 virtual bool IsFullscreenForCurrentTab() const; | 195 virtual bool IsFullscreenForCurrentTab() const; |
197 | 196 |
198 // The contents' preferred size changed. | 197 // The contents' preferred size changed. |
199 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 198 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
200 | 199 |
201 // The contents auto-resized and the container should match it. | 200 // The contents auto-resized and the container should match it. |
202 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 201 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
203 | 202 |
204 // Requests to lock the mouse. Once the request is approved or rejected, | 203 // Requests to lock the mouse. Once the request is approved or rejected, |
205 // GotResponseToLockMouseRequest() will be called on the requesting render | 204 // GotResponseToLockMouseRequest() will be called on the requesting render |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 virtual void SetIsVirtualKeyboardRequested(bool requested) {} | 286 virtual void SetIsVirtualKeyboardRequested(bool requested) {} |
288 virtual bool IsVirtualKeyboardRequested(); | 287 virtual bool IsVirtualKeyboardRequested(); |
289 | 288 |
290 protected: | 289 protected: |
291 virtual ~RenderViewHostDelegate() {} | 290 virtual ~RenderViewHostDelegate() {} |
292 }; | 291 }; |
293 | 292 |
294 } // namespace content | 293 } // namespace content |
295 | 294 |
296 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 295 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |