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 CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h" | 9 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views_aura.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 GlassAppWindowFrameViewWin* glass_frame_view() { | 24 GlassAppWindowFrameViewWin* glass_frame_view() { |
25 return glass_frame_view_; | 25 return glass_frame_view_; |
26 } | 26 } |
27 | 27 |
28 private: | 28 private: |
29 void OnShortcutInfoLoaded( | 29 void OnShortcutInfoLoaded( |
30 const web_app::ShortcutInfo& shortcut_info); | 30 const web_app::ShortcutInfo& shortcut_info); |
31 | 31 |
32 HWND GetNativeAppWindowHWND() const; | 32 HWND GetNativeAppWindowHWND() const; |
33 bool IsRunningInAsh(); | |
34 void EnsureCaptionStyleSet(); | 33 void EnsureCaptionStyleSet(); |
35 | 34 |
36 // Overridden from ChromeNativeAppWindowViews: | 35 // Overridden from ChromeNativeAppWindowViews: |
37 void OnBeforeWidgetInit( | 36 void OnBeforeWidgetInit( |
38 const extensions::AppWindow::CreateParams& create_params, | 37 const extensions::AppWindow::CreateParams& create_params, |
39 views::Widget::InitParams* init_params, | 38 views::Widget::InitParams* init_params, |
40 views::Widget* widget) override; | 39 views::Widget* widget) override; |
41 void InitializeDefaultWindow( | 40 void InitializeDefaultWindow( |
42 const extensions::AppWindow::CreateParams& create_params) override; | 41 const extensions::AppWindow::CreateParams& create_params) override; |
43 views::NonClientFrameView* CreateStandardDesktopAppFrame() override; | 42 views::NonClientFrameView* CreateStandardDesktopAppFrame() override; |
44 | 43 |
45 // Overridden from views::WidgetDelegate: | 44 // Overridden from views::WidgetDelegate: |
46 bool CanMinimize() const override; | 45 bool CanMinimize() const override; |
47 | 46 |
48 // Populated if there is a glass frame, which provides special information | 47 // Populated if there is a glass frame, which provides special information |
49 // to the native widget implementation. This will be NULL if there is no | 48 // to the native widget implementation. This will be NULL if there is no |
50 // glass frame. Note, this can change from NULL to non-NULL and back again | 49 // glass frame. Note, this can change from NULL to non-NULL and back again |
51 // throughout the life of a window, e.g. if DWM is enabled and disabled. | 50 // throughout the life of a window, e.g. if DWM is enabled and disabled. |
52 GlassAppWindowFrameViewWin* glass_frame_view_; | 51 GlassAppWindowFrameViewWin* glass_frame_view_; |
53 | 52 |
54 // The Windows Application User Model ID identifying the app. | 53 // The Windows Application User Model ID identifying the app. |
55 // Not set for windows running inside Ash. | |
56 base::string16 app_model_id_; | 54 base::string16 app_model_id_; |
57 | 55 |
58 // Whether the InitParams indicated that this window should be translucent. | 56 // Whether the InitParams indicated that this window should be translucent. |
59 bool is_translucent_; | 57 bool is_translucent_; |
60 | 58 |
61 base::WeakPtrFactory<ChromeNativeAppWindowViewsWin> weak_ptr_factory_; | 59 base::WeakPtrFactory<ChromeNativeAppWindowViewsWin> weak_ptr_factory_; |
62 | 60 |
63 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin); | 61 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin); |
64 }; | 62 }; |
65 | 63 |
66 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 64 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
OLD | NEW |