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

Side by Side Diff: chrome/renderer/render_view.h

Issue 6142013: Allow printing/saving a plugin through right click menu, even if it's in a fr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | « chrome/renderer/print_web_view_helper_mac.mm ('k') | chrome/renderer/render_view.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) 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 CHROME_RENDERER_RENDER_VIEW_H_ 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_
6 #define CHROME_RENDERER_RENDER_VIEW_H_ 6 #define CHROME_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 23 matching lines...) Expand all
34 #include "chrome/renderer/render_widget.h" 34 #include "chrome/renderer/render_widget.h"
35 #include "chrome/renderer/renderer_webcookiejar_impl.h" 35 #include "chrome/renderer/renderer_webcookiejar_impl.h"
36 #include "chrome/renderer/searchbox.h" 36 #include "chrome/renderer/searchbox.h"
37 #include "chrome/renderer/translate_helper.h" 37 #include "chrome/renderer/translate_helper.h"
38 #include "third_party/WebKit/WebKit/chromium/public/WebAutoFillClient.h" 38 #include "third_party/WebKit/WebKit/chromium/public/WebAutoFillClient.h"
39 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h" 39 #include "third_party/WebKit/WebKit/chromium/public/WebConsoleMessage.h"
40 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h" 40 #include "third_party/WebKit/WebKit/chromium/public/WebFileSystem.h"
41 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h" 41 #include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
42 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h" 42 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
43 #include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h" 43 #include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h"
44 #include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
44 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h" 45 #include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h"
45 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h" 46 #include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h"
46 #include "third_party/WebKit/WebKit/chromium/public/WebNavigationType.h" 47 #include "third_party/WebKit/WebKit/chromium/public/WebNavigationType.h"
47 #include "webkit/glue/webpreferences.h" 48 #include "webkit/glue/webpreferences.h"
48 #include "webkit/plugins/npapi/webplugin_page_delegate.h" 49 #include "webkit/plugins/npapi/webplugin_page_delegate.h"
49 50
50 #if defined(OS_WIN) 51 #if defined(OS_WIN)
51 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. 52 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root.
52 // VS warns when we inherit the WebWidgetClient method implementations from 53 // VS warns when we inherit the WebWidgetClient method implementations from
53 // RenderWidget. It's safe to ignore that warning. 54 // RenderWidget. It's safe to ignore that warning.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 class WebDragData; 134 class WebDragData;
134 class WebFrame; 135 class WebFrame;
135 class WebGeolocationClient; 136 class WebGeolocationClient;
136 class WebGeolocationServiceInterface; 137 class WebGeolocationServiceInterface;
137 class WebImage; 138 class WebImage;
138 class WebInputElement; 139 class WebInputElement;
139 class WebKeyboardEvent; 140 class WebKeyboardEvent;
140 class WebMediaPlayer; 141 class WebMediaPlayer;
141 class WebMediaPlayerClient; 142 class WebMediaPlayerClient;
142 class WebMouseEvent; 143 class WebMouseEvent;
143 class WebNode;
144 class WebPlugin; 144 class WebPlugin;
145 class WebSpeechInputController; 145 class WebSpeechInputController;
146 class WebSpeechInputListener; 146 class WebSpeechInputListener;
147 class WebStorageNamespace; 147 class WebStorageNamespace;
148 class WebURLRequest; 148 class WebURLRequest;
149 class WebView; 149 class WebView;
150 struct WebContextMenuData; 150 struct WebContextMenuData;
151 struct WebFileChooserParams; 151 struct WebFileChooserParams;
152 struct WebFindOptions; 152 struct WebFindOptions;
153 struct WebPluginParams; 153 struct WebPluginParams;
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 const std::vector<int>& unique_ids); 870 const std::vector<int>& unique_ids);
871 void OnCancelDownload(int32 download_id); 871 void OnCancelDownload(int32 download_id);
872 void OnClearFocusedNode(); 872 void OnClearFocusedNode();
873 void OnClosePage(const ViewMsg_ClosePage_Params& params); 873 void OnClosePage(const ViewMsg_ClosePage_Params& params);
874 #if defined(ENABLE_FLAPPER_HACKS) 874 #if defined(ENABLE_FLAPPER_HACKS)
875 void OnConnectTcpACK(int request_id, 875 void OnConnectTcpACK(int request_id,
876 IPC::PlatformFileForTransit socket_for_transit, 876 IPC::PlatformFileForTransit socket_for_transit,
877 const PP_Flash_NetAddress& local_addr, 877 const PP_Flash_NetAddress& local_addr,
878 const PP_Flash_NetAddress& remote_addr); 878 const PP_Flash_NetAddress& remote_addr);
879 #endif 879 #endif
880 void OnContextMenuClosed();
880 void OnCopy(); 881 void OnCopy();
881 void OnCopyImageAt(int x, int y); 882 void OnCopyImageAt(int x, int y);
882 #if defined(OS_MACOSX) 883 #if defined(OS_MACOSX)
883 void OnCopyToFindPboard(); 884 void OnCopyToFindPboard();
884 #endif 885 #endif
885 void OnCut(); 886 void OnCut();
886 void OnCaptureThumbnail(); 887 void OnCaptureThumbnail();
887 void OnCaptureSnapshot(); 888 void OnCaptureSnapshot();
888 void OnCSSInsertRequest(const std::wstring& frame_xpath, 889 void OnCSSInsertRequest(const std::wstring& frame_xpath,
889 const std::string& css, 890 const std::string& css,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 void OnNotifyRendererViewType(ViewType::Type view_type); 949 void OnNotifyRendererViewType(ViewType::Type view_type);
949 void OnFillPasswordForm( 950 void OnFillPasswordForm(
950 const webkit_glue::PasswordFormFillData& form_data); 951 const webkit_glue::PasswordFormFillData& form_data);
951 void OnPaste(); 952 void OnPaste();
952 #if defined(OS_MACOSX) 953 #if defined(OS_MACOSX)
953 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id); 954 void OnPluginImeCompositionConfirmed(const string16& text, int plugin_id);
954 #endif 955 #endif
955 void OnPrintingDone(int document_cookie, bool success); 956 void OnPrintingDone(int document_cookie, bool success);
956 void OnPrintPages(); 957 void OnPrintPages();
957 void OnPrintPreview(); 958 void OnPrintPreview();
959 void OnPrintNodeUnderContextMenu();
958 void OnRedo(); 960 void OnRedo();
959 void OnReloadFrame(); 961 void OnReloadFrame();
960 void OnReplace(const string16& text); 962 void OnReplace(const string16& text);
961 void OnReservePageIDRange(int size_of_range); 963 void OnReservePageIDRange(int size_of_range);
962 void OnResetPageEncodingToDefault(); 964 void OnResetPageEncodingToDefault();
963 void OnRevertTranslation(int page_id); 965 void OnRevertTranslation(int page_id);
964 void OnScriptEvalRequest(const string16& frame_xpath, 966 void OnScriptEvalRequest(const string16& frame_xpath,
965 const string16& jscript, 967 const string16& jscript,
966 int id, 968 int id,
967 bool notify_result); 969 bool notify_result);
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 void LoadNavigationErrorPage(WebKit::WebFrame* frame, 1133 void LoadNavigationErrorPage(WebKit::WebFrame* frame,
1132 const WebKit::WebURLRequest& failed_request, 1134 const WebKit::WebURLRequest& failed_request,
1133 const WebKit::WebURLError& error, 1135 const WebKit::WebURLError& error,
1134 const std::string& html, 1136 const std::string& html,
1135 bool replace); 1137 bool replace);
1136 1138
1137 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, 1139 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame,
1138 const WebKit::WebURLError& error, 1140 const WebKit::WebURLError& error,
1139 bool replace); 1141 bool replace);
1140 1142
1143 // Prints |frame|.
1141 void Print(WebKit::WebFrame* frame, bool script_initiated, bool is_preview); 1144 void Print(WebKit::WebFrame* frame, bool script_initiated, bool is_preview);
1142 1145
1146 // Returns the PrintWebViewHelper for this class, creating if necessary.
1147 PrintWebViewHelper* GetPrintWebViewHelper();
1148
1143 // Returns whether the page associated with |document| is a candidate for 1149 // Returns whether the page associated with |document| is a candidate for
1144 // translation. Some pages can explictly specify (via a meta-tag) that they 1150 // translation. Some pages can explictly specify (via a meta-tag) that they
1145 // should not be translated. 1151 // should not be translated.
1146 bool IsPageTranslatable(WebKit::WebDocument* document); 1152 bool IsPageTranslatable(WebKit::WebDocument* document);
1147 1153
1148 // Starts nav_state_sync_timer_ if it isn't already running. 1154 // Starts nav_state_sync_timer_ if it isn't already running.
1149 void StartNavStateSyncTimerIfNecessary(); 1155 void StartNavStateSyncTimerIfNecessary();
1150 1156
1151 // Dispatches the current navigation state to the browser. Called on a 1157 // Dispatches the current navigation state to the browser. Called on a
1152 // periodic timer so we don't send too many messages. 1158 // periodic timer so we don't send too many messages.
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 1522
1517 // External host exposed through automation controller. 1523 // External host exposed through automation controller.
1518 scoped_ptr<ExternalHostBindings> external_host_bindings_; 1524 scoped_ptr<ExternalHostBindings> external_host_bindings_;
1519 1525
1520 // The external popup for the currently showing select popup. 1526 // The external popup for the currently showing select popup.
1521 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1527 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1522 1528
1523 // The custom menu event listener, if any. 1529 // The custom menu event listener, if any.
1524 CustomMenuListener* custom_menu_listener_; 1530 CustomMenuListener* custom_menu_listener_;
1525 1531
1532 // The node that the context menu was pressed over.
1533 WebKit::WebNode context_menu_node_;
1534
1526 // Reports load progress to the browser. 1535 // Reports load progress to the browser.
1527 scoped_ptr<LoadProgressTracker> load_progress_tracker_; 1536 scoped_ptr<LoadProgressTracker> load_progress_tracker_;
1528 1537
1529 // --------------------------------------------------------------------------- 1538 // ---------------------------------------------------------------------------
1530 // ADDING NEW DATA? Please see if it fits appropriately in one of the above 1539 // ADDING NEW DATA? Please see if it fits appropriately in one of the above
1531 // sections rather than throwing it randomly at the end. If you're adding a 1540 // sections rather than throwing it randomly at the end. If you're adding a
1532 // bunch of stuff, you should probably create a helper class and put your 1541 // bunch of stuff, you should probably create a helper class and put your
1533 // data and methods on that to avoid bloating RenderView more. 1542 // data and methods on that to avoid bloating RenderView more.
1534 // --------------------------------------------------------------------------- 1543 // ---------------------------------------------------------------------------
1535 1544
1536 DISALLOW_COPY_AND_ASSIGN(RenderView); 1545 DISALLOW_COPY_AND_ASSIGN(RenderView);
1537 }; 1546 };
1538 1547
1539 #endif // CHROME_RENDERER_RENDER_VIEW_H_ 1548 #endif // CHROME_RENDERER_RENDER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/renderer/print_web_view_helper_mac.mm ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698