| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ui::MenuSourceType context_menu_source_type() { | 105 ui::MenuSourceType context_menu_source_type() { |
| 106 return context_menu_source_type_; } | 106 return context_menu_source_type_; } |
| 107 gfx::Point touch_editing_context_menu_location() { | 107 gfx::Point touch_editing_context_menu_location() { |
| 108 return touch_editing_context_menu_location_; | 108 return touch_editing_context_menu_location_; |
| 109 } | 109 } |
| 110 | 110 |
| 111 // Functions to track out-of-process frames for special notifications. | 111 // Functions to track out-of-process frames for special notifications. |
| 112 void RegisterSwappedOutChildFrame(RenderFrameImpl* frame); | 112 void RegisterSwappedOutChildFrame(RenderFrameImpl* frame); |
| 113 void UnregisterSwappedOutChildFrame(RenderFrameImpl* frame); | 113 void UnregisterSwappedOutChildFrame(RenderFrameImpl* frame); |
| 114 | 114 |
| 115 #if defined(VIDEO_HOLE) |
| 116 void RegisterVideoHoleFrame(RenderFrameImpl* frame); |
| 117 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
| 118 #endif // defined(VIDEO_HOLE) |
| 119 |
| 115 // IPC::Listener | 120 // IPC::Listener |
| 116 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 121 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 117 | 122 |
| 118 // IPC::Sender | 123 // IPC::Sender |
| 119 virtual bool Send(IPC::Message* msg) OVERRIDE; | 124 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 120 | 125 |
| 121 // blink::WebWidgetClient | 126 // blink::WebWidgetClient |
| 122 virtual void suppressCompositorScheduling(bool enable); | 127 virtual void suppressCompositorScheduling(bool enable); |
| 123 virtual void willBeginCompositorFrame(); | 128 virtual void willBeginCompositorFrame(); |
| 124 virtual void didAutoResize(const blink::WebSize& new_size); | 129 virtual void didAutoResize(const blink::WebSize& new_size); |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_; | 687 scoped_ptr<ScreenMetricsEmulator> screen_metrics_emulator_; |
| 683 | 688 |
| 684 // Popups may be displaced when screen metrics emulation is enabled. | 689 // Popups may be displaced when screen metrics emulation is enabled. |
| 685 // These values are used to properly adjust popup position. | 690 // These values are used to properly adjust popup position. |
| 686 gfx::Point popup_view_origin_for_emulation_; | 691 gfx::Point popup_view_origin_for_emulation_; |
| 687 gfx::Point popup_screen_origin_for_emulation_; | 692 gfx::Point popup_screen_origin_for_emulation_; |
| 688 float popup_origin_scale_for_emulation_; | 693 float popup_origin_scale_for_emulation_; |
| 689 | 694 |
| 690 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 695 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
| 691 | 696 |
| 692 // A list of swapped out RenderFrames that need to be notified | 697 // Lists of swapped out RenderFrames that need to be notified |
| 693 // of compositing-related events (e.g. DidCommitCompositorFrame). | 698 // of compositing-related events (e.g. DidCommitCompositorFrame). |
| 694 ObserverList<RenderFrameImpl> swapped_out_frames_; | 699 ObserverList<RenderFrameImpl> swapped_out_frames_; |
| 700 #if defined(VIDEO_HOLE) |
| 701 ObserverList<RenderFrameImpl> video_hole_frames_; |
| 702 #endif // defined(VIDEO_HOLE) |
| 695 | 703 |
| 696 ui::MenuSourceType context_menu_source_type_; | 704 ui::MenuSourceType context_menu_source_type_; |
| 697 gfx::Point touch_editing_context_menu_location_; | 705 gfx::Point touch_editing_context_menu_location_; |
| 698 | 706 |
| 699 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 707 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 700 }; | 708 }; |
| 701 | 709 |
| 702 } // namespace content | 710 } // namespace content |
| 703 | 711 |
| 704 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 712 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |