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

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

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 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 "apps/ui/views/native_app_window_views.h"
8 #include "chrome/browser/shell_integration.h" 9 #include "chrome/browser/shell_integration.h"
9 #include "chrome/browser/ui/views/apps/native_app_window_views.h"
10 10
11 // Windows-specific parts of the views-backed native shell window implementation 11 // Windows-specific parts of the views-backed native shell window implementation
12 // for packaged apps. 12 // for packaged apps.
13 class NativeAppWindowViewsWin : public NativeAppWindowViews { 13 class ChromeNativeAppWindowViewsWin : public ChromeNativeAppWindowViews {
14 public: 14 public:
15 NativeAppWindowViewsWin(); 15 ChromeNativeAppWindowViewsWin();
16 16
17 private: 17 private:
18 void ActivateParentDesktopIfNecessary(); 18 void ActivateParentDesktopIfNecessary();
19 19
20 void OnShortcutInfoLoaded( 20 void OnShortcutInfoLoaded(
21 const ShellIntegration::ShortcutInfo& shortcut_info); 21 const ShellIntegration::ShortcutInfo& shortcut_info);
22 22
23 HWND GetNativeAppWindowHWND() const;
24
25 // Overridden from NativeAppWindowViews: 23 // Overridden from NativeAppWindowViews:
26 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params, 24 virtual void OnBeforeWidgetInit(views::Widget::InitParams* init_params,
27 views::Widget* widget) OVERRIDE; 25 views::Widget* widget) OVERRIDE;
28 virtual void InitializeDefaultWindow( 26 virtual void InitializeDefaultWindow(
29 const apps::AppWindow::CreateParams& create_params) OVERRIDE; 27 const apps::AppWindow::CreateParams& create_params) OVERRIDE;
30 28
31 // Overridden from ui::BaseWindow: 29 // Overridden from ui::BaseWindow:
32 virtual void Show() OVERRIDE; 30 virtual void Show() OVERRIDE;
33 virtual void Activate() OVERRIDE; 31 virtual void Activate() OVERRIDE;
34 32
35 base::WeakPtrFactory<NativeAppWindowViewsWin> weak_ptr_factory_; 33 base::WeakPtrFactory<ChromeNativeAppWindowViewsWin> weak_ptr_factory_;
36 34
37 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViewsWin); 35 DISALLOW_COPY_AND_ASSIGN(ChromeNativeAppWindowViewsWin);
38 }; 36 };
39 37
40 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_ 38 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/native_app_window_views.cc ('k') | chrome/browser/ui/views/apps/native_app_window_views_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698