| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; | 143 virtual void UpdateDragCursor(WebKit::WebDragOperation operation) = 0; |
| 144 | 144 |
| 145 // Notification that view for this delegate got the focus. | 145 // Notification that view for this delegate got the focus. |
| 146 virtual void GotFocus() = 0; | 146 virtual void GotFocus() = 0; |
| 147 | 147 |
| 148 // Callback to inform the browser that the page is returning the focus to | 148 // Callback to inform the browser that the page is returning the focus to |
| 149 // the browser's chrome. If reverse is true, it means the focus was | 149 // the browser's chrome. If reverse is true, it means the focus was |
| 150 // retrieved by doing a Shift-Tab. | 150 // retrieved by doing a Shift-Tab. |
| 151 virtual void TakeFocus(bool reverse) = 0; | 151 virtual void TakeFocus(bool reverse) = 0; |
| 152 | 152 |
| 153 // The contents' preferred size changed. | |
| 154 virtual void UpdatePreferredSize(const gfx::Size& pref_size) = 0; | |
| 155 | |
| 156 protected: | 153 protected: |
| 157 virtual ~View() {} | 154 virtual ~View() {} |
| 158 }; | 155 }; |
| 159 | 156 |
| 160 // RendererManagerment ------------------------------------------------------- | 157 // RendererManagerment ------------------------------------------------------- |
| 161 // Functions for managing switching of Renderers. For TabContents, this is | 158 // Functions for managing switching of Renderers. For TabContents, this is |
| 162 // implemented by the RenderViewHostManager | 159 // implemented by the RenderViewHostManager |
| 163 | 160 |
| 164 class RendererManagement { | 161 class RendererManagement { |
| 165 public: | 162 public: |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 virtual void HandleMouseActivate() {} | 365 virtual void HandleMouseActivate() {} |
| 369 | 366 |
| 370 // Called when a file selection is to be done. | 367 // Called when a file selection is to be done. |
| 371 virtual void RunFileChooser( | 368 virtual void RunFileChooser( |
| 372 RenderViewHost* render_view_host, | 369 RenderViewHost* render_view_host, |
| 373 const ViewHostMsg_RunFileChooser_Params& params) {} | 370 const ViewHostMsg_RunFileChooser_Params& params) {} |
| 374 | 371 |
| 375 // Notification that the page wants to go into or out of fullscreen mode. | 372 // Notification that the page wants to go into or out of fullscreen mode. |
| 376 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} | 373 virtual void ToggleFullscreenMode(bool enter_fullscreen) {} |
| 377 | 374 |
| 375 // The contents' preferred size changed. |
| 376 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} |
| 377 |
| 378 protected: | 378 protected: |
| 379 virtual ~RenderViewHostDelegate() {} | 379 virtual ~RenderViewHostDelegate() {} |
| 380 }; | 380 }; |
| 381 | 381 |
| 382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 382 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |