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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/basictypes.h" | 16 #include "base/basictypes.h" |
17 #include "base/gtest_prod_util.h" | 17 #include "base/gtest_prod_util.h" |
18 #include "base/id_map.h" | 18 #include "base/id_map.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/timer.h" | 22 #include "base/timer.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/renderer/render_view_selection.h" | 24 #include "content/renderer/render_view_selection.h" |
25 #include "content/renderer/renderer_webcookiejar_impl.h" | 25 #include "content/renderer/renderer_webcookiejar_impl.h" |
26 #include "content/common/content_export.h" | 26 #include "content/common/content_export.h" |
27 #include "content/common/edit_command.h" | 27 #include "content/common/edit_command.h" |
28 #include "content/common/navigation_gesture.h" | 28 #include "content/common/navigation_gesture.h" |
29 #include "content/common/page_zoom.h" | |
30 #include "content/common/renderer_preferences.h" | 29 #include "content/common/renderer_preferences.h" |
| 30 #include "content/public/common/page_zoom.h" |
31 #include "content/public/renderer/render_view.h" | 31 #include "content/public/renderer/render_view.h" |
32 #include "content/renderer/pepper_plugin_delegate_impl.h" | 32 #include "content/renderer/pepper_plugin_delegate_impl.h" |
33 #include "content/renderer/render_widget.h" | 33 #include "content/renderer/render_widget.h" |
34 #include "ipc/ipc_platform_file.h" | 34 #include "ipc/ipc_platform_file.h" |
35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" |
36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystem.h" |
37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie
nt.h" |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 void OnThemeChanged(); | 853 void OnThemeChanged(); |
854 void OnUndo(); | 854 void OnUndo(); |
855 void OnUpdateTargetURLAck(); | 855 void OnUpdateTargetURLAck(); |
856 void OnUpdateWebPreferences(const WebPreferences& prefs); | 856 void OnUpdateWebPreferences(const WebPreferences& prefs); |
857 | 857 |
858 #if defined(OS_MACOSX) | 858 #if defined(OS_MACOSX) |
859 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 859 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
860 const gfx::Rect& view_frame); | 860 const gfx::Rect& view_frame); |
861 void OnSelectPopupMenuItem(int selected_index); | 861 void OnSelectPopupMenuItem(int selected_index); |
862 #endif | 862 #endif |
863 void OnZoom(PageZoom::Function function); | 863 void OnZoom(content::PageZoom zoom); |
864 void OnEnableViewSourceMode(); | 864 void OnEnableViewSourceMode(); |
865 | 865 |
866 void OnJavaBridgeInit(const IPC::ChannelHandle& channel_handle); | 866 void OnJavaBridgeInit(const IPC::ChannelHandle& channel_handle); |
867 | 867 |
868 // Adding a new message handler? Please add it in alphabetical order above | 868 // Adding a new message handler? Please add it in alphabetical order above |
869 // and put it in the same position in the .cc file. | 869 // and put it in the same position in the .cc file. |
870 | 870 |
871 // Misc private functions ---------------------------------------------------- | 871 // Misc private functions ---------------------------------------------------- |
872 | 872 |
873 void AltErrorPageFinished(WebKit::WebFrame* frame, | 873 void AltErrorPageFinished(WebKit::WebFrame* frame, |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 // bunch of stuff, you should probably create a helper class and put your | 1224 // bunch of stuff, you should probably create a helper class and put your |
1225 // data and methods on that to avoid bloating RenderView more. You can | 1225 // data and methods on that to avoid bloating RenderView more. You can |
1226 // use the Observer interface to filter IPC messages and receive frame change | 1226 // use the Observer interface to filter IPC messages and receive frame change |
1227 // notifications. | 1227 // notifications. |
1228 // --------------------------------------------------------------------------- | 1228 // --------------------------------------------------------------------------- |
1229 | 1229 |
1230 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1230 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1231 }; | 1231 }; |
1232 | 1232 |
1233 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1233 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |