OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 5 #ifndef COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
6 #define APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 6 #define COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
7 | 7 |
8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "extensions/browser/app_window/app_window.h" | 10 #include "extensions/browser/app_window/app_window.h" |
11 #include "extensions/browser/app_window/native_app_window.h" | 11 #include "extensions/browser/app_window/native_app_window.h" |
12 #include "extensions/browser/app_window/size_constraints.h" | 12 #include "extensions/browser/app_window/size_constraints.h" |
13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
14 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 14 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
15 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
16 #include "ui/views/widget/widget_delegate.h" | 16 #include "ui/views/widget/widget_delegate.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
30 | 30 |
31 namespace ui { | 31 namespace ui { |
32 class MenuModel; | 32 class MenuModel; |
33 } | 33 } |
34 | 34 |
35 namespace views { | 35 namespace views { |
36 class MenuRunner; | 36 class MenuRunner; |
37 class WebView; | 37 class WebView; |
38 } | 38 } |
39 | 39 |
40 namespace apps { | 40 namespace apps { |
James Cook
2014/09/17 22:48:24
Were you going to change this to namespace extensi
| |
41 | 41 |
42 class AppWindowFrameView; | 42 class AppWindowFrameView; |
43 | 43 |
44 // A NativeAppWindow backed by a views::Widget. This class may be used alone | 44 // A NativeAppWindow backed by a views::Widget. This class may be used alone |
45 // as a stub or subclassed (for example, ChromeNativeAppWindowViews). | 45 // as a stub or subclassed (for example, ChromeNativeAppWindowViews). |
46 class NativeAppWindowViews : public extensions::NativeAppWindow, | 46 class NativeAppWindowViews : public extensions::NativeAppWindow, |
47 public content::WebContentsObserver, | 47 public content::WebContentsObserver, |
48 public views::WidgetDelegateView, | 48 public views::WidgetDelegateView, |
49 public views::WidgetObserver { | 49 public views::WidgetObserver { |
50 public: | 50 public: |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
188 | 188 |
189 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; | 189 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; |
190 | 190 |
191 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; | 191 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; |
192 | 192 |
193 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); | 193 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); |
194 }; | 194 }; |
195 | 195 |
196 } // namespace apps | 196 } // namespace apps |
197 | 197 |
198 #endif // APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ | 198 #endif // COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ |
OLD | NEW |