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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
16 #include "base/id_map.h" | 16 #include "base/id_map.h" |
17 #include "base/memory/linked_ptr.h" | 17 #include "base/memory/linked_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/process.h" | 20 #include "base/process.h" |
21 #include "base/timer.h" | 21 #include "base/timer.h" |
22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
23 #include "cc/input/top_controls_state.h" | 23 #include "cc/input/top_controls_state.h" |
24 #include "content/common/content_export.h" | 24 #include "content/common/content_export.h" |
25 #include "content/common/drag_event_source_info.h" | 25 #include "content/common/drag_event_source_info.h" |
26 #include "content/common/edit_command.h" | 26 #include "content/common/edit_command.h" |
27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 27 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
28 #include "content/common/navigation_gesture.h" | 28 #include "content/common/navigation_gesture.h" |
29 #include "content/common/view_message_enums.h" | 29 #include "content/common/view_message_enums.h" |
30 #include "content/public/common/context_menu_source_type.h" | |
31 #include "content/public/common/javascript_message_type.h" | 30 #include "content/public/common/javascript_message_type.h" |
32 #include "content/public/common/page_zoom.h" | 31 #include "content/public/common/page_zoom.h" |
33 #include "content/public/common/referrer.h" | 32 #include "content/public/common/referrer.h" |
34 #include "content/public/common/renderer_preferences.h" | 33 #include "content/public/common/renderer_preferences.h" |
35 #include "content/public/common/stop_find_action.h" | 34 #include "content/public/common/stop_find_action.h" |
36 #include "content/public/common/top_controls_state.h" | 35 #include "content/public/common/top_controls_state.h" |
37 #include "content/public/renderer/render_view.h" | 36 #include "content/public/renderer/render_view.h" |
38 #include "content/renderer/mouse_lock_dispatcher.h" | 37 #include "content/renderer/mouse_lock_dispatcher.h" |
39 #include "content/renderer/render_frame_impl.h" | 38 #include "content/renderer/render_frame_impl.h" |
40 #include "content/renderer/render_view_pepper_helper.h" | 39 #include "content/renderer/render_view_pepper_helper.h" |
41 #include "content/renderer/render_widget.h" | 40 #include "content/renderer/render_widget.h" |
42 #include "content/renderer/renderer_webcookiejar_impl.h" | 41 #include "content/renderer/renderer_webcookiejar_impl.h" |
43 #include "content/renderer/stats_collection_observer.h" | 42 #include "content/renderer/stats_collection_observer.h" |
44 #include "ipc/ipc_platform_file.h" | 43 #include "ipc/ipc_platform_file.h" |
45 #include "third_party/WebKit/public/platform/WebFileSystem.h" | 44 #include "third_party/WebKit/public/platform/WebFileSystem.h" |
46 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 45 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
47 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 46 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
48 #include "third_party/WebKit/public/web/WebDataSource.h" | 47 #include "third_party/WebKit/public/web/WebDataSource.h" |
49 #include "third_party/WebKit/public/web/WebFrameClient.h" | 48 #include "third_party/WebKit/public/web/WebFrameClient.h" |
50 #include "third_party/WebKit/public/web/WebHistoryItem.h" | 49 #include "third_party/WebKit/public/web/WebHistoryItem.h" |
51 #include "third_party/WebKit/public/web/WebIconURL.h" | 50 #include "third_party/WebKit/public/web/WebIconURL.h" |
52 #include "third_party/WebKit/public/web/WebInputEvent.h" | 51 #include "third_party/WebKit/public/web/WebInputEvent.h" |
53 #include "third_party/WebKit/public/web/WebNavigationType.h" | 52 #include "third_party/WebKit/public/web/WebNavigationType.h" |
54 #include "third_party/WebKit/public/web/WebNode.h" | 53 #include "third_party/WebKit/public/web/WebNode.h" |
55 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" | 54 #include "third_party/WebKit/public/web/WebPageSerializerClient.h" |
56 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" | 55 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" |
57 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 56 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
58 #include "third_party/WebKit/public/web/WebViewClient.h" | 57 #include "third_party/WebKit/public/web/WebViewClient.h" |
| 58 #include "ui/base/ui_base_types.h" |
59 #include "ui/surface/transport_dib.h" | 59 #include "ui/surface/transport_dib.h" |
60 #include "webkit/common/webpreferences.h" | 60 #include "webkit/common/webpreferences.h" |
61 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 61 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
62 #include "webkit/renderer/media/webmediaplayer_delegate.h" | 62 #include "webkit/renderer/media/webmediaplayer_delegate.h" |
63 | 63 |
64 #if defined(OS_ANDROID) | 64 #if defined(OS_ANDROID) |
65 #include "content/renderer/android/content_detector.h" | 65 #include "content/renderer/android/content_detector.h" |
66 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" | 66 #include "third_party/WebKit/public/web/WebContentDetectionResult.h" |
67 #endif | 67 #endif |
68 | 68 |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 // being handled. If the current event results in starting a drag/drop | 1550 // being handled. If the current event results in starting a drag/drop |
1551 // session, this info is sent to the browser along with other drag/drop info. | 1551 // session, this info is sent to the browser along with other drag/drop info. |
1552 DragEventSourceInfo possible_drag_event_info_; | 1552 DragEventSourceInfo possible_drag_event_info_; |
1553 | 1553 |
1554 // NOTE: pepper_helper_ and stats_collection_observer_ should be the last | 1554 // NOTE: pepper_helper_ and stats_collection_observer_ should be the last |
1555 // members because their constructors call the AddObservers method of | 1555 // members because their constructors call the AddObservers method of |
1556 // RenderViewImpl. | 1556 // RenderViewImpl. |
1557 scoped_ptr<RenderViewPepperHelper> pepper_helper_; | 1557 scoped_ptr<RenderViewPepperHelper> pepper_helper_; |
1558 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; | 1558 scoped_ptr<StatsCollectionObserver> stats_collection_observer_; |
1559 | 1559 |
1560 ContextMenuSourceType context_menu_source_type_; | 1560 ui::MenuSourceType context_menu_source_type_; |
1561 gfx::Point touch_editing_context_menu_location_; | 1561 gfx::Point touch_editing_context_menu_location_; |
1562 | 1562 |
1563 // --------------------------------------------------------------------------- | 1563 // --------------------------------------------------------------------------- |
1564 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1564 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1565 // sections rather than throwing it randomly at the end. If you're adding a | 1565 // sections rather than throwing it randomly at the end. If you're adding a |
1566 // bunch of stuff, you should probably create a helper class and put your | 1566 // bunch of stuff, you should probably create a helper class and put your |
1567 // data and methods on that to avoid bloating RenderView more. You can | 1567 // data and methods on that to avoid bloating RenderView more. You can |
1568 // use the Observer interface to filter IPC messages and receive frame change | 1568 // use the Observer interface to filter IPC messages and receive frame change |
1569 // notifications. | 1569 // notifications. |
1570 // --------------------------------------------------------------------------- | 1570 // --------------------------------------------------------------------------- |
1571 | 1571 |
1572 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1572 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1573 }; | 1573 }; |
1574 | 1574 |
1575 } // namespace content | 1575 } // namespace content |
1576 | 1576 |
1577 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1577 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |