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

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

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Current state (presubmit warnings, cc_unittests tests failing) Created 5 years, 7 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 <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 class WebMouseEvent; 62 class WebMouseEvent;
63 class WebNode; 63 class WebNode;
64 struct WebPoint; 64 struct WebPoint;
65 class WebTouchEvent; 65 class WebTouchEvent;
66 class WebView; 66 class WebView;
67 } 67 }
68 68
69 namespace cc { 69 namespace cc {
70 struct InputHandlerScrollResult; 70 struct InputHandlerScrollResult;
71 class OutputSurface; 71 class OutputSurface;
72 class SwapPromise; 72 class Promise;
73 } 73 }
74 74
75 namespace gfx { 75 namespace gfx {
76 class Range; 76 class Range;
77 } 77 }
78 78
79 namespace content { 79 namespace content {
80 class CompositorDependencies; 80 class CompositorDependencies;
81 class ExternalPopupMenu; 81 class ExternalPopupMenu;
82 class FrameSwapMessageQueue; 82 class FrameUpdateMessageQueue;
83 class PepperPluginInstanceImpl; 83 class PepperPluginInstanceImpl;
84 class RenderFrameImpl; 84 class RenderFrameImpl;
85 class RenderFrameProxy; 85 class RenderFrameProxy;
86 class RenderWidgetCompositor; 86 class RenderWidgetCompositor;
87 class RenderWidgetTest; 87 class RenderWidgetTest;
88 class ResizingModeSelector; 88 class ResizingModeSelector;
89 struct ContextMenuParams; 89 struct ContextMenuParams;
90 struct WebPluginGeometry; 90 struct WebPluginGeometry;
91 91
92 // RenderWidget provides a communication bridge between a WebWidget and 92 // RenderWidget provides a communication bridge between a WebWidget and
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 void WillToggleFullscreen(); 490 void WillToggleFullscreen();
491 void DidToggleFullscreen(); 491 void DidToggleFullscreen();
492 492
493 bool next_paint_is_resize_ack() const; 493 bool next_paint_is_resize_ack() const;
494 void set_next_paint_is_resize_ack(); 494 void set_next_paint_is_resize_ack();
495 void set_next_paint_is_repaint_ack(); 495 void set_next_paint_is_repaint_ack();
496 496
497 // QueueMessage implementation extracted into a static method for easy 497 // QueueMessage implementation extracted into a static method for easy
498 // testing. 498 // testing.
499 static scoped_ptr<cc::SwapPromise> QueueMessageImpl( 499 static scoped_ptr<cc::Promise> QueueMessageImpl(
500 IPC::Message* msg, 500 IPC::Message* msg,
501 MessageDeliveryPolicy policy, 501 MessageDeliveryPolicy policy,
502 FrameSwapMessageQueue* frame_swap_message_queue, 502 FrameUpdateMessageQueue* frame_update_message_queue,
503 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter, 503 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter,
504 int source_frame_number); 504 int source_frame_number);
505 505
506 // Override point to obtain that the current input method state and caret 506 // Override point to obtain that the current input method state and caret
507 // position. 507 // position.
508 virtual ui::TextInputType GetTextInputType(); 508 virtual ui::TextInputType GetTextInputType();
509 virtual ui::TextInputType WebKitToUiTextInputType( 509 virtual ui::TextInputType WebKitToUiTextInputType(
510 blink::WebTextInputType type); 510 blink::WebTextInputType type);
511 511
512 // Override point to obtain that the current composition character bounds. 512 // Override point to obtain that the current composition character bounds.
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 #endif 786 #endif
787 787
788 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_; 788 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_;
789 789
790 // Popups may be displaced when screen metrics emulation is enabled. 790 // Popups may be displaced when screen metrics emulation is enabled.
791 // These values are used to properly adjust popup position. 791 // These values are used to properly adjust popup position.
792 gfx::PointF popup_view_origin_for_emulation_; 792 gfx::PointF popup_view_origin_for_emulation_;
793 gfx::PointF popup_screen_origin_for_emulation_; 793 gfx::PointF popup_screen_origin_for_emulation_;
794 float popup_origin_scale_for_emulation_; 794 float popup_origin_scale_for_emulation_;
795 795
796 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 796 scoped_refptr<FrameUpdateMessageQueue> frame_update_message_queue_;
797 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; 797 scoped_ptr<ResizingModeSelector> resizing_mode_selector_;
798 798
799 // Lists of RenderFrameProxy objects that need to be notified of 799 // Lists of RenderFrameProxy objects that need to be notified of
800 // compositing-related events (e.g. DidCommitCompositorFrame). 800 // compositing-related events (e.g. DidCommitCompositorFrame).
801 ObserverList<RenderFrameProxy> render_frame_proxies_; 801 ObserverList<RenderFrameProxy> render_frame_proxies_;
802 #if defined(VIDEO_HOLE) 802 #if defined(VIDEO_HOLE)
803 ObserverList<RenderFrameImpl> video_hole_frames_; 803 ObserverList<RenderFrameImpl> video_hole_frames_;
804 #endif // defined(VIDEO_HOLE) 804 #endif // defined(VIDEO_HOLE)
805 805
806 // A list of RenderFrames associated with this RenderWidget. Notifications 806 // A list of RenderFrames associated with this RenderWidget. Notifications
807 // are sent to each frame in the list for events such as changing 807 // are sent to each frame in the list for events such as changing
808 // visibility state for example. 808 // visibility state for example.
809 ObserverList<RenderFrameImpl> render_frames_; 809 ObserverList<RenderFrameImpl> render_frames_;
810 810
811 ui::MenuSourceType context_menu_source_type_; 811 ui::MenuSourceType context_menu_source_type_;
812 bool has_host_context_menu_location_; 812 bool has_host_context_menu_location_;
813 gfx::Point host_context_menu_location_; 813 gfx::Point host_context_menu_location_;
814 814
815 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 815 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
816 }; 816 };
817 817
818 } // namespace content 818 } // namespace content
819 819
820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 820 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698