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

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

Issue 1581473002: Remove base/win/metro.{cc|h} and some associated code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: installer 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
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
11 namespace web_app { 11 namespace web_app {
12 struct ShortcutInfo; 12 struct ShortcutInfo;
13 } 13 }
14 14
15 class GlassAppWindowFrameViewWin; 15 class GlassAppWindowFrameViewWin;
16 16
17 // Windows-specific parts of the views-backed native shell window implementation 17 // Windows-specific parts of the views-backed native shell window implementation
18 // for packaged apps. 18 // for packaged apps.
19 class ChromeNativeAppWindowViewsWin : public ChromeNativeAppWindowViewsAura { 19 class ChromeNativeAppWindowViewsWin : public ChromeNativeAppWindowViewsAura {
20 public: 20 public:
21 ChromeNativeAppWindowViewsWin(); 21 ChromeNativeAppWindowViewsWin();
22 ~ChromeNativeAppWindowViewsWin() override; 22 ~ChromeNativeAppWindowViewsWin() override;
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 ActivateParentDesktopIfNecessary();
30
31 void OnShortcutInfoLoaded( 29 void OnShortcutInfoLoaded(
32 const web_app::ShortcutInfo& shortcut_info); 30 const web_app::ShortcutInfo& shortcut_info);
33 31
34 HWND GetNativeAppWindowHWND() const; 32 HWND GetNativeAppWindowHWND() const;
35 bool IsRunningInAsh(); 33 bool IsRunningInAsh();
36 void EnsureCaptionStyleSet(); 34 void EnsureCaptionStyleSet();
37 35
38 // Overridden from ChromeNativeAppWindowViews: 36 // Overridden from ChromeNativeAppWindowViews:
39 void OnBeforeWidgetInit( 37 void OnBeforeWidgetInit(
40 const extensions::AppWindow::CreateParams& create_params, 38 const extensions::AppWindow::CreateParams& create_params,
(...skipping 22 matching lines...) Expand all
63 61
64 // Whether the InitParams indicated that this window should be translucent. 62 // Whether the InitParams indicated that this window should be translucent.
65 bool is_translucent_; 63 bool is_translucent_;
66 64
67 base::WeakPtrFactory<ChromeNativeAppWindowViewsWin> weak_ptr_factory_; 65 base::WeakPtrFactory<ChromeNativeAppWindowViewsWin> weak_ptr_factory_;
68 66
69 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin); 67 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin);
70 }; 68 };
71 69
72 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ 70 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698