| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Called just before the native widget is destroyed. This is the delegate's | 62 // Called just before the native widget is destroyed. This is the delegate's |
| 63 // last chance to do anything with the native widget handle. | 63 // last chance to do anything with the native widget handle. |
| 64 virtual void OnNativeWidgetDestroying() = 0; | 64 virtual void OnNativeWidgetDestroying() = 0; |
| 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. |
| 73 virtual gfx::Size GetMaximumSize() = 0; |
| 74 |
| 72 // Called when the NativeWidget changed size to |new_size|. | 75 // Called when the NativeWidget changed size to |new_size|. |
| 73 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; | 76 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; |
| 74 | 77 |
| 75 // Called when the user begins/ends to change the bounds of the window. | 78 // Called when the user begins/ends to change the bounds of the window. |
| 76 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; | 79 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; |
| 77 virtual void OnNativeWidgetEndUserBoundsChange() = 0; | 80 virtual void OnNativeWidgetEndUserBoundsChange() = 0; |
| 78 | 81 |
| 79 // Returns true if the delegate has a FocusManager. | 82 // Returns true if the delegate has a FocusManager. |
| 80 virtual bool HasFocusManager() const = 0; | 83 virtual bool HasFocusManager() const = 0; |
| 81 | 84 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 109 | 112 |
| 110 // | 113 // |
| 111 virtual Widget* AsWidget() = 0; | 114 virtual Widget* AsWidget() = 0; |
| 112 virtual const Widget* AsWidget() const = 0; | 115 virtual const Widget* AsWidget() const = 0; |
| 113 }; | 116 }; |
| 114 | 117 |
| 115 } // namespace internal | 118 } // namespace internal |
| 116 } // namespace views | 119 } // namespace views |
| 117 | 120 |
| 118 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 121 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |