Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: chrome/browser/themes/browser_theme_pack.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/browser_theme_pack.h" 5 #include "chrome/browser/themes/browser_theme_pack.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/memory/ref_counted_memory.h" 9 #include "base/memory/ref_counted_memory.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 11 matching lines...) Expand all
22 #include "net/base/net_errors.h" 22 #include "net/base/net_errors.h"
23 #include "third_party/skia/include/core/SkCanvas.h" 23 #include "third_party/skia/include/core/SkCanvas.h"
24 #include "ui/base/resource/data_pack.h" 24 #include "ui/base/resource/data_pack.h"
25 #include "ui/base/resource/resource_bundle.h" 25 #include "ui/base/resource/resource_bundle.h"
26 #include "ui/gfx/codec/png_codec.h" 26 #include "ui/gfx/codec/png_codec.h"
27 #include "ui/gfx/image/image.h" 27 #include "ui/gfx/image/image.h"
28 #include "ui/gfx/image/image_skia.h" 28 #include "ui/gfx/image/image_skia.h"
29 #include "ui/gfx/skbitmap_operations.h" 29 #include "ui/gfx/skbitmap_operations.h"
30 30
31 using content::BrowserThread; 31 using content::BrowserThread;
32 using extensions::Extension;
32 33
33 namespace { 34 namespace {
34 35
35 // Version number of the current theme pack. We just throw out and rebuild 36 // Version number of the current theme pack. We just throw out and rebuild
36 // theme packs that aren't int-equal to this. Increment this number if you 37 // theme packs that aren't int-equal to this. Increment this number if you
37 // change default theme assets. 38 // change default theme assets.
38 const int kThemePackVersion = 22; 39 const int kThemePackVersion = 22;
39 40
40 // IDs that are in the DataPack won't clash with the positive integer 41 // IDs that are in the DataPack won't clash with the positive integer
41 // uint16. kHeaderID should always have the maximum value because we want the 42 // uint16. kHeaderID should always have the maximum value because we want the
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 hsl.h = tints_[i].h; 1075 hsl.h = tints_[i].h;
1075 hsl.s = tints_[i].s; 1076 hsl.s = tints_[i].s;
1076 hsl.l = tints_[i].l; 1077 hsl.l = tints_[i].l;
1077 return hsl; 1078 return hsl;
1078 } 1079 }
1079 } 1080 }
1080 } 1081 }
1081 1082
1082 return ThemeService::GetDefaultTint(id); 1083 return ThemeService::GetDefaultTint(id);
1083 } 1084 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/browser_theme_pack.h ('k') | chrome/browser/themes/browser_theme_pack_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698