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

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

Issue 278353003: Make RendererMediaPlayerManager a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor fix. Created 6 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 | Annotate | Revision Log
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_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 class RendererDateTimePicker; 148 class RendererDateTimePicker;
149 class RendererWebColorChooserImpl; 149 class RendererWebColorChooserImpl;
150 class SpeechRecognitionDispatcher; 150 class SpeechRecognitionDispatcher;
151 class WebPluginDelegateProxy; 151 class WebPluginDelegateProxy;
152 struct DropData; 152 struct DropData;
153 struct FaviconURL; 153 struct FaviconURL;
154 struct FileChooserParams; 154 struct FileChooserParams;
155 struct RenderViewImplParams; 155 struct RenderViewImplParams;
156 156
157 #if defined(OS_ANDROID) 157 #if defined(OS_ANDROID)
158 class RendererMediaPlayerManager;
159 class WebMediaPlayerProxyAndroid; 158 class WebMediaPlayerProxyAndroid;
160 #endif 159 #endif
161 160
162 // 161 //
163 // RenderView is an object that manages a WebView object, and provides a 162 // RenderView is an object that manages a WebView object, and provides a
164 // communication interface with an embedding application process 163 // communication interface with an embedding application process
165 // 164 //
166 class CONTENT_EXPORT RenderViewImpl 165 class CONTENT_EXPORT RenderViewImpl
167 : public RenderWidget, 166 : public RenderWidget,
168 NON_EXPORTED_BASE(public blink::WebViewClient), 167 NON_EXPORTED_BASE(public blink::WebViewClient),
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 void OnSelectWordAroundCaret(); 768 void OnSelectWordAroundCaret();
770 #if defined(OS_ANDROID) 769 #if defined(OS_ANDROID)
771 void OnActivateNearestFindResult(int request_id, float x, float y); 770 void OnActivateNearestFindResult(int request_id, float x, float y);
772 void OnFindMatchRects(int current_version); 771 void OnFindMatchRects(int current_version);
773 void OnSelectPopupMenuItems(bool canceled, 772 void OnSelectPopupMenuItems(bool canceled,
774 const std::vector<int>& selected_indices); 773 const std::vector<int>& selected_indices);
775 void OnUndoScrollFocusedEditableNodeIntoRect(); 774 void OnUndoScrollFocusedEditableNodeIntoRect();
776 void OnUpdateTopControlsState(bool enable_hiding, 775 void OnUpdateTopControlsState(bool enable_hiding,
777 bool enable_showing, 776 bool enable_showing,
778 bool animate); 777 bool animate);
779 void OnPauseVideo();
780 void OnExtractSmartClipData(const gfx::Rect& rect); 778 void OnExtractSmartClipData(const gfx::Rect& rect);
781 void GetSelectionRootBounds(gfx::Rect* bounds) const; 779 void GetSelectionRootBounds(gfx::Rect* bounds) const;
782 #elif defined(OS_MACOSX) 780 #elif defined(OS_MACOSX)
783 void OnPluginImeCompositionCompleted(const base::string16& text, 781 void OnPluginImeCompositionCompleted(const base::string16& text,
784 int plugin_id); 782 int plugin_id);
785 void OnSelectPopupMenuItem(int selected_index); 783 void OnSelectPopupMenuItem(int selected_index);
786 void OnSetInLiveResize(bool in_live_resize); 784 void OnSetInLiveResize(bool in_live_resize);
787 void OnSetWindowVisibility(bool visible); 785 void OnSetWindowVisibility(bool visible);
788 void OnWindowFrameChanged(const gfx::Rect& window_frame, 786 void OnWindowFrameChanged(const gfx::Rect& window_frame,
789 const gfx::Rect& view_frame); 787 const gfx::Rect& view_frame);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1106 // Android Specific --------------------------------------------------------- 1104 // Android Specific ---------------------------------------------------------
1107 1105
1108 // Expected id of the next content intent launched. Used to prevent scheduled 1106 // Expected id of the next content intent launched. Used to prevent scheduled
1109 // intents to be launched if aborted. 1107 // intents to be launched if aborted.
1110 size_t expected_content_intent_id_; 1108 size_t expected_content_intent_id_;
1111 1109
1112 // List of click-based content detectors. 1110 // List of click-based content detectors.
1113 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList; 1111 typedef std::vector< linked_ptr<ContentDetector> > ContentDetectorList;
1114 ContentDetectorList content_detectors_; 1112 ContentDetectorList content_detectors_;
1115 1113
1116 // The media player manager for managing all the media players on this view
1117 // for communicating with the real media player objects in browser process.
1118 RendererMediaPlayerManager* media_player_manager_;
1119
1120 // A date/time picker object for date and time related input elements. 1114 // A date/time picker object for date and time related input elements.
1121 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; 1115 scoped_ptr<RendererDateTimePicker> date_time_picker_client_;
1122 #endif 1116 #endif
1123 1117
1124 // Plugins ------------------------------------------------------------------- 1118 // Plugins -------------------------------------------------------------------
1125 1119
1126 // All the currently active plugin delegates for this RenderView; kept so 1120 // All the currently active plugin delegates for this RenderView; kept so
1127 // that we can enumerate them to send updates about things like window 1121 // that we can enumerate them to send updates about things like window
1128 // location or tab focus and visibily. These are non-owning references. 1122 // location or tab focus and visibily. These are non-owning references.
1129 std::set<WebPluginDelegateProxy*> plugin_delegates_; 1123 std::set<WebPluginDelegateProxy*> plugin_delegates_;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 // use the Observer interface to filter IPC messages and receive frame change 1207 // use the Observer interface to filter IPC messages and receive frame change
1214 // notifications. 1208 // notifications.
1215 // --------------------------------------------------------------------------- 1209 // ---------------------------------------------------------------------------
1216 1210
1217 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1211 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1218 }; 1212 };
1219 1213
1220 } // namespace content 1214 } // namespace content
1221 1215
1222 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1216 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698