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

Side by Side Diff: chrome/browser/dom_ui/dom_ui_theme_source.cc

Issue 243076: Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classes... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/dom_ui/dom_ui_theme_source.h" 5 #include "chrome/browser/dom_ui/dom_ui_theme_source.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "app/theme_provider.h" 9 #include "app/theme_provider.h"
10 #include "base/gfx/png_encoder.h"
11 #include "base/message_loop.h" 10 #include "base/message_loop.h"
12 #include "base/string_util.h" 11 #include "base/string_util.h"
13 #include "base/time.h" 12 #include "base/time.h"
14 #include "chrome/browser/browser_theme_provider.h" 13 #include "chrome/browser/browser_theme_provider.h"
15 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
16 #include "chrome/browser/theme_resources_util.h" 15 #include "chrome/browser/theme_resources_util.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
20 #include "grit/browser_resources.h" 19 #include "grit/browser_resources.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 return BrowserThemeProvider::AlignmentToString(alignment); 292 return BrowserThemeProvider::AlignmentToString(alignment);
294 } 293 }
295 294
296 std::string DOMUIThemeSource::GetNewTabBackgroundTilingCSS() { 295 std::string DOMUIThemeSource::GetNewTabBackgroundTilingCSS() {
297 int repeat_mode; 296 int repeat_mode;
298 profile_->GetThemeProvider()->GetDisplayProperty( 297 profile_->GetThemeProvider()->GetDisplayProperty(
299 BrowserThemeProvider::NTP_BACKGROUND_TILING, &repeat_mode); 298 BrowserThemeProvider::NTP_BACKGROUND_TILING, &repeat_mode);
300 return BrowserThemeProvider::TilingToString(repeat_mode); 299 return BrowserThemeProvider::TilingToString(repeat_mode);
301 } 300 }
302 301
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698