Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(432)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10451047: content: Move javascript_message_type.h into content/ from ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm CONTEXT_EXPORT Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/javascript_message_type.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
11 #include <set> 11 #include <set>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/memory/linked_ptr.h" 18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.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 "content/common/content_export.h" 23 #include "content/common/content_export.h"
24 #include "content/common/edit_command.h" 24 #include "content/common/edit_command.h"
25 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 25 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
26 #include "content/common/navigation_gesture.h" 26 #include "content/common/navigation_gesture.h"
27 #include "content/common/view_message_enums.h" 27 #include "content/common/view_message_enums.h"
28 #include "content/public/common/javascript_message_type.h"
28 #include "content/public/common/page_zoom.h" 29 #include "content/public/common/page_zoom.h"
29 #include "content/public/common/referrer.h" 30 #include "content/public/common/referrer.h"
30 #include "content/public/common/renderer_preferences.h" 31 #include "content/public/common/renderer_preferences.h"
31 #include "content/public/common/stop_find_action.h" 32 #include "content/public/common/stop_find_action.h"
32 #include "content/public/renderer/render_view.h" 33 #include "content/public/renderer/render_view.h"
33 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" 34 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
34 #include "content/renderer/render_view_selection.h" 35 #include "content/renderer/render_view_selection.h"
35 #include "content/renderer/render_widget.h" 36 #include "content/renderer/render_widget.h"
36 #include "content/renderer/renderer_webcookiejar_impl.h" 37 #include "content/renderer/renderer_webcookiejar_impl.h"
37 #include "ipc/ipc_platform_file.h" 38 #include "ipc/ipc_platform_file.h"
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" 42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h"
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h" 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationType.h"
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h" 44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h" 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializerClie nt.h"
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h" 46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat e.h"
46 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
48 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" 49 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h" 50 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFileSyste m.h"
50 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 51 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
51 #include "ui/base/javascript_message_type.h"
52 #include "ui/surface/transport_dib.h" 52 #include "ui/surface/transport_dib.h"
53 #include "webkit/glue/webpreferences.h" 53 #include "webkit/glue/webpreferences.h"
54 #include "webkit/media/webmediaplayer_delegate.h" 54 #include "webkit/media/webmediaplayer_delegate.h"
55 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 55 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
56 56
57 #if defined(COMPILER_MSVC) 57 #if defined(COMPILER_MSVC)
58 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the 58 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the
59 // root. VS warns when we inherit the WebWidgetClient method implementations 59 // root. VS warns when we inherit the WebWidgetClient method implementations
60 // from RenderWidget. It's safe to ignore that warning. 60 // from RenderWidget. It's safe to ignore that warning.
61 #pragma warning(disable: 4250) 61 #pragma warning(disable: 4250)
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 // called, that means we have got whole html page. In here we should 820 // called, that means we have got whole html page. In here we should
821 // finally get right encoding of page. 821 // finally get right encoding of page.
822 void UpdateEncoding(WebKit::WebFrame* frame, 822 void UpdateEncoding(WebKit::WebFrame* frame,
823 const std::string& encoding_name); 823 const std::string& encoding_name);
824 824
825 void OpenURL(WebKit::WebFrame* frame, 825 void OpenURL(WebKit::WebFrame* frame,
826 const GURL& url, 826 const GURL& url,
827 const content::Referrer& referrer, 827 const content::Referrer& referrer,
828 WebKit::WebNavigationPolicy policy); 828 WebKit::WebNavigationPolicy policy);
829 829
830 bool RunJavaScriptMessage(ui::JavascriptMessageType type, 830 bool RunJavaScriptMessage(content::JavaScriptMessageType type,
831 const string16& message, 831 const string16& message,
832 const string16& default_value, 832 const string16& default_value,
833 const GURL& frame_url, 833 const GURL& frame_url,
834 string16* result); 834 string16* result);
835 835
836 // Sends a message and runs a nested message loop. 836 // Sends a message and runs a nested message loop.
837 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); 837 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message);
838 838
839 // Called when the "pinned to left/right edge" state needs to be updated. 839 // Called when the "pinned to left/right edge" state needs to be updated.
840 void UpdateScrollState(WebKit::WebFrame* frame); 840 void UpdateScrollState(WebKit::WebFrame* frame);
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1411 // bunch of stuff, you should probably create a helper class and put your 1411 // bunch of stuff, you should probably create a helper class and put your
1412 // data and methods on that to avoid bloating RenderView more. You can 1412 // data and methods on that to avoid bloating RenderView more. You can
1413 // use the Observer interface to filter IPC messages and receive frame change 1413 // use the Observer interface to filter IPC messages and receive frame change
1414 // notifications. 1414 // notifications.
1415 // --------------------------------------------------------------------------- 1415 // ---------------------------------------------------------------------------
1416 1416
1417 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1417 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1418 }; 1418 };
1419 1419
1420 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1420 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/common/javascript_message_type.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698