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

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

Issue 231673005: Move ShortcutInfo, ShortcutLocations from ShellIntegration to web_app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Windws Created 6 years, 8 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 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 "chrome/browser/shell_integration.h"
9 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h" 8 #include "chrome/browser/ui/views/apps/chrome_native_app_window_views.h"
9 #include "chrome/browser/web_applications/web_app.h"
calamity 2014/04/14 04:23:01 Should be able to just forward declare web_app::Sh
jackhou1 2014/04/14 05:49:19 Done.
10 10
11 class GlassAppWindowFrameViewWin; 11 class GlassAppWindowFrameViewWin;
12 12
13 // Windows-specific parts of the views-backed native shell window implementation 13 // Windows-specific parts of the views-backed native shell window implementation
14 // for packaged apps. 14 // for packaged apps.
15 class ChromeNativeAppWindowViewsWin : public ChromeNativeAppWindowViews { 15 class ChromeNativeAppWindowViewsWin : public ChromeNativeAppWindowViews {
16 public: 16 public:
17 ChromeNativeAppWindowViewsWin(); 17 ChromeNativeAppWindowViewsWin();
18 18
19 GlassAppWindowFrameViewWin* glass_frame_view() { 19 GlassAppWindowFrameViewWin* glass_frame_view() {
20 return glass_frame_view_; 20 return glass_frame_view_;
21 }; 21 };
22 22
23 private: 23 private:
24 void ActivateParentDesktopIfNecessary(); 24 void ActivateParentDesktopIfNecessary();
25 25
26 void OnShortcutInfoLoaded( 26 void OnShortcutInfoLoaded(
27 const ShellIntegration::ShortcutInfo& shortcut_info); 27 const web_app::ShortcutInfo& shortcut_info);
28 28
29 HWND GetNativeAppWindowHWND() const; 29 HWND GetNativeAppWindowHWND() const;
30 30
31 // Overridden from ChromeNativeAppWindowViews: 31 // Overridden from ChromeNativeAppWindowViews:
32 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, 32 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params,
33 views::Widget* widget) OVERRIDE; 33 views::Widget* widget) OVERRIDE;
34 virtual void InitializeDefaultWindow( 34 virtual void InitializeDefaultWindow(
35 const apps::AppWindow::CreateParams& create_params) OVERRIDE; 35 const apps::AppWindow::CreateParams& create_params) OVERRIDE;
36 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame() OVERRIDE; 36 virtual views::NonClientFrameView* CreateStandardDesktopAppFrame() OVERRIDE;
37 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame() OVERRIDE; 37 virtual apps::AppWindowFrameView* CreateNonStandardAppFrame() OVERRIDE;
(...skipping 13 matching lines...) Expand all
51 // throughout the life of a window, e.g. if DWM is enabled and disabled. 51 // throughout the life of a window, e.g. if DWM is enabled and disabled.
52 GlassAppWindowFrameViewWin* glass_frame_view_; 52 GlassAppWindowFrameViewWin* glass_frame_view_;
53 53
54 // The Windows Application User Model ID identifying the app. 54 // The Windows Application User Model ID identifying the app.
55 base::string16 app_model_id_; 55 base::string16 app_model_id_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin); 57 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin);
58 }; 58 };
59 59
60 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_ 60 #endif // CHROME_BROWSER_UI_VIEWS_APPS_CHROME_NATIVE_APP_WINDOW_VIEWS_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698