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

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: Zoom moved to chrome_page_zoom 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
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 4ed270b58bdbf51194f6f367a848262aeeb47013..52be8f1261e9aef6f34e391f9c71bcde4a92c4c0 100644
--- a/chrome/browser/ui/panels/panel_host.h
+++ b/chrome/browser/ui/panels/panel_host.h
@@ -11,6 +11,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;
@@ -53,7 +54,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;
@@ -68,6 +74,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();

Powered by Google App Engine
This is Rietveld 408576698