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

Unified Diff: chrome/browser/ui/panels/panel.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.h
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index d8709076aa1b9eae57103c3ab55c69705eefba54..8684fb099bb3eec6dcaaef0c74474ec157d2c811 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -32,6 +32,7 @@ class SkBitmap;
namespace content {
class WebContents;
+struct NativeWebKeyboardEvent;
}
// A platform independent implementation of BaseWindow for Panels.
@@ -245,6 +246,9 @@ class Panel : public BaseWindow,
// user-resizable, it should not be a problem.
void IncreaseMaxSize(const gfx::Size& desired_panel_size);
+ // Handles keyboard events coming back from the renderer.
+ void HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event);
+
// Whether the panel window is always on top.
void SetAlwaysOnTop(bool on_top);
bool always_on_top() const { return always_on_top_; }

Powered by Google App Engine
This is Rietveld 408576698