OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_ |
| 6 #define CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" |
| 13 #include "chrome/test/live_sync/live_sync_test.h" |
| 14 |
| 15 class Profile; |
| 16 |
| 17 namespace themes_helper { |
| 18 |
| 19 // Gets the unique ID of the custom theme with the given index. |
| 20 std::string GetCustomTheme(int index) WARN_UNUSED_RESULT; |
| 21 |
| 22 // Gets the ID of |profile|'s theme. |
| 23 std::string GetThemeID(Profile* profile) WARN_UNUSED_RESULT; |
| 24 |
| 25 // Returns true iff |profile| is using a custom theme. |
| 26 bool UsingCustomTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 27 |
| 28 // Returns true iff |profile| is using the default theme. |
| 29 bool UsingDefaultTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 30 |
| 31 // Returns true iff |profile| is using the native theme. |
| 32 bool UsingNativeTheme(Profile* profile) WARN_UNUSED_RESULT; |
| 33 |
| 34 // Returns true iff a theme with the given ID is pending install in |
| 35 // |profile|. |
| 36 bool ThemeIsPendingInstall( |
| 37 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; |
| 38 |
| 39 // Returns true iff |profile|'s current theme is the given |
| 40 // custom theme or if the given theme is pending install. |
| 41 bool HasOrWillHaveCustomTheme( |
| 42 Profile* profile, const std::string& id) WARN_UNUSED_RESULT; |
| 43 |
| 44 // Sets |profile| to use the custom theme with the given index. |
| 45 void UseCustomTheme(Profile* profile, int index); |
| 46 |
| 47 // Sets |profile| to use the default theme. |
| 48 void UseDefaultTheme(Profile* profile); |
| 49 |
| 50 // Sets |profile| to use the native theme. |
| 51 void UseNativeTheme(Profile* profile); |
| 52 |
| 53 } // namespace themes_helper |
| 54 |
| 55 #endif // CHROME_TEST_LIVE_SYNC_THEMES_HELPER_H_ |
OLD | NEW |