OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 5 #ifndef VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
6 #define VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 6 #define 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 "gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
12 #include "views/view.h" | 12 #include "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. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // The view that should be given focus when this NativeViewHost is focused. | 115 // The view that should be given focus when this NativeViewHost is focused. |
116 View* focus_view_; | 116 View* focus_view_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 118 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); |
119 }; | 119 }; |
120 | 120 |
121 } // namespace views | 121 } // namespace views |
122 | 122 |
123 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 123 #endif // VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
OLD | NEW |