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 VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 5 #ifndef VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 6 #define VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual void DeleteDelegate() {} | 128 virtual void DeleteDelegate() {} |
129 | 129 |
130 // Called when the window's activation state changes. | 130 // Called when the window's activation state changes. |
131 virtual void OnWindowActivationChanged(bool active) {} | 131 virtual void OnWindowActivationChanged(bool active) {} |
132 | 132 |
133 // Called when the user begins/ends to change the bounds of the window. | 133 // Called when the user begins/ends to change the bounds of the window. |
134 virtual void OnWindowBeginUserBoundsChange() {} | 134 virtual void OnWindowBeginUserBoundsChange() {} |
135 virtual void OnWindowEndUserBoundsChange() {} | 135 virtual void OnWindowEndUserBoundsChange() {} |
136 | 136 |
137 // Returns the Widget associated with this delegate. | 137 // Returns the Widget associated with this delegate. |
138 virtual Widget* GetWidget(); | 138 virtual Widget* GetWidget() = 0; |
139 virtual const Widget* GetWidget() const; | 139 virtual const Widget* GetWidget() const = 0; |
140 | 140 |
141 // Returns the View that is contained within this Widget. | 141 // Returns the View that is contained within this Widget. |
142 virtual View* GetContentsView(); | 142 virtual View* GetContentsView(); |
143 | 143 |
144 // Called by the Widget to create the Client View used to host the contents | 144 // Called by the Widget to create the Client View used to host the contents |
145 // of the widget. | 145 // of the widget. |
146 virtual ClientView* CreateClientView(Widget* widget); | 146 virtual ClientView* CreateClientView(Widget* widget); |
147 | 147 |
148 // Called by the Widget to create the NonClient Frame View for this widget. | 148 // Called by the Widget to create the NonClient Frame View for this widget. |
149 // Return NULL to use the default one. | 149 // Return NULL to use the default one. |
(...skipping 28 matching lines...) Expand all Loading... |
178 virtual const Widget* GetWidget() const OVERRIDE; | 178 virtual const Widget* GetWidget() const OVERRIDE; |
179 | 179 |
180 private: | 180 private: |
181 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 181 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace views | 184 } // namespace views |
185 | 185 |
186 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 186 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
187 | 187 |
OLD | NEW |