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

Side by Side Diff: content/public/renderer/render_view.h

Issue 10928043: Media Related changes for TabCapture API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial Created 8 years, 2 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_PUBLIC_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ipc/ipc_sender.h" 11 #include "ipc/ipc_sender.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h " 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h "
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaClient.h"
14 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
15 16
16 namespace webkit_glue { 17 namespace webkit_glue {
17 struct WebPreferences; 18 struct WebPreferences;
18 } 19 }
19 20
20 namespace WebKit { 21 namespace WebKit {
21 class WebFrame; 22 class WebFrame;
22 class WebNode; 23 class WebNode;
23 class WebPlugin; 24 class WebPlugin;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual float GetFilteredTimePerFrame() const = 0; 110 virtual float GetFilteredTimePerFrame() const = 0;
110 111
111 // Shows a context menu with commands relevant to a specific element on 112 // Shows a context menu with commands relevant to a specific element on
112 // the given frame. Additional context data is supplied. 113 // the given frame. Additional context data is supplied.
113 virtual void ShowContextMenu(WebKit::WebFrame* frame, 114 virtual void ShowContextMenu(WebKit::WebFrame* frame,
114 const WebKit::WebContextMenuData& data) = 0; 115 const WebKit::WebContextMenuData& data) = 0;
115 116
116 // Returns the current visibility of the WebView. 117 // Returns the current visibility of the WebView.
117 virtual WebKit::WebPageVisibilityState GetVisibilityState() const = 0; 118 virtual WebKit::WebPageVisibilityState GetVisibilityState() const = 0;
118 119
120 // Returns the user media client of the WebView.
121 virtual WebKit::WebUserMediaClient *GetUserMediaClient() = 0;
perkj_chrome 2012/09/27 13:21:48 no way of getting hold of RenderViewImpl instead a
justinlin 2012/10/02 17:19:48 Done. Don't need this stuff anymore thanks to the
122
119 // Displays a modal alert dialog containing the given message. Returns 123 // Displays a modal alert dialog containing the given message. Returns
120 // once the user dismisses the dialog. 124 // once the user dismisses the dialog.
121 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, 125 virtual void RunModalAlertDialog(WebKit::WebFrame* frame,
122 const WebKit::WebString& message) = 0; 126 const WebKit::WebString& message) = 0;
123 127
124 // The client should handle the navigation externally. 128 // The client should handle the navigation externally.
125 virtual void LoadURLExternally( 129 virtual void LoadURLExternally(
126 WebKit::WebFrame* frame, 130 WebKit::WebFrame* frame,
127 const WebKit::WebURLRequest& request, 131 const WebKit::WebURLRequest& request,
128 WebKit::WebNavigationPolicy policy) = 0; 132 WebKit::WebNavigationPolicy policy) = 0;
129 133
130 // Notifies the renderer that a paint is to be generated for the size 134 // Notifies the renderer that a paint is to be generated for the size
131 // passed in. 135 // passed in.
132 virtual void Repaint(const gfx::Size& size) = 0; 136 virtual void Repaint(const gfx::Size& size) = 0;
133 137
134 protected: 138 protected:
135 virtual ~RenderView() {} 139 virtual ~RenderView() {}
136 }; 140 };
137 141
138 } // namespace content 142 } // namespace content
139 143
140 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ 144 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698