OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "remoting/host/chromeos/message_box.h" | 5 #include "remoting/host/chromeos/message_box.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "ui/base/l10n/l10n_util.h" | 8 #include "ui/base/l10n/l10n_util.h" |
8 #include "ui/views/controls/message_box_view.h" | 9 #include "ui/views/controls/message_box_view.h" |
9 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
10 #include "ui/views/window/dialog_delegate.h" | 11 #include "ui/views/window/dialog_delegate.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 // MessageBox::Core creates the dialog using the views::DialogWidget. The | 15 // MessageBox::Core creates the dialog using the views::DialogWidget. The |
15 // DialogWidget is created by the caller but its lifetime is managed by the | 16 // DialogWidget is created by the caller but its lifetime is managed by the |
16 // NativeWidget. The DialogWidget communicates with the caller using the | 17 // NativeWidget. The DialogWidget communicates with the caller using the |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 } | 186 } |
186 | 187 |
187 void MessageBox::Hide() { | 188 void MessageBox::Hide() { |
188 DCHECK(thread_checker_.CalledOnValidThread()); | 189 DCHECK(thread_checker_.CalledOnValidThread()); |
189 if (core_) { | 190 if (core_) { |
190 core_->Hide(); | 191 core_->Hide(); |
191 } | 192 } |
192 } | 193 } |
193 | 194 |
194 } // namespace remoting | 195 } // namespace remoting |
OLD | NEW |