OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
7 | 7 |
8 #include "chrome/browser/shell_integration.h" | |
8 #include "chrome/browser/ui/views/apps/native_app_window_views.h" | 9 #include "chrome/browser/ui/views/apps/native_app_window_views.h" |
9 | 10 |
11 class JumpListUpdater; | |
12 | |
10 // Windows-specific parts of the views-backed native shell window implementation | 13 // Windows-specific parts of the views-backed native shell window implementation |
11 // for packaged apps. | 14 // for packaged apps. |
12 class NativeAppWindowViewsWin : public NativeAppWindowViews { | 15 class NativeAppWindowViewsWin : public NativeAppWindowViews { |
13 public: | 16 public: |
14 NativeAppWindowViewsWin(); | 17 NativeAppWindowViewsWin(); |
15 | 18 |
16 private: | 19 private: |
17 void ActivateParentDesktopIfNecessary(); | 20 void ActivateParentDesktopIfNecessary(); |
18 | 21 |
19 // Overridden from NativeAppWindowViews: | 22 // Overridden from NativeAppWindowViews: |
20 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, | 23 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, |
21 views::Widget* widget) OVERRIDE; | 24 views::Widget* widget) OVERRIDE; |
25 virtual void InitializeDefaultWindow( | |
26 const apps::ShellWindow::CreateParams& create_params) OVERRIDE; | |
22 | 27 |
23 // Overridden from ui::BaseWindow: | 28 // Overridden from ui::BaseWindow: |
24 virtual void Show() OVERRIDE; | 29 virtual void Show() OVERRIDE; |
25 virtual void Activate() OVERRIDE; | 30 virtual void Activate() OVERRIDE; |
26 | 31 |
32 // Overridden from apps::NativeAppWindow: | |
33 virtual void UpdateAppMenu() OVERRIDE; | |
34 | |
35 void OnShortcutInfoLoaded( | |
tapted
2014/02/12 10:16:28
nit: move non-overrides up below ActivateParentDes
| |
36 const ShellIntegration::ShortcutInfo& shortcut_info); | |
37 | |
38 HWND GetNativeAppWindowHWND() const; | |
39 | |
40 base::WeakPtrFactory<NativeAppWindowViewsWin> weak_ptr_factory_; | |
41 | |
42 scoped_ptr<JumpListUpdater> jumplist_updater_; | |
tapted
2014/02/12 10:16:28
I don't think this is really needed - it doesn't h
| |
43 | |
27 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViewsWin); | 44 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViewsWin); |
28 }; | 45 }; |
29 | 46 |
30 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ | 47 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ |
OLD | NEW |