Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: content/renderer/render_widget.h

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 #endif // defined(VIDEO_HOLE) 756 #endif // defined(VIDEO_HOLE)
758 757
759 // A list of RenderFrames associated with this RenderWidget. Notifications 758 // A list of RenderFrames associated with this RenderWidget. Notifications
760 // are sent to each frame in the list for events such as changing 759 // are sent to each frame in the list for events such as changing
761 // visibility state for example. 760 // visibility state for example.
762 base::ObserverList<RenderFrameImpl> render_frames_; 761 base::ObserverList<RenderFrameImpl> render_frames_;
763 762
764 bool has_host_context_menu_location_; 763 bool has_host_context_menu_location_;
765 gfx::Point host_context_menu_location_; 764 gfx::Point host_context_menu_location_;
766 765
767 std::unique_ptr<scheduler::RenderWidgetSchedulingState> 766 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState>
768 render_widget_scheduling_state_; 767 render_widget_scheduling_state_;
769 768
770 // Mouse Lock dispatcher attached to this view. 769 // Mouse Lock dispatcher attached to this view.
771 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; 770 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_;
772 771
773 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 772 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
774 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 773 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
775 774
776 private: 775 private:
777 // When emulated, this returns original device scale factor. 776 // When emulated, this returns original device scale factor.
778 float GetOriginalDeviceScaleFactor() const; 777 float GetOriginalDeviceScaleFactor() const;
779 778
780 // Indicates whether this widget has focus. 779 // Indicates whether this widget has focus.
781 bool has_focus_; 780 bool has_focus_;
782 781
783 // This reference is set by the RenderFrame and is used to query the IME- 782 // This reference is set by the RenderFrame and is used to query the IME-
784 // related state from the plugin to later send to the browser. 783 // related state from the plugin to later send to the browser.
785 PepperPluginInstanceImpl* focused_pepper_plugin_; 784 PepperPluginInstanceImpl* focused_pepper_plugin_;
786 785
787 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 786 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
788 }; 787 };
789 788
790 } // namespace content 789 } // namespace content
791 790
792 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 791 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl_browsertest.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698