OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "chrome/browser/ui/extensions/native_shell_window.h" | 10 #include "chrome/browser/ui/extensions/native_shell_window.h" |
11 #include "chrome/browser/ui/extensions/shell_window.h" | 11 #include "chrome/browser/ui/extensions/shell_window.h" |
12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
13 #include "third_party/skia/include/core/SkRegion.h" | 13 #include "third_party/skia/include/core/SkRegion.h" |
14 #include "ui/base/gtk/gtk_signal.h" | 14 #include "ui/base/gtk/gtk_signal.h" |
15 #include "ui/base/x/active_window_watcher_x_observer.h" | 15 #include "ui/base/x/active_window_watcher_x_observer.h" |
16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
17 | 17 |
| 18 class ExtensionKeybindingRegistryGtk; |
18 class Profile; | 19 class Profile; |
19 | 20 |
20 namespace extensions { | 21 namespace extensions { |
21 class Extension; | 22 class Extension; |
22 struct DraggableRegion; | 23 struct DraggableRegion; |
23 } | 24 } |
24 | 25 |
25 class ShellWindowGtk : public NativeShellWindow, | 26 class ShellWindowGtk : public NativeShellWindow, |
26 public ExtensionViewGtk::Container, | 27 public ExtensionViewGtk::Container, |
27 public ui::ActiveWindowWatcherXObserver { | 28 public ui::ActiveWindowWatcherXObserver { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // and double clicked to maximize. | 105 // and double clicked to maximize. |
105 SkRegion draggable_region_; | 106 SkRegion draggable_region_; |
106 | 107 |
107 // If true, don't call gdk_window_raise() when we get a click in the title | 108 // If true, don't call gdk_window_raise() when we get a click in the title |
108 // bar or window border. This is to work around a compiz bug. | 109 // bar or window border. This is to work around a compiz bug. |
109 bool suppress_window_raise_; | 110 bool suppress_window_raise_; |
110 | 111 |
111 // True if the window shows without frame. | 112 // True if the window shows without frame. |
112 bool frameless_; | 113 bool frameless_; |
113 | 114 |
| 115 // The Extension Keybinding Registry responsible for registering listeners for |
| 116 // accelerators that are sent to the window, that are destined to be turned |
| 117 // into events and sent to the extension. |
| 118 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; |
| 119 |
114 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); | 120 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); |
115 }; | 121 }; |
116 | 122 |
117 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ | 123 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ |
OLD | NEW |