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_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/public/browser/render_widget_host.h" | 12 #include "content/public/browser/render_widget_host.h" |
13 #include "content/public/common/file_chooser_params.h" | 13 #include "content/public/common/file_chooser_params.h" |
14 #include "content/public/common/page_zoom.h" | 14 #include "content/public/common/page_zoom.h" |
| 15 #include "mojo/public/cpp/system/core.h" |
15 #include "third_party/WebKit/public/web/WebDragOperation.h" | 16 #include "third_party/WebKit/public/web/WebDragOperation.h" |
16 | 17 |
17 #if defined(USE_MOJO) | |
18 #include "mojo/public/cpp/system/core.h" | |
19 #endif | |
20 | |
21 class GURL; | 18 class GURL; |
22 struct WebPreferences; | 19 struct WebPreferences; |
23 | 20 |
24 namespace gfx { | 21 namespace gfx { |
25 class Point; | 22 class Point; |
26 } | 23 } |
27 | 24 |
28 namespace base { | 25 namespace base { |
29 class FilePath; | 26 class FilePath; |
30 class Value; | 27 class Value; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Retrieves the list of AudioOutputController objects associated | 208 // Retrieves the list of AudioOutputController objects associated |
212 // with this object and passes it to the callback you specify, on | 209 // with this object and passes it to the callback you specify, on |
213 // the same thread on which you called the method. | 210 // the same thread on which you called the method. |
214 typedef std::list<scoped_refptr<media::AudioOutputController> > | 211 typedef std::list<scoped_refptr<media::AudioOutputController> > |
215 AudioOutputControllerList; | 212 AudioOutputControllerList; |
216 typedef base::Callback<void(const AudioOutputControllerList&)> | 213 typedef base::Callback<void(const AudioOutputControllerList&)> |
217 GetAudioOutputControllersCallback; | 214 GetAudioOutputControllersCallback; |
218 virtual void GetAudioOutputControllers( | 215 virtual void GetAudioOutputControllers( |
219 const GetAudioOutputControllersCallback& callback) const = 0; | 216 const GetAudioOutputControllersCallback& callback) const = 0; |
220 | 217 |
| 218 // Sets the mojo handle for WebUI pages. |
| 219 virtual void SetWebUIHandle(mojo::ScopedMessagePipeHandle handle) = 0; |
| 220 |
221 #if defined(OS_ANDROID) | 221 #if defined(OS_ANDROID) |
222 // Selects and zooms to the find result nearest to the point (x,y) | 222 // Selects and zooms to the find result nearest to the point (x,y) |
223 // defined in find-in-page coordinates. | 223 // defined in find-in-page coordinates. |
224 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | 224 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
225 | 225 |
226 // Asks the renderer to send the rects of the current find matches. | 226 // Asks the renderer to send the rects of the current find matches. |
227 virtual void RequestFindMatchRects(int current_version) = 0; | 227 virtual void RequestFindMatchRects(int current_version) = 0; |
228 | 228 |
229 // Disables fullscreen media playback for encrypted video. | 229 // Disables fullscreen media playback for encrypted video. |
230 virtual void DisableFullscreenEncryptedMediaPlayback() = 0; | 230 virtual void DisableFullscreenEncryptedMediaPlayback() = 0; |
231 #endif | 231 #endif |
232 | 232 |
233 #if defined(USE_MOJO) | |
234 // Sets the mojo handle for WebUI pages. | |
235 virtual void SetWebUIHandle(mojo::ScopedMessagePipeHandle handle) = 0; | |
236 #endif | |
237 | |
238 private: | 233 private: |
239 // This interface should only be implemented inside content. | 234 // This interface should only be implemented inside content. |
240 friend class RenderViewHostImpl; | 235 friend class RenderViewHostImpl; |
241 RenderViewHost() {} | 236 RenderViewHost() {} |
242 }; | 237 }; |
243 | 238 |
244 } // namespace content | 239 } // namespace content |
245 | 240 |
246 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 241 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |