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 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 virtual BubbleDelegateView* AsBubbleDelegate(); | 52 virtual BubbleDelegateView* AsBubbleDelegate(); |
53 virtual DialogDelegate* AsDialogDelegate(); | 53 virtual DialogDelegate* AsDialogDelegate(); |
54 | 54 |
55 // Returns true if the window can ever be resized. | 55 // Returns true if the window can ever be resized. |
56 virtual bool CanResize() const; | 56 virtual bool CanResize() const; |
57 | 57 |
58 // Returns true if the window can ever be maximized. | 58 // Returns true if the window can ever be maximized. |
59 virtual bool CanMaximize() const; | 59 virtual bool CanMaximize() const; |
60 | 60 |
| 61 // Returns true if the window can ever be minimized. |
| 62 virtual bool CanMinimize() const; |
| 63 |
61 // Returns true if the window can be activated. | 64 // Returns true if the window can be activated. |
62 virtual bool CanActivate() const; | 65 virtual bool CanActivate() const; |
63 | 66 |
64 // Returns the modal type that applies to the widget. Default is | 67 // Returns the modal type that applies to the widget. Default is |
65 // ui::MODAL_TYPE_NONE (not modal). | 68 // ui::MODAL_TYPE_NONE (not modal). |
66 virtual ui::ModalType GetModalType() const; | 69 virtual ui::ModalType GetModalType() const; |
67 | 70 |
68 virtual ui::AXRole GetAccessibleWindowRole() const; | 71 virtual ui::AXRole GetAccessibleWindowRole() const; |
69 | 72 |
70 // Returns the title to be read with screen readers. | 73 // Returns the title to be read with screen readers. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 virtual Widget* GetWidget() OVERRIDE; | 208 virtual Widget* GetWidget() OVERRIDE; |
206 virtual const Widget* GetWidget() const OVERRIDE; | 209 virtual const Widget* GetWidget() const OVERRIDE; |
207 | 210 |
208 private: | 211 private: |
209 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 212 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
210 }; | 213 }; |
211 | 214 |
212 } // namespace views | 215 } // namespace views |
213 | 216 |
214 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 217 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
OLD | NEW |