| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 #include "ui/surface/transport_dib.h" | 51 #include "ui/surface/transport_dib.h" |
| 52 | 52 |
| 53 class GURL; | 53 class GURL; |
| 54 | 54 |
| 55 namespace IPC { | 55 namespace IPC { |
| 56 class SyncMessage; | 56 class SyncMessage; |
| 57 class SyncMessageFilter; | 57 class SyncMessageFilter; |
| 58 } | 58 } |
| 59 | 59 |
| 60 namespace blink { | 60 namespace blink { |
| 61 namespace scheduler { |
| 62 class RenderWidgetSchedulingState; |
| 63 } |
| 61 struct WebDeviceEmulationParams; | 64 struct WebDeviceEmulationParams; |
| 62 class WebFrameWidget; | 65 class WebFrameWidget; |
| 63 class WebGestureEvent; | 66 class WebGestureEvent; |
| 64 class WebLocalFrame; | 67 class WebLocalFrame; |
| 65 class WebMouseEvent; | 68 class WebMouseEvent; |
| 66 class WebNode; | 69 class WebNode; |
| 67 struct WebPoint; | 70 struct WebPoint; |
| 68 } | 71 } |
| 69 | 72 |
| 70 namespace cc { | 73 namespace cc { |
| 71 class OutputSurface; | 74 class OutputSurface; |
| 72 class SwapPromise; | 75 class SwapPromise; |
| 73 } | 76 } |
| 74 | 77 |
| 75 namespace gfx { | 78 namespace gfx { |
| 76 class Range; | 79 class Range; |
| 77 } | 80 } |
| 78 | 81 |
| 79 namespace scheduler { | |
| 80 class RenderWidgetSchedulingState; | |
| 81 } | |
| 82 | |
| 83 namespace content { | 82 namespace content { |
| 84 class CompositorDependencies; | 83 class CompositorDependencies; |
| 85 class ExternalPopupMenu; | 84 class ExternalPopupMenu; |
| 86 class FrameSwapMessageQueue; | 85 class FrameSwapMessageQueue; |
| 87 class ImeEventGuard; | 86 class ImeEventGuard; |
| 88 class PepperPluginInstanceImpl; | 87 class PepperPluginInstanceImpl; |
| 89 class RenderFrameImpl; | 88 class RenderFrameImpl; |
| 90 class RenderFrameProxy; | 89 class RenderFrameProxy; |
| 91 class RenderWidgetCompositor; | 90 class RenderWidgetCompositor; |
| 92 class RenderWidgetOwnerDelegate; | 91 class RenderWidgetOwnerDelegate; |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 #endif // defined(VIDEO_HOLE) | 765 #endif // defined(VIDEO_HOLE) |
| 767 | 766 |
| 768 // A list of RenderFrames associated with this RenderWidget. Notifications | 767 // A list of RenderFrames associated with this RenderWidget. Notifications |
| 769 // are sent to each frame in the list for events such as changing | 768 // are sent to each frame in the list for events such as changing |
| 770 // visibility state for example. | 769 // visibility state for example. |
| 771 base::ObserverList<RenderFrameImpl> render_frames_; | 770 base::ObserverList<RenderFrameImpl> render_frames_; |
| 772 | 771 |
| 773 bool has_host_context_menu_location_; | 772 bool has_host_context_menu_location_; |
| 774 gfx::Point host_context_menu_location_; | 773 gfx::Point host_context_menu_location_; |
| 775 | 774 |
| 776 std::unique_ptr<scheduler::RenderWidgetSchedulingState> | 775 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState> |
| 777 render_widget_scheduling_state_; | 776 render_widget_scheduling_state_; |
| 778 | 777 |
| 779 // Mouse Lock dispatcher attached to this view. | 778 // Mouse Lock dispatcher attached to this view. |
| 780 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; | 779 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; |
| 781 | 780 |
| 782 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 781 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
| 783 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 782 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
| 784 | 783 |
| 785 private: | 784 private: |
| 786 // When emulated, this returns original device scale factor. | 785 // When emulated, this returns original device scale factor. |
| 787 float GetOriginalDeviceScaleFactor() const; | 786 float GetOriginalDeviceScaleFactor() const; |
| 788 | 787 |
| 789 // Indicates whether this widget has focus. | 788 // Indicates whether this widget has focus. |
| 790 bool has_focus_; | 789 bool has_focus_; |
| 791 | 790 |
| 792 // This reference is set by the RenderFrame and is used to query the IME- | 791 // This reference is set by the RenderFrame and is used to query the IME- |
| 793 // related state from the plugin to later send to the browser. | 792 // related state from the plugin to later send to the browser. |
| 794 PepperPluginInstanceImpl* focused_pepper_plugin_; | 793 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 795 | 794 |
| 796 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 795 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 797 }; | 796 }; |
| 798 | 797 |
| 799 } // namespace content | 798 } // namespace content |
| 800 | 799 |
| 801 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 800 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |