| 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_DELEGATE_H_ | 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "ui/base/accessibility/accessibility_types.h" | 10 #include "ui/base/accessibility/accessibility_types.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // and there is no Cancel handler, so Accept is being called instead. | 90 // and there is no Cancel handler, so Accept is being called instead. |
| 91 virtual bool Accept(bool window_closing); | 91 virtual bool Accept(bool window_closing); |
| 92 virtual bool Accept(); | 92 virtual bool Accept(); |
| 93 | 93 |
| 94 // Overridden from WidgetDelegate: | 94 // Overridden from WidgetDelegate: |
| 95 virtual View* GetInitiallyFocusedView() OVERRIDE; | 95 virtual View* GetInitiallyFocusedView() OVERRIDE; |
| 96 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; | 96 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; |
| 97 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; | 97 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; |
| 98 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; | 98 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; |
| 99 | 99 |
| 100 // Create a frame view using the new dialog style. |
| 101 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget); |
| 102 |
| 100 // Called when the window has been closed. | 103 // Called when the window has been closed. |
| 101 virtual void OnClose() {} | 104 virtual void OnClose() {} |
| 102 | 105 |
| 103 // A helper for accessing the DialogClientView object contained by this | 106 // A helper for accessing the DialogClientView object contained by this |
| 104 // delegate's Window. | 107 // delegate's Window. |
| 105 const DialogClientView* GetDialogClientView() const; | 108 const DialogClientView* GetDialogClientView() const; |
| 106 DialogClientView* GetDialogClientView(); | 109 DialogClientView* GetDialogClientView(); |
| 107 | 110 |
| 108 protected: | 111 protected: |
| 109 // Overridden from WindowDelegate: | 112 // Overridden from WindowDelegate: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 131 virtual const Widget* GetWidget() const OVERRIDE; | 134 virtual const Widget* GetWidget() const OVERRIDE; |
| 132 virtual View* GetContentsView() OVERRIDE; | 135 virtual View* GetContentsView() OVERRIDE; |
| 133 | 136 |
| 134 private: | 137 private: |
| 135 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); | 138 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); |
| 136 }; | 139 }; |
| 137 | 140 |
| 138 } // namespace views | 141 } // namespace views |
| 139 | 142 |
| 140 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 143 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| OLD | NEW |