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 #include "ui/views/window/dialog_delegate.h" | 5 #include "ui/views/window/dialog_delegate.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "grit/ui_strings.h" | 8 #include "grit/ui_strings.h" |
9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
10 #include "ui/views/bubble/bubble_border.h" | 10 #include "ui/views/bubble/bubble_border.h" |
11 #include "ui/views/bubble/bubble_frame_view.h" | 11 #include "ui/views/bubble/bubble_frame_view.h" |
12 #include "ui/views/controls/button/label_button.h" | 12 #include "ui/views/controls/button/label_button.h" |
13 #include "ui/views/corewm/shadow_types.h" | |
14 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
15 #include "ui/views/widget/widget_observer.h" | 14 #include "ui/views/widget/widget_observer.h" |
16 #include "ui/views/window/dialog_client_view.h" | 15 #include "ui/views/window/dialog_client_view.h" |
| 16 #include "ui/wm/core/shadow_types.h" |
17 | 17 |
18 namespace views { | 18 namespace views { |
19 | 19 |
20 //////////////////////////////////////////////////////////////////////////////// | 20 //////////////////////////////////////////////////////////////////////////////// |
21 // DialogDelegate: | 21 // DialogDelegate: |
22 | 22 |
23 DialogDelegate::~DialogDelegate() { | 23 DialogDelegate::~DialogDelegate() { |
24 } | 24 } |
25 | 25 |
26 // static | 26 // static |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 | 207 |
208 const Widget* DialogDelegateView::GetWidget() const { | 208 const Widget* DialogDelegateView::GetWidget() const { |
209 return View::GetWidget(); | 209 return View::GetWidget(); |
210 } | 210 } |
211 | 211 |
212 View* DialogDelegateView::GetContentsView() { | 212 View* DialogDelegateView::GetContentsView() { |
213 return this; | 213 return this; |
214 } | 214 } |
215 | 215 |
216 } // namespace views | 216 } // namespace views |
OLD | NEW |