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_WIDGET_NATIVE_WIDGET_VIEW_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 #include "views/widget/native_widget_delegate.h" | 10 #include "views/widget/native_widget_delegate.h" |
11 #include "views/widget/native_widget_views.h" | 11 #include "views/widget/native_widget_views.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 enum TouchStatus; | 14 enum TouchStatus; |
15 } | 15 } |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class NativeWidgetViews; | 18 class NativeWidgetViews; |
19 | 19 |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 //////////////////////////////////////////////////////////////////////////////// | 22 //////////////////////////////////////////////////////////////////////////////// |
23 // NativeWidgetView | 23 // NativeWidgetView |
24 // | 24 // |
25 // This class represents the View that is the "native view" for a | 25 // This class represents the View that is the "native view" for a |
26 // NativeWidgetViews. It is the View that is a member of the parent Widget's | 26 // NativeWidgetViews. It is the View that is a member of the parent Widget's |
27 // View hierarchy. It is responsible for receiving relevant events from that | 27 // View hierarchy. It is responsible for receiving relevant events from that |
28 // hierarchy and forwarding them to its NativeWidgetViews' delegate's hierarchy. | 28 // hierarchy and forwarding them to its NativeWidgetViews' delegate's hierarchy. |
29 // | 29 // |
30 class VIEWS_API NativeWidgetView : public View { | 30 class VIEWS_EXPORT NativeWidgetView : public View { |
31 public: | 31 public: |
32 static const char kViewClassName[]; | 32 static const char kViewClassName[]; |
33 | 33 |
34 explicit NativeWidgetView(NativeWidgetViews* native_widget); | 34 explicit NativeWidgetView(NativeWidgetViews* native_widget); |
35 virtual ~NativeWidgetView(); | 35 virtual ~NativeWidgetView(); |
36 | 36 |
37 Widget* GetAssociatedWidget(); | 37 Widget* GetAssociatedWidget(); |
38 | 38 |
39 void set_delete_native_widget(bool delete_native_widget) { | 39 void set_delete_native_widget(bool delete_native_widget) { |
40 delete_native_widget_ = delete_native_widget; | 40 delete_native_widget_ = delete_native_widget; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 bool delete_native_widget_; | 87 bool delete_native_widget_; |
88 | 88 |
89 DISALLOW_COPY_AND_ASSIGN(NativeWidgetView); | 89 DISALLOW_COPY_AND_ASSIGN(NativeWidgetView); |
90 }; | 90 }; |
91 | 91 |
92 } // namespace internal | 92 } // namespace internal |
93 } // namespace views | 93 } // namespace views |
94 | 94 |
95 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ | 95 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEW_H_ |
OLD | NEW |