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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // menu bars, etc.) changes in size. | 45 // menu bars, etc.) changes in size. |
46 virtual void OnWorkAreaChanged(); | 46 virtual void OnWorkAreaChanged(); |
47 | 47 |
48 // Returns the view that should have the focus when the widget is shown. If | 48 // Returns the view that should have the focus when the widget is shown. If |
49 // NULL no view is focused. | 49 // NULL no view is focused. |
50 virtual View* GetInitiallyFocusedView(); | 50 virtual View* GetInitiallyFocusedView(); |
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 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 be maximized. |
59 virtual bool CanMaximize() const; | 59 virtual bool CanMaximize() const; |
60 | 60 |
61 // Returns true if the window can ever be minimized. | 61 // Returns true if the window can be minimized. |
62 virtual bool CanMinimize() const; | 62 virtual bool CanMinimize() const; |
63 | 63 |
64 // Returns true if the window can be activated. | 64 // Returns true if the window can be activated. |
65 virtual bool CanActivate() const; | 65 virtual bool CanActivate() const; |
66 | 66 |
67 // Returns the modal type that applies to the widget. Default is | 67 // Returns the modal type that applies to the widget. Default is |
68 // ui::MODAL_TYPE_NONE (not modal). | 68 // ui::MODAL_TYPE_NONE (not modal). |
69 virtual ui::ModalType GetModalType() const; | 69 virtual ui::ModalType GetModalType() const; |
70 | 70 |
71 virtual ui::AXRole GetAccessibleWindowRole() const; | 71 virtual ui::AXRole GetAccessibleWindowRole() const; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 virtual Widget* GetWidget() OVERRIDE; | 208 virtual Widget* GetWidget() OVERRIDE; |
209 virtual const Widget* GetWidget() const OVERRIDE; | 209 virtual const Widget* GetWidget() const OVERRIDE; |
210 | 210 |
211 private: | 211 private: |
212 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 212 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
213 }; | 213 }; |
214 | 214 |
215 } // namespace views | 215 } // namespace views |
216 | 216 |
217 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 217 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
OLD | NEW |