OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "base/gfx/native_widget_types.h" |
8 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
9 #include "build/build_config.h" | 10 #include "build/build_config.h" |
10 #include "chrome/common/render_messages.h" | 11 #include "chrome/common/render_messages.h" |
11 | 12 |
12 #if defined(OS_WIN) | 13 #if defined(OS_WIN) |
13 #include <windows.h> | 14 #include <windows.h> |
14 #endif | 15 #endif |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Rect; | 18 class Rect; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 53 |
53 // Notifies the View that it has become visible. | 54 // Notifies the View that it has become visible. |
54 virtual void DidBecomeSelected() = 0; | 55 virtual void DidBecomeSelected() = 0; |
55 | 56 |
56 // Notifies the View that it has been hidden. | 57 // Notifies the View that it has been hidden. |
57 virtual void WasHidden() = 0; | 58 virtual void WasHidden() = 0; |
58 | 59 |
59 // Tells the View to size itself to the specified size. | 60 // Tells the View to size itself to the specified size. |
60 virtual void SetSize(const gfx::Size& size) = 0; | 61 virtual void SetSize(const gfx::Size& size) = 0; |
61 | 62 |
62 #if defined(OS_WIN) | |
63 // Retrieves the HWND used to contain plugin HWNDs. | 63 // Retrieves the HWND used to contain plugin HWNDs. |
64 virtual HWND GetPluginHWND() = 0; | 64 virtual gfx::NativeView GetPluginHWND() = 0; |
65 #endif | |
66 | 65 |
67 // Moves all plugin windows as described in the given list. | 66 // Moves all plugin windows as described in the given list. |
68 virtual void MovePluginWindows( | 67 virtual void MovePluginWindows( |
69 const std::vector<WebPluginGeometry>& plugin_window_moves) = 0; | 68 const std::vector<WebPluginGeometry>& plugin_window_moves) = 0; |
70 | 69 |
71 // Actually set/take focus to/from the associated View component. | 70 // Actually set/take focus to/from the associated View component. |
72 virtual void Focus() = 0; | 71 virtual void Focus() = 0; |
73 virtual void Blur() = 0; | 72 virtual void Blur() = 0; |
74 | 73 |
75 // Returns true if the View currently has the focus. | 74 // Returns true if the View currently has the focus. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 protected: | 119 protected: |
121 // Interface class only, do not construct. | 120 // Interface class only, do not construct. |
122 RenderWidgetHostView() {} | 121 RenderWidgetHostView() {} |
123 | 122 |
124 private: | 123 private: |
125 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
126 }; | 125 }; |
127 | 126 |
128 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 127 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
129 | 128 |
OLD | NEW |