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

Unified Diff: chrome/browser/gtk/browser_window_gtk.h

Issue 42190: Linux accelerators cleanup (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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/gtk/browser_window_gtk.h
===================================================================
--- chrome/browser/gtk/browser_window_gtk.h (revision 11738)
+++ chrome/browser/gtk/browser_window_gtk.h (working copy)
@@ -37,7 +37,7 @@
virtual void Activate();
virtual bool IsActive() const;
virtual void FlashFrame();
- virtual void* GetNativeHandle();
+ virtual gfx::NativeWindow GetNativeHandle();
virtual BrowserWindowTesting* GetBrowserWindowTesting();
virtual StatusBubble* GetStatusBubble();
virtual void SelectedTabToolbarSizeChanged(bool is_animating);
@@ -90,6 +90,10 @@
scoped_ptr<Browser> browser_;
private:
+ // Connect accelerators that aren't connected to menu items (like ctrl-o,
+ // ctrl-l, etc.).
+ void ConnectAccelerators();
+
// Change whether we're showing the custom blue frame.
// Must be called once at startup.
// Triggers relayout of the content.
@@ -103,6 +107,13 @@
static gboolean OnWindowDestroyed(GtkWidget* window,
BrowserWindowGtk* browser_win);
+
+ static gboolean OnAccelerator(GtkAccelGroup* accel_group,
+ GObject* acceleratable,
+ guint keyval,
+ GdkModifierType modifier,
+ BrowserWindowGtk* browser_window);
+
gfx::Rect bounds_;
GdkWindowState state_;

Powered by Google App Engine
This is Rietveld 408576698