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

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: Another GYP fix Created 4 years, 5 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
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 RenderFrameImpl; 87 class RenderFrameImpl;
89 class RenderFrameProxy; 88 class RenderFrameProxy;
90 class RenderWidgetCompositor; 89 class RenderWidgetCompositor;
91 class RenderWidgetOwnerDelegate; 90 class RenderWidgetOwnerDelegate;
92 class RenderWidgetScreenMetricsEmulator; 91 class RenderWidgetScreenMetricsEmulator;
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 #endif // defined(VIDEO_HOLE) 745 #endif // defined(VIDEO_HOLE)
747 746
748 // A list of RenderFrames associated with this RenderWidget. Notifications 747 // A list of RenderFrames associated with this RenderWidget. Notifications
749 // are sent to each frame in the list for events such as changing 748 // are sent to each frame in the list for events such as changing
750 // visibility state for example. 749 // visibility state for example.
751 base::ObserverList<RenderFrameImpl> render_frames_; 750 base::ObserverList<RenderFrameImpl> render_frames_;
752 751
753 bool has_host_context_menu_location_; 752 bool has_host_context_menu_location_;
754 gfx::Point host_context_menu_location_; 753 gfx::Point host_context_menu_location_;
755 754
756 std::unique_ptr<scheduler::RenderWidgetSchedulingState> 755 std::unique_ptr<blink::scheduler::RenderWidgetSchedulingState>
757 render_widget_scheduling_state_; 756 render_widget_scheduling_state_;
758 757
759 // Mouse Lock dispatcher attached to this view. 758 // Mouse Lock dispatcher attached to this view.
760 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_; 759 std::unique_ptr<RenderWidgetMouseLockDispatcher> mouse_lock_dispatcher_;
761 760
762 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. 761 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface.
763 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; 762 std::unique_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_;
764 763
765 private: 764 private:
766 // When emulated, this returns original device scale factor. 765 // When emulated, this returns original device scale factor.
767 float GetOriginalDeviceScaleFactor() const; 766 float GetOriginalDeviceScaleFactor() const;
768 767
769 // Indicates whether this widget has focus. 768 // Indicates whether this widget has focus.
770 bool has_focus_; 769 bool has_focus_;
771 770
772 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 771 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
773 }; 772 };
774 773
775 } // namespace content 774 } // namespace content
776 775
777 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 776 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698