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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
===================================================================
--- chrome/renderer/render_view.h (revision 71495)
+++ chrome/renderer/render_view.h (working copy)
@@ -41,6 +41,7 @@
#include "third_party/WebKit/WebKit/chromium/public/WebFrameClient.h"
#include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
#include "third_party/WebKit/WebKit/chromium/public/WebPageSerializerClient.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebNode.h"
#include "third_party/WebKit/WebKit/chromium/public/WebTextDirection.h"
#include "third_party/WebKit/WebKit/chromium/public/WebViewClient.h"
#include "third_party/WebKit/WebKit/chromium/public/WebNavigationType.h"
@@ -140,7 +141,6 @@
class WebMediaPlayer;
class WebMediaPlayerClient;
class WebMouseEvent;
-class WebNode;
class WebPlugin;
class WebSpeechInputController;
class WebSpeechInputListener;
@@ -877,6 +877,7 @@
const PP_Flash_NetAddress& local_addr,
const PP_Flash_NetAddress& remote_addr);
#endif
+ void OnContextMenuClosed();
void OnCopy();
void OnCopyImageAt(int x, int y);
#if defined(OS_MACOSX)
@@ -955,6 +956,7 @@
void OnPrintingDone(int document_cookie, bool success);
void OnPrintPages();
void OnPrintPreview();
+ void OnPrintNodeUnderContextMenu();
void OnRedo();
void OnReloadFrame();
void OnReplace(const string16& text);
@@ -1138,8 +1140,12 @@
const WebKit::WebURLError& error,
bool replace);
+ // Prints |frame|.
void Print(WebKit::WebFrame* frame, bool script_initiated, bool is_preview);
+ // Returns the PrintWebViewHelper for this class, creating if necessary.
+ PrintWebViewHelper* GetPrintWebViewHelper();
+
// Returns whether the page associated with |document| is a candidate for
// translation. Some pages can explictly specify (via a meta-tag) that they
// should not be translated.
@@ -1523,6 +1529,9 @@
// The custom menu event listener, if any.
CustomMenuListener* custom_menu_listener_;
+ // The node that the context menu was pressed over.
+ WebKit::WebNode context_menu_node_;
+
// Reports load progress to the browser.
scoped_ptr<LoadProgressTracker> load_progress_tracker_;
« 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