| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // Invokes ViewRemoved() on the FocusManager for all the child Widgets of our | 101 // Invokes ViewRemoved() on the FocusManager for all the child Widgets of our |
| 102 // NativeView. This is used when detaching to ensure the FocusManager doesn't | 102 // NativeView. This is used when detaching to ensure the FocusManager doesn't |
| 103 // have a reference to a View that is no longer reachable. | 103 // have a reference to a View that is no longer reachable. |
| 104 void ClearFocus(); | 104 void ClearFocus(); |
| 105 | 105 |
| 106 // The attached native view. There is exactly one native_view_ attached. | 106 // The attached native view. There is exactly one native_view_ attached. |
| 107 gfx::NativeView native_view_; | 107 gfx::NativeView native_view_; |
| 108 | 108 |
| 109 // A platform-specific wrapper that does the OS-level manipulation of the | 109 // A platform-specific wrapper that does the OS-level manipulation of the |
| 110 // attached gfx::NativeView. | 110 // attached gfx::NativeView. |
| 111 scoped_ptr<NativeViewHostWrapper> native_wrapper_; | 111 std::unique_ptr<NativeViewHostWrapper> native_wrapper_; |
| 112 | 112 |
| 113 // The preferred size of this View | 113 // The preferred size of this View |
| 114 gfx::Size preferred_size_; | 114 gfx::Size preferred_size_; |
| 115 | 115 |
| 116 // True if the native view is being resized using the fast method described | 116 // True if the native view is being resized using the fast method described |
| 117 // in the setter/accessor above. | 117 // in the setter/accessor above. |
| 118 bool fast_resize_; | 118 bool fast_resize_; |
| 119 | 119 |
| 120 // Value of |fast_resize_| during the last call to Layout. | 120 // Value of |fast_resize_| during the last call to Layout. |
| 121 bool fast_resize_at_last_layout_; | 121 bool fast_resize_at_last_layout_; |
| 122 | 122 |
| 123 // Color to paint in the background while resizing. | 123 // Color to paint in the background while resizing. |
| 124 SkColor resize_background_color_; | 124 SkColor resize_background_color_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); | 126 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace views | 129 } // namespace views |
| 130 | 130 |
| 131 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ | 131 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ |
| OLD | NEW |