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_NATIVE_APP_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
7 | 7 |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
| 10 #include "apps/native_app_window.h" |
10 #include "apps/shell_window.h" | 11 #include "apps/shell_window.h" |
11 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
12 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
13 #include "chrome/browser/ui/extensions/native_app_window.h" | |
14 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" | 14 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" |
15 #include "third_party/skia/include/core/SkRegion.h" | 15 #include "third_party/skia/include/core/SkRegion.h" |
16 #include "ui/base/gtk/gtk_signal.h" | 16 #include "ui/base/gtk/gtk_signal.h" |
17 #include "ui/base/x/active_window_watcher_x_observer.h" | 17 #include "ui/base/x/active_window_watcher_x_observer.h" |
18 #include "ui/base/x/x11_atom_cache.h" | 18 #include "ui/base/x/x11_atom_cache.h" |
19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
20 | 20 |
21 class ExtensionKeybindingRegistryGtk; | 21 class ExtensionKeybindingRegistryGtk; |
22 class Profile; | 22 class Profile; |
23 | 23 |
24 namespace extensions { | 24 namespace extensions { |
25 class Extension; | 25 class Extension; |
26 } | 26 } |
27 | 27 |
28 class NativeAppWindowGtk : public NativeAppWindow, | 28 class NativeAppWindowGtk : public apps::NativeAppWindow, |
29 public ExtensionViewGtk::Container, | 29 public ExtensionViewGtk::Container, |
30 public ui::ActiveWindowWatcherXObserver { | 30 public ui::ActiveWindowWatcherXObserver { |
31 public: | 31 public: |
32 NativeAppWindowGtk(apps::ShellWindow* shell_window, | 32 NativeAppWindowGtk(apps::ShellWindow* shell_window, |
33 const apps::ShellWindow::CreateParams& params); | 33 const apps::ShellWindow::CreateParams& params); |
34 | 34 |
35 // ui::BaseWindow implementation. | 35 // ui::BaseWindow implementation. |
36 virtual bool IsActive() const OVERRIDE; | 36 virtual bool IsActive() const OVERRIDE; |
37 virtual bool IsMaximized() const OVERRIDE; | 37 virtual bool IsMaximized() const OVERRIDE; |
38 virtual bool IsMinimized() const OVERRIDE; | 38 virtual bool IsMinimized() const OVERRIDE; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; | 160 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; |
161 | 161 |
162 ui::X11AtomCache atom_cache_; | 162 ui::X11AtomCache atom_cache_; |
163 | 163 |
164 // True if we listen for the XEvent. | 164 // True if we listen for the XEvent. |
165 bool is_x_event_listened_; | 165 bool is_x_event_listened_; |
166 | 166 |
167 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); | 167 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); |
168 }; | 168 }; |
169 | 169 |
170 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ | 170 #endif // CHROME_BROWSER_UI_GTK_APPS_NATIVE_APP_WINDOW_GTK_H_ |
OLD | NEW |