Chromium Code Reviews

Side by Side Diff: chrome/browser/gtk/browser_window_gtk.h

Issue 173344: Improves key event handing code of BrowserWindowGtk.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 38 matching lines...)
49 class BrowserWindowGtk : public BrowserWindow, 49 class BrowserWindowGtk : public BrowserWindow,
50 public NotificationObserver, 50 public NotificationObserver,
51 public TabStripModelObserver { 51 public TabStripModelObserver {
52 public: 52 public:
53 explicit BrowserWindowGtk(Browser* browser); 53 explicit BrowserWindowGtk(Browser* browser);
54 virtual ~BrowserWindowGtk(); 54 virtual ~BrowserWindowGtk();
55 55
56 Browser* browser() const { return browser_.get(); } 56 Browser* browser() const { return browser_.get(); }
57 57
58 // Process a keyboard input and try to find an accelerator for it. 58 // Process a keyboard input and try to find an accelerator for it.
59 void HandleAccelerator(guint keyval, GdkModifierType modifier); 59 void HandleAccelerator(GdkEventKey* event);
60 60
61 // Overridden from BrowserWindow 61 // Overridden from BrowserWindow
62 virtual void Show(); 62 virtual void Show();
63 virtual void SetBounds(const gfx::Rect& bounds); 63 virtual void SetBounds(const gfx::Rect& bounds);
64 virtual void Close(); 64 virtual void Close();
65 virtual void Activate(); 65 virtual void Activate();
66 virtual bool IsActive() const; 66 virtual bool IsActive() const;
67 virtual void FlashFrame(); 67 virtual void FlashFrame();
68 virtual gfx::NativeWindow GetNativeHandle(); 68 virtual gfx::NativeWindow GetNativeHandle();
69 virtual BrowserWindowTesting* GetBrowserWindowTesting(); 69 virtual BrowserWindowTesting* GetBrowserWindowTesting();
(...skipping 303 matching lines...)
373 // first time. This is to work around a compiz bug. 373 // first time. This is to work around a compiz bug.
374 bool maximize_after_show_; 374 bool maximize_after_show_;
375 375
376 // The accelerator group used to handle accelerators, owned by this object. 376 // The accelerator group used to handle accelerators, owned by this object.
377 GtkAccelGroup* accel_group_; 377 GtkAccelGroup* accel_group_;
378 378
379 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); 379 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk);
380 }; 380 };
381 381
382 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ 382 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/gtk/browser_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine