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

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

Issue 10736037: Enable keyboard shortcuts and some menu commands for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« chrome/browser/ui/panels/panel.cc ('K') | « chrome/browser/ui/panels/panel_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_host.cc
diff --git a/chrome/browser/ui/panels/panel_host.cc b/chrome/browser/ui/panels/panel_host.cc
index c8e998c5552d4c9290cec2b51f226da15086da4a..d96dfee2beab8aa7c2202a8f54d09a8c7a9b2d19 100644
--- a/chrome/browser/ui/panels/panel_host.cc
+++ b/chrome/browser/ui/panels/panel_host.cc
@@ -96,10 +96,23 @@ bool PanelHost::IsPopupOrPanel(const content::WebContents* source) const {
return true;
}
+void PanelHost::ContentsZoomChange(bool zoom_in) {
+ panel_->ContentsZoomChange(zoom_in);
+}
+
bool PanelHost::IsApplication() const {
return true;
}
+bool PanelHost::HandleContextMenu(const content::ContextMenuParams& params) {
+ return true; // Disallow context menu.
+}
+
+void PanelHost::HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) {
+ return panel_->HandleKeyboardEvent(event);
+}
+
void PanelHost::ResizeDueToAutoResize(content::WebContents* web_contents,
const gfx::Size& new_size) {
panel_->OnContentsAutoResized(new_size);
« chrome/browser/ui/panels/panel.cc ('K') | « chrome/browser/ui/panels/panel_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698