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 move itself to the specified point. | |
100 virtual void MoveTo(const gfx::Point& origin) = 0; | |
Ben Goodger (Google)
2011/02/01 17:57:24
How about replacing both of these methods with
vi
| |
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
312 | 315 |
313 // The current reserved area in view coordinates where contents should not be | 316 // The current reserved area in view coordinates where contents should not be |
314 // rendered to draw the resize corner, sidebar mini tabs etc. | 317 // rendered to draw the resize corner, sidebar mini tabs etc. |
315 gfx::Rect reserved_rect_; | 318 gfx::Rect reserved_rect_; |
316 | 319 |
317 private: | 320 private: |
318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 321 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
319 }; | 322 }; |
320 | 323 |
321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 324 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |