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" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "chrome/browser/prefs/pref_service.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/themes/browser_theme_pack.h" | 15 #include "chrome/browser/themes/browser_theme_pack.h" |
16 #include "chrome/common/chrome_constants.h" | 16 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/common/chrome_notification_types.h" | 17 #include "chrome/common/chrome_notification_types.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
20 #include "content/public/browser/user_metrics.h" | 20 #include "content/public/browser/user_metrics.h" |
21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
22 #include "grit/theme_resources_standard.h" | |
23 #include "grit/ui_resources.h" | 22 #include "grit/ui_resources.h" |
24 #include "grit/ui_resources_standard.h" | |
25 #include "ui/base/layout.h" | 23 #include "ui/base/layout.h" |
26 #include "ui/base/resource/resource_bundle.h" | 24 #include "ui/base/resource/resource_bundle.h" |
27 #include "ui/gfx/image/image_skia.h" | 25 #include "ui/gfx/image/image_skia.h" |
28 | 26 |
29 #if defined(OS_WIN) && !defined(USE_AURA) | 27 #if defined(OS_WIN) && !defined(USE_AURA) |
30 #include "ui/views/widget/native_widget_win.h" | 28 #include "ui/views/widget/native_widget_win.h" |
31 #endif | 29 #endif |
32 | 30 |
33 #if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX) | 31 #if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX) |
34 #include "ui/base/linux_ui.h" | 32 #include "ui/base/linux_ui.h" |
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 void ThemeService::OnInfobarDisplayed() { | 711 void ThemeService::OnInfobarDisplayed() { |
714 number_of_infobars_++; | 712 number_of_infobars_++; |
715 } | 713 } |
716 | 714 |
717 void ThemeService::OnInfobarDestroyed() { | 715 void ThemeService::OnInfobarDestroyed() { |
718 number_of_infobars_--; | 716 number_of_infobars_--; |
719 | 717 |
720 if (number_of_infobars_ == 0) | 718 if (number_of_infobars_ == 0) |
721 RemoveUnusedThemes(); | 719 RemoveUnusedThemes(); |
722 } | 720 } |
OLD | NEW |