| 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 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ui/events/event_constants.h" | 10 #include "ui/events/event_constants.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 virtual gfx::Size GetMaximumSize() const = 0; | 90 virtual gfx::Size GetMaximumSize() const = 0; |
| 91 | 91 |
| 92 // Called when the NativeWidget changed position. | 92 // Called when the NativeWidget changed position. |
| 93 virtual void OnNativeWidgetMove() = 0; | 93 virtual void OnNativeWidgetMove() = 0; |
| 94 | 94 |
| 95 // Called when the NativeWidget changed size to |new_size|. | 95 // Called when the NativeWidget changed size to |new_size|. |
| 96 // This may happen at the same time as OnNativeWidgetWindowShowStateChanged, | 96 // This may happen at the same time as OnNativeWidgetWindowShowStateChanged, |
| 97 // e.g. maximize. | 97 // e.g. maximize. |
| 98 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; | 98 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0; |
| 99 | 99 |
| 100 // Called when NativeWidget changed workspaces. |
| 101 virtual void OnNativeWidgetWorkspaceChanged(int workspace_id) = 0; |
| 102 |
| 100 // Called when the NativeWidget changes its window state. | 103 // Called when the NativeWidget changes its window state. |
| 101 // This may happen at the same time as OnNativeWidgetSizeChanged, e.g. | 104 // This may happen at the same time as OnNativeWidgetSizeChanged, e.g. |
| 102 // maximize. | 105 // maximize. |
| 103 virtual void OnNativeWidgetWindowShowStateChanged() = 0; | 106 virtual void OnNativeWidgetWindowShowStateChanged() = 0; |
| 104 | 107 |
| 105 // Called when the user begins/ends to change the bounds of the window. | 108 // Called when the user begins/ends to change the bounds of the window. |
| 106 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; | 109 virtual void OnNativeWidgetBeginUserBoundsChange() = 0; |
| 107 virtual void OnNativeWidgetEndUserBoundsChange() = 0; | 110 virtual void OnNativeWidgetEndUserBoundsChange() = 0; |
| 108 | 111 |
| 109 // Returns true if the delegate has a FocusManager. | 112 // Returns true if the delegate has a FocusManager. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // later. Returns true if the initial focus has been set or the window should | 148 // later. Returns true if the initial focus has been set or the window should |
| 146 // not set the initial focus, or false if the caller should set the initial | 149 // not set the initial focus, or false if the caller should set the initial |
| 147 // focus (if any). | 150 // focus (if any). |
| 148 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; | 151 virtual bool SetInitialFocus(ui::WindowShowState show_state) = 0; |
| 149 }; | 152 }; |
| 150 | 153 |
| 151 } // namespace internal | 154 } // namespace internal |
| 152 } // namespace views | 155 } // namespace views |
| 153 | 156 |
| 154 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ | 157 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_DELEGATE_H_ |
| OLD | NEW |