| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 476 |
| 477 // RenderView implementation ------------------------------------------------- | 477 // RenderView implementation ------------------------------------------------- |
| 478 | 478 |
| 479 virtual bool Send(IPC::Message* message) OVERRIDE; | 479 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 480 virtual RenderFrame* GetMainRenderFrame() OVERRIDE; | 480 virtual RenderFrame* GetMainRenderFrame() OVERRIDE; |
| 481 virtual int GetRoutingID() const OVERRIDE; | 481 virtual int GetRoutingID() const OVERRIDE; |
| 482 virtual int GetPageId() const OVERRIDE; | 482 virtual int GetPageId() const OVERRIDE; |
| 483 virtual gfx::Size GetSize() const OVERRIDE; | 483 virtual gfx::Size GetSize() const OVERRIDE; |
| 484 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; | 484 virtual WebPreferences& GetWebkitPreferences() OVERRIDE; |
| 485 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; | 485 virtual void SetWebkitPreferences(const WebPreferences& preferences) OVERRIDE; |
| 486 virtual void ApplyWebPreferences(const WebPreferences& preferences) OVERRIDE; |
| 486 virtual blink::WebView* GetWebView() OVERRIDE; | 487 virtual blink::WebView* GetWebView() OVERRIDE; |
| 487 virtual blink::WebElement GetFocusedElement() const OVERRIDE; | 488 virtual blink::WebElement GetFocusedElement() const OVERRIDE; |
| 488 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; | 489 virtual bool IsEditableNode(const blink::WebNode& node) const OVERRIDE; |
| 489 virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE; | 490 virtual bool ShouldDisplayScrollbars(int width, int height) const OVERRIDE; |
| 490 virtual int GetEnabledBindings() const OVERRIDE; | 491 virtual int GetEnabledBindings() const OVERRIDE; |
| 491 virtual bool GetContentStateImmediately() const OVERRIDE; | 492 virtual bool GetContentStateImmediately() const OVERRIDE; |
| 492 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; | 493 virtual blink::WebPageVisibilityState GetVisibilityState() const OVERRIDE; |
| 493 virtual void DidStartLoading() OVERRIDE; | 494 virtual void DidStartLoading() OVERRIDE; |
| 494 virtual void DidStopLoading() OVERRIDE; | 495 virtual void DidStopLoading() OVERRIDE; |
| 495 virtual void Repaint(const gfx::Size& size) OVERRIDE; | 496 virtual void Repaint(const gfx::Size& size) OVERRIDE; |
| (...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 // use the Observer interface to filter IPC messages and receive frame change | 1170 // use the Observer interface to filter IPC messages and receive frame change |
| 1170 // notifications. | 1171 // notifications. |
| 1171 // --------------------------------------------------------------------------- | 1172 // --------------------------------------------------------------------------- |
| 1172 | 1173 |
| 1173 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1174 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1174 }; | 1175 }; |
| 1175 | 1176 |
| 1176 } // namespace content | 1177 } // namespace content |
| 1177 | 1178 |
| 1178 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1179 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |