| 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 #include "chrome/browser/themes/theme_service.h" | 5 #include "chrome/browser/themes/theme_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "grit/ui_resources.h" | 23 #include "grit/ui_resources.h" |
| 24 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
| 25 #include "ui/gfx/image/image_skia.h" | 25 #include "ui/gfx/image/image_skia.h" |
| 26 | 26 |
| 27 #if defined(OS_WIN) && !defined(USE_AURA) | 27 #if defined(OS_WIN) && !defined(USE_AURA) |
| 28 #include "ui/views/widget/native_widget_win.h" | 28 #include "ui/views/widget/native_widget_win.h" |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 using content::BrowserThread; | 31 using content::BrowserThread; |
| 32 using content::UserMetricsAction; | 32 using content::UserMetricsAction; |
| 33 using extensions::Extension; |
| 33 using ui::ResourceBundle; | 34 using ui::ResourceBundle; |
| 34 | 35 |
| 35 // Strings used in alignment properties. | 36 // Strings used in alignment properties. |
| 36 const char* ThemeService::kAlignmentCenter = "center"; | 37 const char* ThemeService::kAlignmentCenter = "center"; |
| 37 const char* ThemeService::kAlignmentTop = "top"; | 38 const char* ThemeService::kAlignmentTop = "top"; |
| 38 const char* ThemeService::kAlignmentBottom = "bottom"; | 39 const char* ThemeService::kAlignmentBottom = "bottom"; |
| 39 const char* ThemeService::kAlignmentLeft = "left"; | 40 const char* ThemeService::kAlignmentLeft = "left"; |
| 40 const char* ThemeService::kAlignmentRight = "right"; | 41 const char* ThemeService::kAlignmentRight = "right"; |
| 41 | 42 |
| 42 // Strings used in background tiling repetition properties. | 43 // Strings used in background tiling repetition properties. |
| (...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 void ThemeService::OnInfobarDisplayed() { | 681 void ThemeService::OnInfobarDisplayed() { |
| 681 number_of_infobars_++; | 682 number_of_infobars_++; |
| 682 } | 683 } |
| 683 | 684 |
| 684 void ThemeService::OnInfobarDestroyed() { | 685 void ThemeService::OnInfobarDestroyed() { |
| 685 number_of_infobars_--; | 686 number_of_infobars_--; |
| 686 | 687 |
| 687 if (number_of_infobars_ == 0) | 688 if (number_of_infobars_ == 0) |
| 688 RemoveUnusedThemes(); | 689 RemoveUnusedThemes(); |
| 689 } | 690 } |
| OLD | NEW |