OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/base/events.h" | 9 #include "ui/base/events.h" |
10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 // Called just after the native widget is destroyed. | 66 // Called just after the native widget is destroyed. |
67 virtual void OnNativeWidgetDestroyed() = 0; | 67 virtual void OnNativeWidgetDestroyed() = 0; |
68 | 68 |
69 // Returns the smallest size the window can be resized to by the user. | 69 // Returns the smallest size the window can be resized to by the user. |
70 virtual gfx::Size GetMinimumSize() = 0; | 70 virtual gfx::Size GetMinimumSize() = 0; |
71 | 71 |
72 // Returns the largest size the window can be resized to by the user. | 72 // Returns the largest size the window can be resized to by the user. |
73 virtual gfx::Size GetMaximumSize() = 0; | 73 virtual gfx::Size GetMaximumSize() = 0; |
74 | 74 |
| 75 // Called when the NativeWidget changed position. |
| 76 virtual void OnNativeWidgetMove() = 0; |
| 77 |
75 // Called when the NativeWidget changed size to |new_size|. | 78 // Called when the NativeWidget changed size to |new_size|. |
76 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; | 79 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; |
77 | 80 |
78 // Called when the user begins/ends to change the bounds of the window. | 81 // Called when the user begins/ends to change the bounds of the window. |
79 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; | 82 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; |
80 virtual void OnNativeWidgetEndUserBoundsChange() = 0; | 83 virtual void OnNativeWidgetEndUserBoundsChange() = 0; |
81 | 84 |
82 // Returns true if the delegate has a FocusManager. | 85 // Returns true if the delegate has a FocusManager. |
83 virtual bool HasFocusManager() const = 0; | 86 virtual bool HasFocusManager() const = 0; |
84 | 87 |
(...skipping 27 matching lines...) Expand all Loading... |
112 | 115 |
113 // | 116 // |
114 virtual Widget* AsWidget() = 0; | 117 virtual Widget* AsWidget() = 0; |
115 virtual const Widget* AsWidget() const = 0; | 118 virtual const Widget* AsWidget() const = 0; |
116 }; | 119 }; |
117 | 120 |
118 } // namespace internal | 121 } // namespace internal |
119 } // namespace views | 122 } // namespace views |
120 | 123 |
121 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 124 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
OLD | NEW |