OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" | 9 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" |
10 #include "ui/views/context_menu_controller.h" | 10 #include "ui/views/context_menu_controller.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // Aura-specific parts of ChromeNativeAppWindowViews. This is used on Linux, | 24 // Aura-specific parts of ChromeNativeAppWindowViews. This is used on Linux, |
25 // CrOS, and Windows and implies USE_ASH. | 25 // CrOS, and Windows and implies USE_ASH. |
26 class ChromeNativeAppWindowViewsAura : public ChromeNativeAppWindowViews, | 26 class ChromeNativeAppWindowViewsAura : public ChromeNativeAppWindowViews, |
27 public views::ContextMenuController { | 27 public views::ContextMenuController { |
28 public: | 28 public: |
29 ChromeNativeAppWindowViewsAura(); | 29 ChromeNativeAppWindowViewsAura(); |
30 ~ChromeNativeAppWindowViewsAura() override; | 30 ~ChromeNativeAppWindowViewsAura() override; |
31 | 31 |
32 protected: | 32 protected: |
| 33 // NativeAppWindowViews implementation. |
| 34 void InitializeWindow( |
| 35 extensions::AppWindow* app_window, |
| 36 const extensions::AppWindow::CreateParams& create_params) override; |
| 37 |
33 // ChromeNativeAppWindowViews implementation. | 38 // ChromeNativeAppWindowViews implementation. |
34 void OnBeforeWidgetInit( | 39 void OnBeforeWidgetInit( |
35 const extensions::AppWindow::CreateParams& create_params, | 40 const extensions::AppWindow::CreateParams& create_params, |
36 views::Widget::InitParams* init_params, | 41 views::Widget::InitParams* init_params, |
37 views::Widget* widget) override; | 42 views::Widget* widget) override; |
38 void OnBeforePanelWidgetInit(views::Widget::InitParams* init_params, | 43 void OnBeforePanelWidgetInit(bool use_default_bounds, |
| 44 views::Widget::InitParams* init_params, |
39 views::Widget* widget) override; | 45 views::Widget* widget) override; |
40 apps::AppWindowFrameView* CreateNonStandardAppFrame() override; | 46 apps::AppWindowFrameView* CreateNonStandardAppFrame() override; |
41 | 47 |
42 // ui::BaseWindow implementation. | 48 // ui::BaseWindow implementation. |
43 gfx::Rect GetRestoredBounds() const override; | 49 gfx::Rect GetRestoredBounds() const override; |
44 ui::WindowShowState GetRestoredState() const override; | 50 ui::WindowShowState GetRestoredState() const override; |
45 bool IsAlwaysOnTop() const override; | 51 bool IsAlwaysOnTop() const override; |
46 | 52 |
47 // views::ContextMenuController implementation. | 53 // views::ContextMenuController implementation. |
48 void ShowContextMenuForView(views::View* source, | 54 void ShowContextMenuForView(views::View* source, |
(...skipping 21 matching lines...) Expand all Loading... |
70 | 76 |
71 #if defined(OS_CHROMEOS) | 77 #if defined(OS_CHROMEOS) |
72 // Used to show the system menu. | 78 // Used to show the system menu. |
73 scoped_ptr<views::MenuRunner> menu_runner_; | 79 scoped_ptr<views::MenuRunner> menu_runner_; |
74 #endif | 80 #endif |
75 | 81 |
76 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsAura); | 82 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsAura); |
77 }; | 83 }; |
78 | 84 |
79 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ | 85 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_AURA_H_ |
OLD | NEW |