| 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_WIDGET_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
| 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/base/accessibility/accessibility_types.h" | 10 #include "ui/base/accessibility/accessibility_types.h" |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 virtual void OnWindowBeginUserBoundsChange() {} | 120 virtual void OnWindowBeginUserBoundsChange() {} |
| 121 virtual void OnWindowEndUserBoundsChange() {} | 121 virtual void OnWindowEndUserBoundsChange() {} |
| 122 | 122 |
| 123 // Returns the Widget associated with this delegate. | 123 // Returns the Widget associated with this delegate. |
| 124 virtual Widget* GetWidget() = 0; | 124 virtual Widget* GetWidget() = 0; |
| 125 virtual const Widget* GetWidget() const = 0; | 125 virtual const Widget* GetWidget() const = 0; |
| 126 | 126 |
| 127 // Returns the View that is contained within this Widget. | 127 // Returns the View that is contained within this Widget. |
| 128 virtual View* GetContentsView(); | 128 virtual View* GetContentsView(); |
| 129 | 129 |
| 130 // Returns the View for the header of the Widget. |
| 131 virtual View* GetHeaderView(); |
| 132 |
| 130 // Called by the Widget to create the Client View used to host the contents | 133 // Called by the Widget to create the Client View used to host the contents |
| 131 // of the widget. | 134 // of the widget. |
| 132 virtual ClientView* CreateClientView(Widget* widget); | 135 virtual ClientView* CreateClientView(Widget* widget); |
| 133 | 136 |
| 134 // Called by the Widget to create the NonClient Frame View for this widget. | 137 // Called by the Widget to create the NonClient Frame View for this widget. |
| 135 // Return NULL to use the default one. | 138 // Return NULL to use the default one. |
| 136 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget); | 139 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget); |
| 137 | 140 |
| 138 // Returns true if the window can be notified with the work area change. | 141 // Returns true if the window can be notified with the work area change. |
| 139 // Otherwise, the work area change for the top window will be processed by | 142 // Otherwise, the work area change for the top window will be processed by |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 virtual Widget* GetWidget() OVERRIDE; | 177 virtual Widget* GetWidget() OVERRIDE; |
| 175 virtual const Widget* GetWidget() const OVERRIDE; | 178 virtual const Widget* GetWidget() const OVERRIDE; |
| 176 | 179 |
| 177 private: | 180 private: |
| 178 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 181 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
| 179 }; | 182 }; |
| 180 | 183 |
| 181 } // namespace views | 184 } // namespace views |
| 182 | 185 |
| 183 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 186 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
| OLD | NEW |