| 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_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/sync/test/integration/sync_test.h" | 12 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 | 15 |
| 16 namespace themes_helper { | 16 namespace themes_helper { |
| 17 | 17 |
| 18 // Gets the unique ID of the custom theme with the given index. | 18 // Gets the unique ID of the custom theme with the given index. |
| 19 std::string GetCustomTheme(int index) WARN_UNUSED_RESULT; | 19 std::string GetCustomTheme(int index) WARN_UNUSED_RESULT; |
| 20 | 20 |
| 21 // Gets the ID of |profile|'s theme. | 21 // Gets the ID of |profile|'s theme. |
| 22 std::string GetThemeID(Profile* profile) WARN_UNUSED_RESULT; | 22 std::string GetThemeID(Profile* profile) WARN_UNUSED_RESULT; |
| 23 | 23 |
| 24 // Returns true iff |profile| is using a custom theme. | 24 // Returns true iff |profile| is using a custom theme. |
| 25 bool UsingCustomTheme(Profile* profile) WARN_UNUSED_RESULT; | 25 bool UsingCustomTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 26 | 26 |
| 27 // Returns true iff |profile| is using the default theme. | 27 // Returns true iff |profile| is using the default theme. |
| 28 bool UsingDefaultTheme(Profile* profile) WARN_UNUSED_RESULT; | 28 bool UsingDefaultTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 29 | 29 |
| 30 // Returns true iff |profile| is using the native theme. | 30 // Returns true iff |profile| is using the system theme. |
| 31 bool UsingNativeTheme(Profile* profile) WARN_UNUSED_RESULT; | 31 bool UsingSystemTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 32 | 32 |
| 33 // Returns true iff a theme with the given ID is pending install in | 33 // Returns true iff a theme with the given ID is pending install in |
| 34 // |profile|. | 34 // |profile|. |
| 35 bool ThemeIsPendingInstall( | 35 bool ThemeIsPendingInstall( |
| 36 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; | 36 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; |
| 37 | 37 |
| 38 // Returns true iff |profile|'s current theme is the given | 38 // Returns true iff |profile|'s current theme is the given |
| 39 // custom theme or if the given theme is pending install. | 39 // custom theme or if the given theme is pending install. |
| 40 bool HasOrWillHaveCustomTheme( | 40 bool HasOrWillHaveCustomTheme( |
| 41 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; | 41 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; |
| 42 | 42 |
| 43 // Sets |profile| to use the custom theme with the given index. | 43 // Sets |profile| to use the custom theme with the given index. |
| 44 void UseCustomTheme(Profile* profile, int index); | 44 void UseCustomTheme(Profile* profile, int index); |
| 45 | 45 |
| 46 // Sets |profile| to use the default theme. | 46 // Sets |profile| to use the default theme. |
| 47 void UseDefaultTheme(Profile* profile); | 47 void UseDefaultTheme(Profile* profile); |
| 48 | 48 |
| 49 // Sets |profile| to use the native theme. | 49 // Sets |profile| to use the system theme. |
| 50 void UseNativeTheme(Profile* profile); | 50 void UseSystemTheme(Profile* profile); |
| 51 | 51 |
| 52 } // namespace themes_helper | 52 } // namespace themes_helper |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ | 54 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_THEMES_HELPER_H_ |
| OLD | NEW |