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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 public: | 118 public: |
119 DialogDelegateView(); | 119 DialogDelegateView(); |
120 virtual ~DialogDelegateView(); | 120 virtual ~DialogDelegateView(); |
121 | 121 |
122 // Create a |dialog| window Widget with the specified |context| or |parent|. | 122 // Create a |dialog| window Widget with the specified |context| or |parent|. |
123 static Widget* CreateDialogWidget(DialogDelegateView* dialog, | 123 static Widget* CreateDialogWidget(DialogDelegateView* dialog, |
124 gfx::NativeWindow context, | 124 gfx::NativeWindow context, |
125 gfx::NativeWindow parent); | 125 gfx::NativeWindow parent); |
126 | 126 |
127 // Overridden from DialogDelegate: | 127 // Overridden from DialogDelegate: |
| 128 virtual void DeleteDelegate() OVERRIDE; |
128 virtual Widget* GetWidget() OVERRIDE; | 129 virtual Widget* GetWidget() OVERRIDE; |
129 virtual const Widget* GetWidget() const OVERRIDE; | 130 virtual const Widget* GetWidget() const OVERRIDE; |
130 virtual View* GetContentsView() OVERRIDE; | 131 virtual View* GetContentsView() OVERRIDE; |
131 | 132 |
132 private: | 133 private: |
133 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); | 134 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); |
134 }; | 135 }; |
135 | 136 |
136 } // namespace views | 137 } // namespace views |
137 | 138 |
138 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ | 139 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ |
OLD | NEW |