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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ui::MenuSourceType context_menu_source_type() { | 106 ui::MenuSourceType context_menu_source_type() { |
107 return context_menu_source_type_; } | 107 return context_menu_source_type_; } |
108 gfx::Point touch_editing_context_menu_location() { | 108 gfx::Point touch_editing_context_menu_location() { |
109 return touch_editing_context_menu_location_; | 109 return touch_editing_context_menu_location_; |
110 } | 110 } |
111 | 111 |
112 // Functions to track out-of-process frames for special notifications. | 112 // Functions to track out-of-process frames for special notifications. |
113 void RegisterSwappedOutChildFrame(RenderFrameImpl* frame); | 113 void RegisterSwappedOutChildFrame(RenderFrameImpl* frame); |
114 void UnregisterSwappedOutChildFrame(RenderFrameImpl* frame); | 114 void UnregisterSwappedOutChildFrame(RenderFrameImpl* frame); |
115 | 115 |
| 116 // Functions to track all RenderFrame objects associated with this |
| 117 // RenderWidget. |
| 118 void RegisterRenderFrame(RenderFrameImpl* frame); |
| 119 void UnregisterRenderFrame(RenderFrameImpl* frame); |
| 120 |
116 #if defined(VIDEO_HOLE) | 121 #if defined(VIDEO_HOLE) |
117 void RegisterVideoHoleFrame(RenderFrameImpl* frame); | 122 void RegisterVideoHoleFrame(RenderFrameImpl* frame); |
118 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); | 123 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
119 #endif // defined(VIDEO_HOLE) | 124 #endif // defined(VIDEO_HOLE) |
120 | 125 |
121 // IPC::Listener | 126 // IPC::Listener |
122 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 127 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
123 | 128 |
124 // IPC::Sender | 129 // IPC::Sender |
125 virtual bool Send(IPC::Message* msg) OVERRIDE; | 130 virtual bool Send(IPC::Message* msg) OVERRIDE; |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 | 718 |
714 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; | 719 scoped_ptr<ResizingModeSelector> resizing_mode_selector_; |
715 | 720 |
716 // Lists of swapped out RenderFrames that need to be notified | 721 // Lists of swapped out RenderFrames that need to be notified |
717 // of compositing-related events (e.g. DidCommitCompositorFrame). | 722 // of compositing-related events (e.g. DidCommitCompositorFrame). |
718 ObserverList<RenderFrameImpl> swapped_out_frames_; | 723 ObserverList<RenderFrameImpl> swapped_out_frames_; |
719 #if defined(VIDEO_HOLE) | 724 #if defined(VIDEO_HOLE) |
720 ObserverList<RenderFrameImpl> video_hole_frames_; | 725 ObserverList<RenderFrameImpl> video_hole_frames_; |
721 #endif // defined(VIDEO_HOLE) | 726 #endif // defined(VIDEO_HOLE) |
722 | 727 |
| 728 // A list of RenderFrames associated with this RenderWidget. Notifications |
| 729 // are sent to each frame in the list for events such as changing |
| 730 // visibility state for example. |
| 731 ObserverList<RenderFrameImpl> render_frames_; |
| 732 |
723 ui::MenuSourceType context_menu_source_type_; | 733 ui::MenuSourceType context_menu_source_type_; |
724 gfx::Point touch_editing_context_menu_location_; | 734 gfx::Point touch_editing_context_menu_location_; |
725 | 735 |
726 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 736 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
727 }; | 737 }; |
728 | 738 |
729 } // namespace content | 739 } // namespace content |
730 | 740 |
731 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 741 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |