OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
89 | 89 |
90 // Notifies the View that it has become visible. | 90 // Notifies the View that it has become visible. |
91 virtual void DidBecomeSelected() = 0; | 91 virtual void DidBecomeSelected() = 0; |
92 | 92 |
93 // Notifies the View that it has been hidden. | 93 // Notifies the View that it has been hidden. |
94 virtual void WasHidden() = 0; | 94 virtual void WasHidden() = 0; |
95 | 95 |
96 // Tells the View to size itself to the specified size. | 96 // Tells the View to size itself to the specified size. |
97 virtual void SetSize(const gfx::Size& size) = 0; | 97 virtual void SetSize(const gfx::Size& size) = 0; |
98 | 98 |
99 // Tells the View to size and move itself to the specified size and point. | |
Nico
2011/02/16 18:18:45
", in screen space."
honten.org
2011/02/18 09:11:26
Done.
| |
100 virtual void SetBounds(const gfx::Rect& rect) = 0; | |
101 | |
99 // Retrieves the native view used to contain plugins and identify the | 102 // Retrieves the native view used to contain plugins and identify the |
100 // renderer in IPC messages. | 103 // renderer in IPC messages. |
101 virtual gfx::NativeView GetNativeView() = 0; | 104 virtual gfx::NativeView GetNativeView() = 0; |
102 | 105 |
103 // Moves all plugin windows as described in the given list. | 106 // Moves all plugin windows as described in the given list. |
104 virtual void MovePluginWindows( | 107 virtual void MovePluginWindows( |
105 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; | 108 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; |
106 | 109 |
107 // Actually set/take focus to/from the associated View component. | 110 // Actually set/take focus to/from the associated View component. |
108 virtual void Focus() = 0; | 111 virtual void Focus() = 0; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 | 318 |
316 // The current reserved area in view coordinates where contents should not be | 319 // The current reserved area in view coordinates where contents should not be |
317 // rendered to draw the resize corner, sidebar mini tabs etc. | 320 // rendered to draw the resize corner, sidebar mini tabs etc. |
318 gfx::Rect reserved_rect_; | 321 gfx::Rect reserved_rect_; |
319 | 322 |
320 private: | 323 private: |
321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 324 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
322 }; | 325 }; |
323 | 326 |
324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 327 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |