| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // A DialogDelegate implementation that is-a View. Used to override GetWidget() | 113 // A DialogDelegate implementation that is-a View. Used to override GetWidget() |
| 114 // to call View's GetWidget() for the common case where a DialogDelegate | 114 // to call View's GetWidget() for the common case where a DialogDelegate |
| 115 // implementation is-a View. | 115 // implementation is-a View. |
| 116 class VIEWS_EXPORT DialogDelegateView : public DialogDelegate, | 116 class VIEWS_EXPORT DialogDelegateView : public DialogDelegate, |
| 117 public View { | 117 public View { |
| 118 public: | 118 public: |
| 119 DialogDelegateView(); | 119 DialogDelegateView(); |
| 120 virtual ~DialogDelegateView(); | 120 virtual ~DialogDelegateView(); |
| 121 | 121 |
| 122 // Overridden from DialogDelegate: | 122 // Overridden from DialogDelegate: |
| 123 virtual void DeleteDelegate() OVERRIDE; |
| 123 virtual Widget* GetWidget() OVERRIDE; | 124 virtual Widget* GetWidget() OVERRIDE; |
| 124 virtual const Widget* GetWidget() const OVERRIDE; | 125 virtual const Widget* GetWidget() const OVERRIDE; |
| 125 virtual View* GetContentsView() OVERRIDE; | 126 virtual View* GetContentsView() OVERRIDE; |
| 126 | 127 |
| 127 private: | 128 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); | 129 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace views | 132 } // namespace views |
| 132 | 133 |
| 133 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 134 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
| OLD | NEW |