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

Side by Side Diff: components/native_app_window/native_app_window_views.h

Issue 576863003: Componentize NativeAppWindowViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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
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 native_app_window {
41
42 class AppWindowFrameView;
43 41
44 // A NativeAppWindow backed by a views::Widget. This class may be used alone 42 // A NativeAppWindow backed by a views::Widget. This class may be used alone
45 // as a stub or subclassed (for example, ChromeNativeAppWindowViews). 43 // as a stub or subclassed (for example, ChromeNativeAppWindowViews).
46 class NativeAppWindowViews : public extensions::NativeAppWindow, 44 class NativeAppWindowViews : public extensions::NativeAppWindow,
47 public content::WebContentsObserver, 45 public content::WebContentsObserver,
48 public views::WidgetDelegateView, 46 public views::WidgetDelegateView,
49 public views::WidgetObserver { 47 public views::WidgetObserver {
50 public: 48 public:
51 NativeAppWindowViews(); 49 NativeAppWindowViews();
52 virtual ~NativeAppWindowViews(); 50 virtual ~NativeAppWindowViews();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 bool resizable_; 184 bool resizable_;
187 extensions::SizeConstraints size_constraints_; 185 extensions::SizeConstraints size_constraints_;
188 186
189 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 187 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
190 188
191 ObserverList<web_modal::ModalDialogHostObserver> observer_list_; 189 ObserverList<web_modal::ModalDialogHostObserver> observer_list_;
192 190
193 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 191 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
194 }; 192 };
195 193
196 } // namespace apps 194 } // namespace extensions
197 195
198 #endif // APPS_UI_VIEWS_NATIVE_APP_WINDOW_VIEWS_H_ 196 #endif // COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « components/native_app_window/DEPS ('k') | components/native_app_window/native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698