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_WINDOW_DIALOG_CLIENT_VIEW_H_ | 5 #ifndef UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
7 | 7 |
8 #include "ui/base/ui_base_types.h" | 8 #include "ui/base/ui_base_types.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/focus/focus_manager.h" | 10 #include "ui/views/focus/focus_manager.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Accessors in case the user wishes to adjust these buttons. | 41 // Accessors in case the user wishes to adjust these buttons. |
42 LabelButton* ok_button() const { return ok_button_; } | 42 LabelButton* ok_button() const { return ok_button_; } |
43 LabelButton* cancel_button() const { return cancel_button_; } | 43 LabelButton* cancel_button() const { return cancel_button_; } |
44 | 44 |
45 // Update the dialog buttons to match the dialog's delegate. | 45 // Update the dialog buttons to match the dialog's delegate. |
46 void UpdateDialogButtons(); | 46 void UpdateDialogButtons(); |
47 | 47 |
48 // ClientView implementation: | 48 // ClientView implementation: |
49 virtual bool CanClose() OVERRIDE; | 49 virtual bool CanClose() OVERRIDE; |
| 50 virtual void WidgetClosing() OVERRIDE; |
50 virtual DialogClientView* AsDialogClientView() OVERRIDE; | 51 virtual DialogClientView* AsDialogClientView() OVERRIDE; |
51 virtual const DialogClientView* AsDialogClientView() const OVERRIDE; | 52 virtual const DialogClientView* AsDialogClientView() const OVERRIDE; |
52 | 53 |
53 // FocusChangeListener implementation: | 54 // FocusChangeListener implementation: |
54 virtual void OnWillChangeFocus(View* focused_before, | 55 virtual void OnWillChangeFocus(View* focused_before, |
55 View* focused_now) OVERRIDE; | 56 View* focused_now) OVERRIDE; |
56 virtual void OnDidChangeFocus(View* focused_before, | 57 virtual void OnDidChangeFocus(View* focused_before, |
57 View* focused_now) OVERRIDE; | 58 View* focused_now) OVERRIDE; |
58 | 59 |
59 // View implementation: | 60 // View implementation: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // http://crbug.com/71940). This is used to avoid notifying the delegate | 127 // http://crbug.com/71940). This is used to avoid notifying the delegate |
127 // twice, which can have bad consequences. | 128 // twice, which can have bad consequences. |
128 bool notified_delegate_; | 129 bool notified_delegate_; |
129 | 130 |
130 DISALLOW_COPY_AND_ASSIGN(DialogClientView); | 131 DISALLOW_COPY_AND_ASSIGN(DialogClientView); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace views | 134 } // namespace views |
134 | 135 |
135 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ | 136 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ |
OLD | NEW |