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

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

Issue 2911773002: Clean up unused grit header includes in chrome/ (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « chrome/browser/sync/sync_ui_util_unittest.cc ('k') | chrome/browser/themes/theme_properties.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 19 matching lines...) Expand all
30 #include "ui/base/resource/data_pack.h" 30 #include "ui/base/resource/data_pack.h"
31 #include "ui/gfx/canvas.h" 31 #include "ui/gfx/canvas.h"
32 #include "ui/gfx/codec/png_codec.h" 32 #include "ui/gfx/codec/png_codec.h"
33 #include "ui/gfx/geometry/safe_integer_conversions.h" 33 #include "ui/gfx/geometry/safe_integer_conversions.h"
34 #include "ui/gfx/geometry/size_conversions.h" 34 #include "ui/gfx/geometry/size_conversions.h"
35 #include "ui/gfx/image/canvas_image_source.h" 35 #include "ui/gfx/image/canvas_image_source.h"
36 #include "ui/gfx/image/image.h" 36 #include "ui/gfx/image/image.h"
37 #include "ui/gfx/image/image_skia.h" 37 #include "ui/gfx/image/image_skia.h"
38 #include "ui/gfx/image/image_skia_operations.h" 38 #include "ui/gfx/image/image_skia_operations.h"
39 #include "ui/gfx/skia_util.h" 39 #include "ui/gfx/skia_util.h"
40 #include "ui/resources/grit/ui_resources.h"
41 40
42 using content::BrowserThread; 41 using content::BrowserThread;
43 using extensions::Extension; 42 using extensions::Extension;
44 43
45 namespace { 44 namespace {
46 45
47 // Version number of the current theme pack. We just throw out and rebuild 46 // Version number of the current theme pack. We just throw out and rebuild
48 // theme packs that aren't int-equal to this. Increment this number if you 47 // theme packs that aren't int-equal to this. Increment this number if you
49 // change default theme assets or if you need themes to recreate their generated 48 // change default theme assets or if you need themes to recreate their generated
50 // images (which are cached). 49 // images (which are cached).
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 false, 1430 false,
1432 &bitmap_data)) { 1431 &bitmap_data)) {
1433 NOTREACHED() << "Unable to encode theme image for prs_id=" 1432 NOTREACHED() << "Unable to encode theme image for prs_id="
1434 << prs_id << " for scale_factor=" << scale_factors_[i]; 1433 << prs_id << " for scale_factor=" << scale_factors_[i];
1435 break; 1434 break;
1436 } 1435 }
1437 image_memory_[scaled_raw_id] = 1436 image_memory_[scaled_raw_id] =
1438 base::RefCountedBytes::TakeVector(&bitmap_data); 1437 base::RefCountedBytes::TakeVector(&bitmap_data);
1439 } 1438 }
1440 } 1439 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util_unittest.cc ('k') | chrome/browser/themes/theme_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698