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_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 #if defined(OS_ANDROID) | 131 #if defined(OS_ANDROID) |
132 namespace webkit_media { | 132 namespace webkit_media { |
133 class WebMediaPlayerManagerAndroid; | 133 class WebMediaPlayerManagerAndroid; |
134 } | 134 } |
135 #endif | 135 #endif |
136 | 136 |
137 namespace WebKit { | 137 namespace WebKit { |
138 class WebApplicationCacheHost; | 138 class WebApplicationCacheHost; |
139 class WebApplicationCacheHostClient; | 139 class WebApplicationCacheHostClient; |
| 140 class WebCompositorOutputSurface; |
140 class WebDOMMessageEvent; | 141 class WebDOMMessageEvent; |
141 class WebDataSource; | 142 class WebDataSource; |
142 class WebDragData; | 143 class WebDragData; |
143 class WebGeolocationClient; | 144 class WebGeolocationClient; |
144 class WebIconURL; | 145 class WebIconURL; |
145 class WebImage; | 146 class WebImage; |
146 class WebPeerConnection00Handler; | 147 class WebPeerConnection00Handler; |
147 class WebPeerConnection00HandlerClient; | 148 class WebPeerConnection00HandlerClient; |
148 class WebMediaPlayer; | 149 class WebMediaPlayer; |
149 class WebMediaPlayerClient; | 150 class WebMediaPlayerClient; |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 const WebKit::WebURLRequest& request, | 424 const WebKit::WebURLRequest& request, |
424 const WebKit::WebWindowFeatures& features, | 425 const WebKit::WebWindowFeatures& features, |
425 const WebKit::WebString& frame_name, | 426 const WebKit::WebString& frame_name, |
426 WebKit::WebNavigationPolicy policy); | 427 WebKit::WebNavigationPolicy policy); |
427 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); | 428 virtual WebKit::WebWidget* createPopupMenu(WebKit::WebPopupType popup_type); |
428 virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu( | 429 virtual WebKit::WebExternalPopupMenu* createExternalPopupMenu( |
429 const WebKit::WebPopupMenuInfo& popup_menu_info, | 430 const WebKit::WebPopupMenuInfo& popup_menu_info, |
430 WebKit::WebExternalPopupMenuClient* popup_menu_client); | 431 WebKit::WebExternalPopupMenuClient* popup_menu_client); |
431 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( | 432 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace( |
432 unsigned quota); | 433 unsigned quota); |
433 virtual WebKit::WebGraphicsContext3D* createGraphicsContext3D( | 434 virtual WebKit::WebCompositorOutputSurface* createOutputSurface() OVERRIDE; |
434 const WebKit::WebGraphicsContext3D::Attributes& attributes); | |
435 virtual void didAddMessageToConsole( | 435 virtual void didAddMessageToConsole( |
436 const WebKit::WebConsoleMessage& message, | 436 const WebKit::WebConsoleMessage& message, |
437 const WebKit::WebString& source_name, | 437 const WebKit::WebString& source_name, |
438 unsigned source_line); | 438 unsigned source_line); |
439 virtual void printPage(WebKit::WebFrame* frame); | 439 virtual void printPage(WebKit::WebFrame* frame); |
440 virtual WebKit::WebNotificationPresenter* notificationPresenter(); | 440 virtual WebKit::WebNotificationPresenter* notificationPresenter(); |
441 virtual bool enumerateChosenDirectory( | 441 virtual bool enumerateChosenDirectory( |
442 const WebKit::WebString& path, | 442 const WebKit::WebString& path, |
443 WebKit::WebFileChooserCompletion* chooser_completion); | 443 WebKit::WebFileChooserCompletion* chooser_completion); |
444 virtual void initializeHelperPluginWebFrame(WebKit::WebHelperPlugin*); | 444 virtual void initializeHelperPluginWebFrame(WebKit::WebHelperPlugin*); |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1029 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x, | 1029 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x, |
1030 int zoom_center_y, float scaling_increment); | 1030 int zoom_center_y, float scaling_increment); |
1031 | 1031 |
1032 void AltErrorPageFinished(WebKit::WebFrame* frame, | 1032 void AltErrorPageFinished(WebKit::WebFrame* frame, |
1033 const WebKit::WebURLError& original_error, | 1033 const WebKit::WebURLError& original_error, |
1034 const std::string& html); | 1034 const std::string& html); |
1035 | 1035 |
1036 // Check whether the preferred size has changed. | 1036 // Check whether the preferred size has changed. |
1037 void CheckPreferredSize(); | 1037 void CheckPreferredSize(); |
1038 | 1038 |
| 1039 WebKit::WebGraphicsContext3D* CreateGraphicsContext3D( |
| 1040 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
| 1041 |
1039 void EnsureMediaStreamImpl(); | 1042 void EnsureMediaStreamImpl(); |
1040 | 1043 |
1041 // This callback is triggered when DownloadFavicon completes, either | 1044 // This callback is triggered when DownloadFavicon completes, either |
1042 // succesfully or with a failure. See DownloadFavicon for more | 1045 // succesfully or with a failure. See DownloadFavicon for more |
1043 // details. | 1046 // details. |
1044 void DidDownloadFavicon(webkit_glue::ImageResourceFetcher* fetcher, | 1047 void DidDownloadFavicon(webkit_glue::ImageResourceFetcher* fetcher, |
1045 const SkBitmap& image); | 1048 const SkBitmap& image); |
1046 | 1049 |
1047 // Requests to download a favicon image. When done, the RenderView is notified | 1050 // Requests to download a favicon image. When done, the RenderView is notified |
1048 // by way of DidDownloadFavicon. Returns true if the request was successfully | 1051 // by way of DidDownloadFavicon. Returns true if the request was successfully |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 // bunch of stuff, you should probably create a helper class and put your | 1448 // bunch of stuff, you should probably create a helper class and put your |
1446 // data and methods on that to avoid bloating RenderView more. You can | 1449 // data and methods on that to avoid bloating RenderView more. You can |
1447 // use the Observer interface to filter IPC messages and receive frame change | 1450 // use the Observer interface to filter IPC messages and receive frame change |
1448 // notifications. | 1451 // notifications. |
1449 // --------------------------------------------------------------------------- | 1452 // --------------------------------------------------------------------------- |
1450 | 1453 |
1451 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1454 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1452 }; | 1455 }; |
1453 | 1456 |
1454 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1457 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |