OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_DESKTOP_DESKTOP_WINDOW_H_ | 5 #ifndef VIEWS_DESKTOP_DESKTOP_WINDOW_H_ |
6 #define VIEWS_DESKTOP_DESKTOP_WINDOW_H_ | 6 #define VIEWS_DESKTOP_DESKTOP_WINDOW_H_ |
7 | 7 |
8 #include "views/view.h" | 8 #include "views/view.h" |
9 #include "views/widget/widget_delegate.h" | 9 #include "views/widget/widget_delegate.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
12 class NativeWidgetViews; | 12 class NativeWidgetViews; |
13 | 13 |
14 namespace desktop { | 14 namespace desktop { |
15 | 15 |
16 class DesktopWindow : public View, | 16 class DesktopWindow : public WidgetDelegateView { |
17 public WidgetDelegate { | |
18 public: | 17 public: |
19 DesktopWindow(); | 18 DesktopWindow(); |
20 virtual ~DesktopWindow(); | 19 virtual ~DesktopWindow(); |
21 | 20 |
22 static void CreateDesktopWindow(); | 21 static void CreateDesktopWindow(); |
23 | 22 |
24 // Changes activation to the specified Widget. The currently active Widget | 23 // Changes activation to the specified Widget. The currently active Widget |
25 // is de-activated. | 24 // is de-activated. |
26 void ActivateWidget(Widget* widget); | 25 void ActivateWidget(Widget* widget); |
27 | 26 |
(...skipping 18 matching lines...) Expand all Loading... |
46 | 45 |
47 NativeWidgetViews* active_widget_; | 46 NativeWidgetViews* active_widget_; |
48 | 47 |
49 DISALLOW_COPY_AND_ASSIGN(DesktopWindow); | 48 DISALLOW_COPY_AND_ASSIGN(DesktopWindow); |
50 }; | 49 }; |
51 | 50 |
52 } // namespace desktop | 51 } // namespace desktop |
53 } // namespace views | 52 } // namespace views |
54 | 53 |
55 #endif // VIEWS_DESKTOP_DESKTOP_WINDOW_H_ | 54 #endif // VIEWS_DESKTOP_DESKTOP_WINDOW_H_ |
OLD | NEW |