| 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_PRIVATE_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "views/widget/native_widget.h" | 10 #include "views/widget/native_widget.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // communication with a backend-specific native widget implementation. | 29 // communication with a backend-specific native widget implementation. |
| 30 // | 30 // |
| 31 // Many of the methods here are pass-thrus for Widget, and as such there is no | 31 // Many of the methods here are pass-thrus for Widget, and as such there is no |
| 32 // documentation for them here. In that case, see methods of the same name in | 32 // documentation for them here. In that case, see methods of the same name in |
| 33 // widget.h. | 33 // widget.h. |
| 34 // | 34 // |
| 35 // IMPORTANT: This type is intended for use only by the views system and for | 35 // IMPORTANT: This type is intended for use only by the views system and for |
| 36 // NativeWidget implementations. This file should not be included | 36 // NativeWidget implementations. This file should not be included |
| 37 // in code that does not fall into one of these use cases. | 37 // in code that does not fall into one of these use cases. |
| 38 // | 38 // |
| 39 class VIEWS_API NativeWidgetPrivate : public NativeWidget { | 39 class VIEWS_EXPORT NativeWidgetPrivate : public NativeWidget { |
| 40 public: | 40 public: |
| 41 virtual ~NativeWidgetPrivate() {} | 41 virtual ~NativeWidgetPrivate() {} |
| 42 | 42 |
| 43 // Creates an appropriate default NativeWidgetPrivate implementation for the | 43 // Creates an appropriate default NativeWidgetPrivate implementation for the |
| 44 // current OS/circumstance. | 44 // current OS/circumstance. |
| 45 static NativeWidgetPrivate* CreateNativeWidget( | 45 static NativeWidgetPrivate* CreateNativeWidget( |
| 46 internal::NativeWidgetDelegate* delegate); | 46 internal::NativeWidgetDelegate* delegate); |
| 47 | 47 |
| 48 static NativeWidgetPrivate* GetNativeWidgetForNativeView( | 48 static NativeWidgetPrivate* GetNativeWidgetForNativeView( |
| 49 gfx::NativeView native_view); | 49 gfx::NativeView native_view); |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 virtual void FocusNativeView(gfx::NativeView native_view) = 0; | 211 virtual void FocusNativeView(gfx::NativeView native_view) = 0; |
| 212 | 212 |
| 213 // Overridden from NativeWidget: | 213 // Overridden from NativeWidget: |
| 214 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 214 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace internal | 217 } // namespace internal |
| 218 } // namespace views | 218 } // namespace views |
| 219 | 219 |
| 220 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 220 #endif // VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
| OLD | NEW |