| 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 CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | |
| 10 | 9 |
| 11 #include "base/callback_forward.h" | |
| 12 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| 13 | 11 |
| 14 class Profile; | |
| 15 | |
| 16 namespace chromeos { | 12 namespace chromeos { |
| 17 namespace enrollment { | 13 namespace enrollment { |
| 18 | 14 |
| 19 // Returns true if a dialog was successfully created. | 15 // Creates and shows the dialog for certificate-based network enrollment. If the |
| 16 // |owning_window| is null the dialog is placed in the appropriate modal dialog |
| 17 // dialog container on the primary display. Returns true if a dialog was |
| 18 // successfully created. |
| 20 bool CreateDialog(const std::string& service_path, | 19 bool CreateDialog(const std::string& service_path, |
| 21 gfx::NativeWindow owning_window); | 20 gfx::NativeWindow owning_window); |
| 22 | 21 |
| 23 } // namespace enrollment | 22 } // namespace enrollment |
| 24 } // namespace chromeos | 23 } // namespace chromeos |
| 25 | 24 |
| 26 #endif // CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ | 25 #endif // CHROME_BROWSER_CHROMEOS_ENROLLMENT_DIALOG_VIEW_H_ |
| OLD | NEW |