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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Notification that the page wants to go into or out of fullscreen mode. |
195 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 195 virtual void ToggleFullscreenMode(bool enter_fullscreen, bool is_video) {} |
196 virtual bool IsFullscreenForCurrentTab() const; | 196 virtual bool IsFullscreenForCurrentTab() const; |
197 | 197 |
198 // The contents' preferred size changed. | 198 // The contents' preferred size changed. |
199 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} | 199 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
200 | 200 |
201 // The contents auto-resized and the container should match it. | 201 // The contents auto-resized and the container should match it. |
202 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} | 202 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} |
203 | 203 |
204 // Requests to lock the mouse. Once the request is approved or rejected, | 204 // Requests to lock the mouse. Once the request is approved or rejected, |
205 // GotResponseToLockMouseRequest() will be called on the requesting render | 205 // GotResponseToLockMouseRequest() will be called on the requesting render |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 // created by the RenderViewHost. | 280 // created by the RenderViewHost. |
281 virtual FrameTree* GetFrameTree(); | 281 virtual FrameTree* GetFrameTree(); |
282 | 282 |
283 protected: | 283 protected: |
284 virtual ~RenderViewHostDelegate() {} | 284 virtual ~RenderViewHostDelegate() {} |
285 }; | 285 }; |
286 | 286 |
287 } // namespace content | 287 } // namespace content |
288 | 288 |
289 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 289 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |