| 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 UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 #include "views/view.h" | 12 #include "ui/views/view.h" |
| 13 | 13 |
| 14 namespace views { | 14 namespace views { |
| 15 | 15 |
| 16 class NativeViewHostWrapper; | 16 class NativeViewHostWrapper; |
| 17 | 17 |
| 18 // A View type that hosts a gfx::NativeView. The bounds of the native view are | 18 // A View type that hosts a gfx::NativeView. The bounds of the native view are |
| 19 // kept in sync with the bounds of this view as it is moved and sized. | 19 // kept in sync with the bounds of this view as it is moved and sized. |
| 20 // Under the hood, a platform-specific NativeViewHostWrapper implementation does | 20 // Under the hood, a platform-specific NativeViewHostWrapper implementation does |
| 21 // the platform-specific work of manipulating the underlying OS widget type. | 21 // the platform-specific work of manipulating the underlying OS widget type. |
| 22 class VIEWS_EXPORT NativeViewHost : public View { | 22 class VIEWS_EXPORT NativeViewHost : public View { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 // The view that should be given focus when this NativeViewHost is focused. | 116 // The view that should be given focus when this NativeViewHost is focused. |
| 117 View* focus_view_; | 117 View* focus_view_; |
| 118 | 118 |
| 119 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 119 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace views | 122 } // namespace views |
| 123 | 123 |
| 124 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 124 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| OLD | NEW |