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

Unified Diff: chrome/browser/renderer_context_menu/render_view_context_menu.h

Issue 2219173002: Re-land "Disable Print in the context menu when a modal dialog is shown" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create the GetBrowser() helper method Created 4 years, 4 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 | « no previous file | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_context_menu/render_view_context_menu.h
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu.h b/chrome/browser/renderer_context_menu/render_view_context_menu.h
index c4c63cb4d7df2b48421ac914e75fc46bdd7e5978..8d213fcd28dbcfa1114c7fe14564d1a44df8eb7f 100644
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.h
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.h
@@ -14,6 +14,7 @@
#include "base/observer_list.h"
#include "base/strings/string16.h"
#include "chrome/browser/custom_handlers/protocol_handler_registry.h"
+#include "chrome/browser/ui/browser.h"
#include "components/renderer_context_menu/context_menu_content_type.h"
#include "components/renderer_context_menu/render_view_context_menu_base.h"
#include "components/renderer_context_menu/render_view_context_menu_observer.h"
@@ -164,6 +165,7 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
bool IsSavePageEnabled() const;
bool IsPasteEnabled() const;
bool IsPasteAndMatchStyleEnabled() const;
+ bool IsPrintPreviewEnabled() const;
bool IsRouteMediaEnabled() const;
// Command execution functions.
@@ -201,6 +203,8 @@ class RenderViewContextMenu : public RenderViewContextMenuBase {
void PluginActionAt(const gfx::Point& location,
const blink::WebPluginAction& action);
+ Browser* GetBrowser() const;
+
// Returns a list of registered ProtocolHandlers that can handle the clicked
// on URL.
ProtocolHandlerRegistry::ProtocolHandlerList GetHandlersForLinkUrl();
« no previous file with comments | « no previous file | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698