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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Showed whenever there're troubles signing in (online case). | 31 // Showed whenever there're troubles signing in (online case). |
32 HELP_CANT_ACCESS_ACCOUNT = 188036, | 32 HELP_CANT_ACCESS_ACCOUNT = 188036, |
33 // Showed in case when account was disabled. | 33 // Showed in case when account was disabled. |
34 HELP_ACCOUNT_DISABLED = 188756, | 34 HELP_ACCOUNT_DISABLED = 188756, |
35 // Showed in case when hosted account is used. | 35 // Showed in case when hosted account is used. |
36 HELP_HOSTED_ACCOUNT = 1054228, | 36 HELP_HOSTED_ACCOUNT = 1054228, |
37 // Showed as "Learn more" about enterprise enrolled devices. | 37 // Showed as "Learn more" about enterprise enrolled devices. |
38 HELP_ENTERPRISE = 2535613, | 38 HELP_ENTERPRISE = 2535613, |
39 // Shown at reset screen as "Learn more" about powerwash/rollback options. | 39 // Shown at reset screen as "Learn more" about powerwash/rollback options. |
40 HELP_POWERWASH = 183084, | 40 HELP_POWERWASH = 183084, |
| 41 // Shown at enable debugging screen as "Learn more" about developer options. |
| 42 // TODO(zelidrag): http://crbug.com/431950, show the link once we |
| 43 // create HC article. |
| 44 HELP_ENABLE_DEBUGGING = -1, |
41 }; | 45 }; |
42 | 46 |
43 // Parent window is used to show dialog. | 47 // Parent window is used to show dialog. |
44 explicit HelpAppLauncher(gfx::NativeWindow parent_window); | 48 explicit HelpAppLauncher(gfx::NativeWindow parent_window); |
45 | 49 |
46 // Shows specified help topic. | 50 // Shows specified help topic. |
47 void ShowHelpTopic(HelpTopic help_topic_id); | 51 void ShowHelpTopic(HelpTopic help_topic_id); |
48 | 52 |
49 protected: | 53 protected: |
50 virtual ~HelpAppLauncher(); | 54 virtual ~HelpAppLauncher(); |
51 | 55 |
52 private: | 56 private: |
53 friend class base::RefCountedThreadSafe<HelpAppLauncher>; | 57 friend class base::RefCountedThreadSafe<HelpAppLauncher>; |
54 | 58 |
55 // Shows help topic dialog for specified GURL. | 59 // Shows help topic dialog for specified GURL. |
56 void ShowHelpTopicDialog(Profile* profile, const GURL& topic_url); | 60 void ShowHelpTopicDialog(Profile* profile, const GURL& topic_url); |
57 | 61 |
58 // Parent window which is passed to help dialog. | 62 // Parent window which is passed to help dialog. |
59 gfx::NativeWindow parent_window_; | 63 gfx::NativeWindow parent_window_; |
60 | 64 |
61 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher); | 65 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher); |
62 }; | 66 }; |
63 | 67 |
64 } // namespace chromeos | 68 } // namespace chromeos |
65 | 69 |
66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ | 70 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ |
OLD | NEW |