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

Unified Diff: chrome/browser/ui/panels/panel_host.h

Issue 10736037: Enable keyboard shortcuts and some menu commands for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 5 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/browser/ui/panels/panel_cocoa.mm ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_host.h
diff --git a/chrome/browser/ui/panels/panel_host.h b/chrome/browser/ui/panels/panel_host.h
index e15d21e3b1f231951ea6f27609f2f494f9194def..4fab89688f7d60b2347d269a4b2a0db8d5fb79c1 100644
--- a/chrome/browser/ui/panels/panel_host.h
+++ b/chrome/browser/ui/panels/panel_host.h
@@ -10,6 +10,7 @@
#include "chrome/browser/extensions/extension_function_dispatcher.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
+#include "content/public/common/page_zoom.h"
class ExtensionWindowController;
class FaviconTabHelper;
@@ -52,7 +53,12 @@ class PanelHost : public content::WebContentsDelegate,
const gfx::Rect& pos) OVERRIDE;
virtual bool IsPopupOrPanel(
const content::WebContents* source) const OVERRIDE;
+ virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
virtual bool IsApplication() const OVERRIDE;
+ virtual bool HandleContextMenu(
+ const content::ContextMenuParams& params) OVERRIDE;
+ virtual void HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) OVERRIDE;
virtual void ResizeDueToAutoResize(content::WebContents* web_contents,
const gfx::Size& new_size) OVERRIDE;
@@ -67,6 +73,12 @@ class PanelHost : public content::WebContentsDelegate,
OVERRIDE;
virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE;
+ // Actions on web contents.
+ void Reload();
+ void ReloadIgnoringCache();
+ void StopLoading();
+ void Zoom(content::PageZoom zoom);
+
private:
// Helper to close panel via the message loop.
void ClosePanel();
« no previous file with comments | « chrome/browser/ui/panels/panel_cocoa.mm ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698