| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "content/common/page_zoom.h" | 27 #include "content/common/page_zoom.h" |
| 28 #include "content/common/renderer_preferences.h" | 28 #include "content/common/renderer_preferences.h" |
| 29 #include "content/renderer/pepper_plugin_delegate_impl.h" | 29 #include "content/renderer/pepper_plugin_delegate_impl.h" |
| 30 #include "content/renderer/render_widget.h" | 30 #include "content/renderer/render_widget.h" |
| 31 #include "ipc/ipc_platform_file.h" | 31 #include "ipc/ipc_platform_file.h" |
| 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" | 32 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotif
ication.h" |
| 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 33 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
| 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 34 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" |
| 40 #include "ui/gfx/surface/transport_dib.h" | 41 #include "ui/gfx/surface/transport_dib.h" |
| 41 #include "webkit/glue/webpreferences.h" | 42 #include "webkit/glue/webpreferences.h" |
| 42 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 43 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
| 43 | 44 |
| 44 #if defined(OS_WIN) | 45 #if defined(OS_WIN) |
| 45 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. | 46 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. |
| 46 // VS warns when we inherit the WebWidgetClient method implementations from | 47 // VS warns when we inherit the WebWidgetClient method implementations from |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 virtual WebKit::WebGeolocationClient* geolocationClient(); | 420 virtual WebKit::WebGeolocationClient* geolocationClient(); |
| 420 virtual WebKit::WebSpeechInputController* speechInputController( | 421 virtual WebKit::WebSpeechInputController* speechInputController( |
| 421 WebKit::WebSpeechInputListener* listener); | 422 WebKit::WebSpeechInputListener* listener); |
| 422 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); | 423 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); |
| 423 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); | 424 virtual void zoomLimitsChanged(double minimum_level, double maximum_level); |
| 424 virtual void zoomLevelChanged(); | 425 virtual void zoomLevelChanged(); |
| 425 virtual void registerProtocolHandler(const WebKit::WebString& scheme, | 426 virtual void registerProtocolHandler(const WebKit::WebString& scheme, |
| 426 const WebKit::WebString& base_url, | 427 const WebKit::WebString& base_url, |
| 427 const WebKit::WebString& url, | 428 const WebKit::WebString& url, |
| 428 const WebKit::WebString& title); | 429 const WebKit::WebString& title); |
| 430 virtual WebKit::WebPageVisibilityState visibilityState() const; |
| 429 | 431 |
| 430 // WebKit::WebFrameClient implementation ------------------------------------- | 432 // WebKit::WebFrameClient implementation ------------------------------------- |
| 431 | 433 |
| 432 virtual WebKit::WebPlugin* createPlugin( | 434 virtual WebKit::WebPlugin* createPlugin( |
| 433 WebKit::WebFrame* frame, | 435 WebKit::WebFrame* frame, |
| 434 const WebKit::WebPluginParams& params); | 436 const WebKit::WebPluginParams& params); |
| 435 virtual WebKit::WebWorker* createWorker(WebKit::WebFrame* frame, | 437 virtual WebKit::WebWorker* createWorker(WebKit::WebFrame* frame, |
| 436 WebKit::WebWorkerClient* client); | 438 WebKit::WebWorkerClient* client); |
| 437 virtual WebKit::WebSharedWorker* createSharedWorker( | 439 virtual WebKit::WebSharedWorker* createSharedWorker( |
| 438 WebKit::WebFrame* frame, const WebKit::WebURL& url, | 440 WebKit::WebFrame* frame, const WebKit::WebURL& url, |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 // bunch of stuff, you should probably create a helper class and put your | 1155 // bunch of stuff, you should probably create a helper class and put your |
| 1154 // data and methods on that to avoid bloating RenderView more. You can use | 1156 // data and methods on that to avoid bloating RenderView more. You can use |
| 1155 // the Observer interface to filter IPC messages and receive frame change | 1157 // the Observer interface to filter IPC messages and receive frame change |
| 1156 // notifications. | 1158 // notifications. |
| 1157 // --------------------------------------------------------------------------- | 1159 // --------------------------------------------------------------------------- |
| 1158 | 1160 |
| 1159 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1161 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1160 }; | 1162 }; |
| 1161 | 1163 |
| 1162 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1164 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |