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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // menu bars, etc.) changes in size. | 43 // menu bars, etc.) changes in size. |
44 virtual void OnWorkAreaChanged(); | 44 virtual void OnWorkAreaChanged(); |
45 | 45 |
46 // Returns the view that should have the focus when the widget is shown. If | 46 // Returns the view that should have the focus when the widget is shown. If |
47 // NULL no view is focused. | 47 // NULL no view is focused. |
48 virtual View* GetInitiallyFocusedView(); | 48 virtual View* GetInitiallyFocusedView(); |
49 | 49 |
50 // Moved from WindowDelegate: ------------------------------------------------ | 50 // Moved from WindowDelegate: ------------------------------------------------ |
51 // TODO(beng): sort | 51 // TODO(beng): sort |
52 | 52 |
53 virtual BubbleDelegate* AsBubbleDelegate(); | |
54 virtual DialogDelegate* AsDialogDelegate(); | 53 virtual DialogDelegate* AsDialogDelegate(); |
55 | 54 |
56 // Returns true if the window can ever be resized. | 55 // Returns true if the window can ever be resized. |
57 virtual bool CanResize() const; | 56 virtual bool CanResize() const; |
58 | 57 |
59 // Returns true if the window can ever be maximized. | 58 // Returns true if the window can ever be maximized. |
60 virtual bool CanMaximize() const; | 59 virtual bool CanMaximize() const; |
61 | 60 |
62 // Returns true if the window can be activated. | 61 // Returns true if the window can be activated. |
63 virtual bool CanActivate() const; | 62 virtual bool CanActivate() const; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 virtual Widget* GetWidget() OVERRIDE; | 171 virtual Widget* GetWidget() OVERRIDE; |
173 virtual const Widget* GetWidget() const OVERRIDE; | 172 virtual const Widget* GetWidget() const OVERRIDE; |
174 | 173 |
175 private: | 174 private: |
176 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); | 175 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); |
177 }; | 176 }; |
178 | 177 |
179 } // namespace views | 178 } // namespace views |
180 | 179 |
181 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ | 180 #endif // VIEWS_WIDGET_WIDGET_DELEGATE_H_ |
OLD | NEW |