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

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

Issue 1588853002: Removal of ash related code from chrome_native_app_window_views_win (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/apps/chrome_native_app_window_views_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698