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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 struct AccessibilityHostMsg_NotificationParams; | 27 struct AccessibilityHostMsg_NotificationParams; |
28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; | 28 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; |
29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; | 29 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; |
30 struct ViewHostMsg_TextInputState_Params; | 30 struct ViewHostMsg_TextInputState_Params; |
31 struct ViewHostMsg_SelectionBounds_Params; | 31 struct ViewHostMsg_SelectionBounds_Params; |
32 | 32 |
33 namespace media { | 33 namespace media { |
34 class VideoFrame; | 34 class VideoFrame; |
35 } | 35 } |
36 | 36 |
37 namespace webkit { | |
38 namespace npapi { | |
39 struct WebPluginGeometry; | |
40 } | |
41 } | |
42 | |
43 namespace WebKit { | 37 namespace WebKit { |
44 struct WebScreenInfo; | 38 struct WebScreenInfo; |
45 } | 39 } |
46 | 40 |
47 namespace content { | 41 namespace content { |
48 class BackingStore; | 42 class BackingStore; |
49 class RenderWidgetHostViewFrameSubscriber; | 43 class RenderWidgetHostViewFrameSubscriber; |
50 class SmoothScrollGesture; | 44 class SmoothScrollGesture; |
| 45 struct WebPluginGeometry; |
51 struct NativeWebKeyboardEvent; | 46 struct NativeWebKeyboardEvent; |
52 | 47 |
53 // This is the larger RenderWidgetHostView interface exposed only | 48 // This is the larger RenderWidgetHostView interface exposed only |
54 // within content/ and to embedders looking to port to new platforms. | 49 // within content/ and to embedders looking to port to new platforms. |
55 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. | 50 // RenderWidgetHostView class hierarchy described in render_widget_host_view.h. |
56 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, | 51 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView, |
57 public IPC::Listener { | 52 public IPC::Listener { |
58 public: | 53 public: |
59 virtual ~RenderWidgetHostViewPort() {} | 54 virtual ~RenderWidgetHostViewPort() {} |
60 | 55 |
(...skipping 21 matching lines...) Expand all Loading... |
82 // Notifies the View that it has become visible. | 77 // Notifies the View that it has become visible. |
83 virtual void WasShown() = 0; | 78 virtual void WasShown() = 0; |
84 | 79 |
85 // Notifies the View that it has been hidden. | 80 // Notifies the View that it has been hidden. |
86 virtual void WasHidden() = 0; | 81 virtual void WasHidden() = 0; |
87 | 82 |
88 // Moves all plugin windows as described in the given list. | 83 // Moves all plugin windows as described in the given list. |
89 // |scroll_offset| is the scroll offset of the render view. | 84 // |scroll_offset| is the scroll offset of the render view. |
90 virtual void MovePluginWindows( | 85 virtual void MovePluginWindows( |
91 const gfx::Vector2d& scroll_offset, | 86 const gfx::Vector2d& scroll_offset, |
92 const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; | 87 const std::vector<WebPluginGeometry>& moves) = 0; |
93 | 88 |
94 // Take focus from the associated View component. | 89 // Take focus from the associated View component. |
95 virtual void Blur() = 0; | 90 virtual void Blur() = 0; |
96 | 91 |
97 // Sets the cursor to the one associated with the specified cursor_type | 92 // Sets the cursor to the one associated with the specified cursor_type |
98 virtual void UpdateCursor(const WebCursor& cursor) = 0; | 93 virtual void UpdateCursor(const WebCursor& cursor) = 0; |
99 | 94 |
100 // Indicates whether the page has finished loading. | 95 // Indicates whether the page has finished loading. |
101 virtual void SetIsLoading(bool is_loading) = 0; | 96 virtual void SetIsLoading(bool is_loading) = 0; |
102 | 97 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 325 |
331 #if defined(OS_WIN) && defined(USE_AURA) | 326 #if defined(OS_WIN) && defined(USE_AURA) |
332 virtual void SetParentNativeViewAccessible( | 327 virtual void SetParentNativeViewAccessible( |
333 gfx::NativeViewAccessible accessible_parent) = 0; | 328 gfx::NativeViewAccessible accessible_parent) = 0; |
334 #endif | 329 #endif |
335 }; | 330 }; |
336 | 331 |
337 } // namespace content | 332 } // namespace content |
338 | 333 |
339 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 334 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |