| 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_LOGIN_HELP_APP_LAUNCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" | 13 #include "chrome/browser/chromeos/login/ui/login_web_dialog.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 | 15 |
| 16 class Profile; | 16 class Profile; |
| 17 | 17 |
| 18 namespace chromeos { | 18 namespace chromeos { |
| 19 | 19 |
| 20 // Provides help content during OOBE / login. | 20 // Provides help content during OOBE / login. |
| 21 // Based on connectivity state (offline/online) shows help topic dialog | 21 // Based on connectivity state (offline/online) shows help topic dialog |
| 22 // or launches HelpApp in BWSI mode. | 22 // or launches HelpApp in BWSI mode. |
| 23 class HelpAppLauncher : public base::RefCountedThreadSafe<HelpAppLauncher> { | 23 class HelpAppLauncher : public base::RefCountedThreadSafe<HelpAppLauncher> { |
| 24 public: | 24 public: |
| 25 // IDs of help topics available from HelpApp. | 25 // IDs of help topics available from HelpApp. |
| 26 enum HelpTopic { | 26 enum HelpTopic { |
| 27 // Showed on basic connectivity issues. | |
| 28 HELP_CONNECTIVITY = 188752, | |
| 29 // Showed at EULA screen as "Learn more" about stats/crash reports. | 27 // Showed at EULA screen as "Learn more" about stats/crash reports. |
| 30 HELP_STATS_USAGE = 183078, | 28 HELP_STATS_USAGE = 183078, |
| 31 // Showed whenever there're troubles signing in. | 29 // Showed whenever there're troubles signing in. |
| 32 HELP_CANT_ACCESS_ACCOUNT = 188036, | 30 HELP_CANT_ACCESS_ACCOUNT = 188036, |
| 33 // Showed in case when account was disabled. | 31 // Showed in case when account was disabled. |
| 34 HELP_ACCOUNT_DISABLED = 188756, | 32 HELP_ACCOUNT_DISABLED = 188756, |
| 35 // Showed in case when hosted account is used. | |
| 36 HELP_HOSTED_ACCOUNT = 1054228, | |
| 37 // Showed as "Learn more" about enterprise enrolled devices. | 33 // Showed as "Learn more" about enterprise enrolled devices. |
| 38 HELP_ENTERPRISE = 2535613, | 34 HELP_ENTERPRISE = 2535613, |
| 39 // Shown at reset screen as "Learn more" about powerwash/rollback options. | 35 // Shown at reset screen as "Learn more" about powerwash/rollback options. |
| 40 HELP_POWERWASH = 183084, | 36 HELP_POWERWASH = 183084, |
| 41 // Shown as "Learn more" about the device attributes. | 37 // Shown as "Learn more" about the device attributes. |
| 42 HELP_DEVICE_ATTRIBUTES = 6218780, | 38 HELP_DEVICE_ATTRIBUTES = 6218780, |
| 43 }; | 39 }; |
| 44 | 40 |
| 45 // Parent window is used to show dialog. | 41 // Parent window is used to show dialog. |
| 46 explicit HelpAppLauncher(gfx::NativeWindow parent_window); | 42 explicit HelpAppLauncher(gfx::NativeWindow parent_window); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 59 | 55 |
| 60 // Parent window which is passed to help dialog. | 56 // Parent window which is passed to help dialog. |
| 61 gfx::NativeWindow parent_window_; | 57 gfx::NativeWindow parent_window_; |
| 62 | 58 |
| 63 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher); | 59 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher); |
| 64 }; | 60 }; |
| 65 | 61 |
| 66 } // namespace chromeos | 62 } // namespace chromeos |
| 67 | 63 |
| 68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ | 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ |
| OLD | NEW |