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 16 matching lines...) Expand all Loading... |
27 #include "content/common/drag_event_source_info.h" | 27 #include "content/common/drag_event_source_info.h" |
28 #include "content/common/edit_command.h" | 28 #include "content/common/edit_command.h" |
29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 29 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
30 #include "content/common/navigation_gesture.h" | 30 #include "content/common/navigation_gesture.h" |
31 #include "content/common/view_message_enums.h" | 31 #include "content/common/view_message_enums.h" |
32 #include "content/public/common/page_zoom.h" | 32 #include "content/public/common/page_zoom.h" |
33 #include "content/public/common/referrer.h" | 33 #include "content/public/common/referrer.h" |
34 #include "content/public/common/renderer_preferences.h" | 34 #include "content/public/common/renderer_preferences.h" |
35 #include "content/public/common/stop_find_action.h" | 35 #include "content/public/common/stop_find_action.h" |
36 #include "content/public/common/top_controls_state.h" | 36 #include "content/public/common/top_controls_state.h" |
| 37 #include "content/public/common/web_preferences.h" |
37 #include "content/public/renderer/render_view.h" | 38 #include "content/public/renderer/render_view.h" |
38 #include "content/renderer/mouse_lock_dispatcher.h" | 39 #include "content/renderer/mouse_lock_dispatcher.h" |
39 #include "content/renderer/render_frame_impl.h" | 40 #include "content/renderer/render_frame_impl.h" |
40 #include "content/renderer/render_widget.h" | 41 #include "content/renderer/render_widget.h" |
41 #include "content/renderer/stats_collection_observer.h" | 42 #include "content/renderer/stats_collection_observer.h" |
42 #include "ipc/ipc_platform_file.h" | 43 #include "ipc/ipc_platform_file.h" |
43 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 44 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
44 #include "third_party/WebKit/public/web/WebAXObject.h" | 45 #include "third_party/WebKit/public/web/WebAXObject.h" |
45 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 46 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
46 #include "third_party/WebKit/public/web/WebDataSource.h" | 47 #include "third_party/WebKit/public/web/WebDataSource.h" |
47 #include "third_party/WebKit/public/web/WebElement.h" | 48 #include "third_party/WebKit/public/web/WebElement.h" |
48 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 49 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
49 #include "third_party/WebKit/public/web/WebIconURL.h" | 50 #include "third_party/WebKit/public/web/WebIconURL.h" |
50 #include "third_party/WebKit/public/web/WebInputEvent.h" | 51 #include "third_party/WebKit/public/web/WebInputEvent.h" |
51 #include "third_party/WebKit/public/web/WebNavigationType.h" | 52 #include "third_party/WebKit/public/web/WebNavigationType.h" |
52 #include "third_party/WebKit/public/web/WebNode.h" | 53 #include "third_party/WebKit/public/web/WebNode.h" |
53 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" | 54 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" |
54 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 55 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
55 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 56 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
56 #include "third_party/WebKit/public/web/WebViewClient.h" | 57 #include "third_party/WebKit/public/web/WebViewClient.h" |
57 #include "ui/base/window_open_disposition.h" | 58 #include "ui/base/window_open_disposition.h" |
58 #include "ui/surface/transport_dib.h" | 59 #include "ui/surface/transport_dib.h" |
59 #include "webkit/common/webpreferences.h" | |
60 | 60 |
61 #if defined(OS_ANDROID) | 61 #if defined(OS_ANDROID) |
62 #include "content/renderer/android/content_detector.h" | 62 #include "content/renderer/android/content_detector.h" |
63 #include "content/renderer/android/renderer_date_time_picker.h" | 63 #include "content/renderer/android/renderer_date_time_picker.h" |
64 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" | 64 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" |
65 #endif | 65 #endif |
66 | 66 |
67 #if defined(COMPILER_MSVC) | 67 #if defined(COMPILER_MSVC) |
68 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 68 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
69 // root. VS warns when we inherit the WebWidgetClient method implementations | 69 // root. VS warns when we inherit the WebWidgetClient method implementations |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 | 477 |
478 // RenderView implementation ------------------------------------------------- | 478 // RenderView implementation ------------------------------------------------- |
479 | 479 |
480 virtual bool Send(IPC::Message* message) OVERRIDE; | 480 virtual bool Send(IPC::Message* message) OVERRIDE; |
481 virtual RenderFrame* GetMainRenderFrame() OVERRIDE; | 481 virtual RenderFrame* GetMainRenderFrame() OVERRIDE; |
482 virtual int GetRoutingID() const OVERRIDE; | 482 virtual int GetRoutingID() const OVERRIDE; |
483 virtual int GetPageId() const OVERRIDE; | 483 virtual int GetPageId() const OVERRIDE; |
484 virtual gfx::Size GetSize() const OVERRIDE; | 484 virtual gfx::Size GetSize() const OVERRIDE; |
485 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; | 485 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; |
486 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; | 486 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; |
| 487 virtual void ApplyWebPreferences(const WebPreferences& preferences) OVERRIDE; |
487 virtual blink::WebView* GetWebView() OVERRIDE; | 488 virtual blink::WebView* GetWebView() OVERRIDE; |
488 virtual blink::WebElement GetFocusedElement() const OVERRIDE; | 489 virtual blink::WebElement GetFocusedElement() const OVERRIDE; |
489 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; | 490 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; |
490 virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE; | 491 virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE; |
491 virtual int GetEnabledBindings() const OVERRIDE; | 492 virtual int GetEnabledBindings() const OVERRIDE; |
492 virtual bool GetContentStateImmediately() const OVERRIDE; | 493 virtual bool GetContentStateImmediately() const OVERRIDE; |
493 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; | 494 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; |
494 virtual void DidStartLoading() OVERRIDE; | 495 virtual void DidStartLoading() OVERRIDE; |
495 virtual void DidStopLoading() OVERRIDE; | 496 virtual void DidStopLoading() OVERRIDE; |
496 virtual void Repaint(const gfx::Size& size) OVERRIDE; | 497 virtual void Repaint(const gfx::Size& size) OVERRIDE; |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1173 // use the Observer interface to filter IPC messages and receive frame change | 1174 // use the Observer interface to filter IPC messages and receive frame change |
1174 // notifications. | 1175 // notifications. |
1175 // --------------------------------------------------------------------------- | 1176 // --------------------------------------------------------------------------- |
1176 | 1177 |
1177 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1178 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1178 }; | 1179 }; |
1179 | 1180 |
1180 } // namespace content | 1181 } // namespace content |
1181 | 1182 |
1182 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1183 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |