| 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 "chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.h" | 5 #include "chrome/browser/ui/ash/multi_user/multi_user_warning_dialog.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | 10 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 // views::WidgetDelegate overrides. | 43 // views::WidgetDelegate overrides. |
| 44 ui::ModalType GetModalType() const override; | 44 ui::ModalType GetModalType() const override; |
| 45 | 45 |
| 46 // views::View overrides. | 46 // views::View overrides. |
| 47 gfx::Size GetPreferredSize() const override; | 47 gfx::Size GetPreferredSize() const override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 void InitDialog(); | 50 void InitDialog(); |
| 51 | 51 |
| 52 scoped_ptr<views::Checkbox> no_show_checkbox_; | 52 std::unique_ptr<views::Checkbox> no_show_checkbox_; |
| 53 const base::Callback<void(bool)> on_accept_; | 53 const base::Callback<void(bool)> on_accept_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(TeleportWarningView); | 55 DISALLOW_COPY_AND_ASSIGN(TeleportWarningView); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 //////////////////////////////////////////////////////////////////////////////// | 58 //////////////////////////////////////////////////////////////////////////////// |
| 59 // TeleportWarningView implementation. | 59 // TeleportWarningView implementation. |
| 60 | 60 |
| 61 TeleportWarningView::TeleportWarningView( | 61 TeleportWarningView::TeleportWarningView( |
| 62 const base::Callback<void(bool)>& on_accept) | 62 const base::Callback<void(bool)>& on_accept) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 //////////////////////////////////////////////////////////////////////////////// | 156 //////////////////////////////////////////////////////////////////////////////// |
| 157 // Factory function. | 157 // Factory function. |
| 158 | 158 |
| 159 void ShowMultiprofilesWarningDialog( | 159 void ShowMultiprofilesWarningDialog( |
| 160 const base::Callback<void(bool)>& on_accept) { | 160 const base::Callback<void(bool)>& on_accept) { |
| 161 TeleportWarningView::ShowDialog(on_accept); | 161 TeleportWarningView::ShowDialog(on_accept); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace chromeos | 164 } // namespace chromeos |
| OLD | NEW |