Lines Matching refs:ThemeService
27 const char* ThemeService::kAlignmentTop = "top";
28 const char* ThemeService::kAlignmentBottom = "bottom";
29 const char* ThemeService::kAlignmentLeft = "left";
30 const char* ThemeService::kAlignmentRight = "right";
33 const char* ThemeService::kTilingNoRepeat = "no-repeat";
34 const char* ThemeService::kTilingRepeatX = "repeat-x";
35 const char* ThemeService::kTilingRepeatY = "repeat-y";
36 const char* ThemeService::kTilingRepeat = "repeat";
40 const char* ThemeService::kDefaultThemeID = "";
118 ThemeService::ALIGN_BOTTOM;
120 ThemeService::NO_REPEAT;
192 bool ThemeService::IsThemeableImage(int resource_id) {
196 ThemeService::ThemeService()
204 ThemeService::~ThemeService() {
208 void ThemeService::Init(Profile* profile) {
223 SkBitmap* ThemeService::GetBitmapNamed(int id) const {
237 SkColor ThemeService::GetColor(int id) const {
262 bool ThemeService::GetDisplayProperty(int id, int* result) const {
269 bool ThemeService::ShouldUseNativeFrame() const {
279 bool ThemeService::HasCustomImage(int id) const {
289 RefCountedMemory* ThemeService::GetRawData(int id) const {
305 void ThemeService::SetTheme(const Extension* extension) {
319 void ThemeService::RemoveUnusedThemes() {
338 void ThemeService::UseDefaultTheme() {
344 void ThemeService::SetNativeTheme() {
348 bool ThemeService::UsingDefaultTheme() {
350 return id == ThemeService::kDefaultThemeID ||
354 std::string ThemeService::GetThemeID() const {
359 std::string ThemeService::AlignmentToString(int alignment) {
364 if (alignment & ThemeService::ALIGN_TOP)
366 else if (alignment & ThemeService::ALIGN_BOTTOM)
369 if (alignment & ThemeService::ALIGN_LEFT)
371 else if (alignment & ThemeService::ALIGN_RIGHT)
382 int ThemeService::StringToAlignment(const std::string& alignment) {
393 alignment_mask |= ThemeService::ALIGN_TOP;
395 alignment_mask |= ThemeService::ALIGN_BOTTOM;
398 alignment_mask |= ThemeService::ALIGN_LEFT;
400 alignment_mask |= ThemeService::ALIGN_RIGHT;
406 std::string ThemeService::TilingToString(int tiling) {
408 if (tiling == ThemeService::REPEAT_X)
410 if (tiling == ThemeService::REPEAT_Y)
412 if (tiling == ThemeService::REPEAT)
418 int ThemeService::StringToTiling(const std::string& tiling) {
422 return ThemeService::REPEAT_X;
424 return ThemeService::REPEAT_Y;
426 return ThemeService::REPEAT;
428 return ThemeService::NO_REPEAT;
432 color_utils::HSL ThemeService::GetDefaultTint(int id) {
453 SkColor ThemeService::GetDefaultColor(int id) {
512 bool ThemeService::GetDefaultDisplayProperty(int id, int* result) {
529 const std::set<int>& ThemeService::GetTintableToolbarButtons() {
540 color_utils::HSL ThemeService::GetTint(int id) const {
550 void ThemeService::ClearAllThemeData() {
559 void ThemeService::LoadThemePrefs() {
597 void ThemeService::NotifyThemeChanged() {
602 Source<ThemeService>(this),
610 void ThemeService::FreePlatformCaches() {
615 void ThemeService::Observe(NotificationType type,
626 void ThemeService::SavePackName(const FilePath& pack_path) {
631 void ThemeService::SaveThemeID(const std::string& id) {
635 void ThemeService::BuildFromExtension(const Extension* extension) {
654 void ThemeService::OnInfobarDisplayed() {
658 void ThemeService::OnInfobarDestroyed() {