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

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: 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..c77e66a374f1437806370de12394bbf9f9b5b880 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,12 @@ class Panel : public BaseWindow,
// user-resizable, it should not be a problem.
void IncreaseMaxSize(const gfx::Size& desired_panel_size);
+ // Changes the zoom level of the contents.
+ void ContentsZoomChange(bool zoom_in);
+
+ // 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