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_VIEWS_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
12 #include "ui/gfx/transform.h" | 12 #include "ui/gfx/transform.h" |
13 #include "views/ime/input_method_delegate.h" | 13 #include "views/ime/input_method_delegate.h" |
14 #include "views/widget/native_widget_private.h" | 14 #include "views/widget/native_widget_private.h" |
15 | 15 |
16 namespace views { | 16 namespace views { |
17 namespace internal { | 17 namespace internal { |
18 class NativeWidgetView; | 18 class NativeWidgetView; |
19 } | 19 } |
20 | 20 |
21 //////////////////////////////////////////////////////////////////////////////// | 21 //////////////////////////////////////////////////////////////////////////////// |
22 // NativeWidgetViews | 22 // NativeWidgetViews |
23 // | 23 // |
24 // A NativeWidget implementation that uses another View as its native widget. | 24 // A NativeWidget implementation that uses another View as its native widget. |
25 // | 25 // |
26 class VIEWS_API NativeWidgetViews : public internal::NativeWidgetPrivate, | 26 class VIEWS_EXPORT NativeWidgetViews : public internal::NativeWidgetPrivate, |
27 public internal::InputMethodDelegate { | 27 public internal::InputMethodDelegate { |
28 public: | 28 public: |
29 explicit NativeWidgetViews(internal::NativeWidgetDelegate* delegate); | 29 explicit NativeWidgetViews(internal::NativeWidgetDelegate* delegate); |
30 virtual ~NativeWidgetViews(); | 30 virtual ~NativeWidgetViews(); |
31 | 31 |
32 // TODO(beng): remove. | 32 // TODO(beng): remove. |
33 View* GetView(); | 33 View* GetView(); |
34 const View* GetView() const; | 34 const View* GetView() const; |
35 | 35 |
36 // TODO(oshima): These will be moved to WM API. | 36 // TODO(oshima): These will be moved to WM API. |
37 void OnActivate(bool active); | 37 void OnActivate(bool active); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 scoped_ptr<InputMethod> input_method_; | 157 scoped_ptr<InputMethod> input_method_; |
158 | 158 |
159 std::map<const char*, void*> window_properties_; | 159 std::map<const char*, void*> window_properties_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); | 161 DISALLOW_COPY_AND_ASSIGN(NativeWidgetViews); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace views | 164 } // namespace views |
165 | 165 |
166 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ | 166 #endif // VIEWS_WIDGET_NATIVE_WIDGET_VIEWS_H_ |
OLD | NEW |