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

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

Issue 2535713004: extensions: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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 EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
13 #include "extensions/browser/app_window/app_window.h" 13 #include "extensions/browser/app_window/app_window.h"
14 #include "extensions/browser/app_window/native_app_window.h" 14 #include "extensions/browser/app_window/native_app_window.h"
15 #include "extensions/browser/app_window/size_constraints.h" 15 #include "extensions/browser/app_window/size_constraints.h"
16 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
17 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" 17 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 #include "ui/views/widget/widget_delegate.h" 19 #include "ui/views/widget/widget_delegate.h"
20 #include "ui/views/widget/widget_observer.h" 20 #include "ui/views/widget/widget_observer.h"
21 21
22 class SkRegion; 22 class SkRegion;
23 23
24 namespace content { 24 namespace content {
25 class BrowserContext;
26 class RenderViewHost; 25 class RenderViewHost;
27 class WebContents;
28 }
29
30 namespace extensions {
31 class Extension;
32 }
33
34 namespace ui {
35 class MenuModel;
36 } 26 }
37 27
38 namespace views { 28 namespace views {
39 class MenuRunner;
40 class WebView; 29 class WebView;
41 } 30 }
42 31
43 namespace native_app_window { 32 namespace native_app_window {
44 33
45 // A NativeAppWindow backed by a views::Widget. This class may be used alone 34 // A NativeAppWindow backed by a views::Widget. This class may be used alone
46 // as a stub or subclassed (for example, ChromeNativeAppWindowViews). 35 // as a stub or subclassed (for example, ChromeNativeAppWindowViews).
47 class NativeAppWindowViews : public extensions::NativeAppWindow, 36 class NativeAppWindowViews : public extensions::NativeAppWindow,
48 public content::WebContentsObserver, 37 public content::WebContentsObserver,
49 public views::WidgetDelegateView, 38 public views::WidgetDelegateView,
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 172 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
184 173
185 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_; 174 base::ObserverList<web_modal::ModalDialogHostObserver> observer_list_;
186 175
187 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 176 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
188 }; 177 };
189 178
190 } // namespace native_app_window 179 } // namespace native_app_window
191 180
192 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_ 181 #endif // EXTENSIONS_COMPONENTS_NATIVE_APP_WINDOW_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698