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

Side by Side Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views.h

Issue 181503009: Rename BaseNativeAppWindowViews and NativeAppWindowViews (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase (native_app_window) Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "apps/ui/views/base_native_app_window_views.h" 8 #include "apps/ui/views/native_app_window_views.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/context_menu_controller.h" 10 #include "ui/views/context_menu_controller.h"
11 11
12 #if defined(USE_ASH) 12 #if defined(USE_ASH)
13 namespace ash { 13 namespace ash {
14 class ImmersiveFullscreenController; 14 class ImmersiveFullscreenController;
15 } 15 }
16 #endif 16 #endif
17 17
18 class ExtensionKeybindingRegistryViews; 18 class ExtensionKeybindingRegistryViews;
19 19
20 namespace views { 20 namespace views {
21 class MenuRunner; 21 class MenuRunner;
22 } 22 }
23 23
24 class NativeAppWindowViews : public BaseNativeAppWindowViews, 24 class ChromeNativeAppWindowViews : public apps::NativeAppWindowViews,
25 public views::ContextMenuController { 25 public views::ContextMenuController {
26 public: 26 public:
27 NativeAppWindowViews(); 27 ChromeNativeAppWindowViews();
28 virtual ~NativeAppWindowViews(); 28 virtual ~ChromeNativeAppWindowViews();
29 29
30 SkRegion* shape() { return shape_.get(); } 30 SkRegion* shape() { return shape_.get(); }
31 31
32 protected: 32 protected:
33 // Called before views::Widget::Init() to allow subclasses to customize 33 // Called before views::Widget::Init() to allow subclasses to customize
34 // the InitParams that would be passed. 34 // the InitParams that would be passed.
35 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, 35 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params,
36 views::Widget* widget); 36 views::Widget* widget);
37 37
38 virtual void InitializeDefaultWindow( 38 virtual void InitializeDefaultWindow(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // NativeAppWindow implementation. 78 // NativeAppWindow implementation.
79 virtual void SetFullscreen(int fullscreen_types) OVERRIDE; 79 virtual void SetFullscreen(int fullscreen_types) OVERRIDE;
80 virtual bool IsFullscreenOrPending() const OVERRIDE; 80 virtual bool IsFullscreenOrPending() const OVERRIDE;
81 virtual bool IsDetached() const OVERRIDE; 81 virtual bool IsDetached() const OVERRIDE;
82 virtual void UpdateBadgeIcon() OVERRIDE; 82 virtual void UpdateBadgeIcon() OVERRIDE;
83 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE; 83 virtual void UpdateShape(scoped_ptr<SkRegion> region) OVERRIDE;
84 virtual bool HasFrameColor() const OVERRIDE; 84 virtual bool HasFrameColor() const OVERRIDE;
85 virtual SkColor FrameColor() const OVERRIDE; 85 virtual SkColor FrameColor() const OVERRIDE;
86 86
87 // BaseNativeAppWindowViews implementation. 87 // NativeAppWindowViews implementation.
88 virtual void InitializeWindow( 88 virtual void InitializeWindow(
89 apps::AppWindow* app_window, 89 apps::AppWindow* app_window,
90 const apps::AppWindow::CreateParams& create_params) OVERRIDE; 90 const apps::AppWindow::CreateParams& create_params) OVERRIDE;
91 91
92 // True if the window is fullscreen or fullscreen is pending. 92 // True if the window is fullscreen or fullscreen is pending.
93 bool is_fullscreen_; 93 bool is_fullscreen_;
94 94
95 // Custom shape of the window. If this is not set then the window has a 95 // Custom shape of the window. If this is not set then the window has a
96 // default shape, usually rectangular. 96 // default shape, usually rectangular.
97 scoped_ptr<SkRegion> shape_; 97 scoped_ptr<SkRegion> shape_;
(...skipping 10 matching lines...) Expand all
108 // immersive fullscreen, the window header (title bar and window controls) 108 // immersive fullscreen, the window header (title bar and window controls)
109 // slides onscreen as an overlay when the mouse is hovered at the top of the 109 // slides onscreen as an overlay when the mouse is hovered at the top of the
110 // screen. 110 // screen.
111 scoped_ptr<ash::ImmersiveFullscreenController> 111 scoped_ptr<ash::ImmersiveFullscreenController>
112 immersive_fullscreen_controller_; 112 immersive_fullscreen_controller_;
113 #endif // defined(USE_ASH) 113 #endif // defined(USE_ASH)
114 114
115 // Used to show the system menu. 115 // Used to show the system menu.
116 scoped_ptr<views::MenuRunner> menu_runner_; 116 scoped_ptr<views::MenuRunner> menu_runner_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 118 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViews);
119 }; 119 };
120 120
121 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 121 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698