Chromium Code Reviews| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 be activated. | 61 // Returns true if the window can be activated. |
| 62 virtual bool CanActivate() const; | 62 virtual bool CanActivate() const; |
| 63 | 63 |
| 64 // Returns the modal type that applies to the widget. Default is | 64 // Returns the modal type that applies to the widget. Default is |
| 65 // ui::MODAL_TYPE_NONE (not modal). | 65 // ui::MODAL_TYPE_NONE (not modal). |
| 66 virtual ui::ModalType GetModalType() const; | 66 virtual ui::ModalType GetModalType() const; |
| 67 | 67 |
| 68 // Returns whether or not this widget is a Dialog box. Dialogs re-activate | |
| 69 // their parent widget when closed. | |
| 70 virtual bool IsDialogBox(); | |
|
tapted
2014/07/21 00:34:07
nit: const
sashab
2014/07/21 03:36:21
Originally, it actually couldn't be const, because
| |
| 71 | |
| 68 virtual ui::AXRole GetAccessibleWindowRole() const; | 72 virtual ui::AXRole GetAccessibleWindowRole() const; |
| 69 | 73 |
| 70 // Returns the title to be read with screen readers. | 74 // Returns the title to be read with screen readers. |
| 71 virtual base::string16 GetAccessibleWindowTitle() const; | 75 virtual base::string16 GetAccessibleWindowTitle() const; |
| 72 | 76 |
| 73 // Returns the text to be displayed in the window title. | 77 // Returns the text to be displayed in the window title. |
| 74 virtual base::string16 GetWindowTitle() const; | 78 virtual base::string16 GetWindowTitle() const; |
| 75 | 79 |
| 76 // Returns true if the window should show a title in the title bar. | 80 // Returns true if the window should show a title in the title bar. |
| 77 virtual bool ShouldShowWindowTitle() const; | 81 virtual bool ShouldShowWindowTitle() const; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 virtual Widget* GetWidget() OVERRIDE; | 209 virtual Widget* GetWidget() OVERRIDE; |
| 206 virtual const Widget* GetWidget() const OVERRIDE; | 210 virtual const Widget* GetWidget() const OVERRIDE; |
| 207 | 211 |
| 208 private: | 212 private: |
| 209 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 213 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
| 210 }; | 214 }; |
| 211 | 215 |
| 212 } // namespace views | 216 } // namespace views |
| 213 | 217 |
| 214 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 218 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
| OLD | NEW |