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

Side by Side Diff: chrome/browser/ntp_background_util.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/notifications/notification_test_util.h ('k') | chrome/browser/page_info_model.h » ('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) 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/ntp_background_util.h" 5 #include "chrome/browser/ntp_background_util.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/themes/browser_theme_provider.h" 8 #include "chrome/browser/themes/browser_theme_provider.h"
9 #include "gfx/canvas.h"
10 #include "gfx/rect.h"
11 #include "gfx/skia_util.h"
12 #include "grit/theme_resources.h" 9 #include "grit/theme_resources.h"
13 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/gfx/canvas.h"
12 #include "ui/gfx/rect.h"
13 #include "ui/gfx/skia_util.h"
14 14
15 namespace { 15 namespace {
16 16
17 void PaintThemeBackground( 17 void PaintThemeBackground(
18 gfx::Canvas* canvas, SkBitmap* ntp_background, int tiling, int alignment, 18 gfx::Canvas* canvas, SkBitmap* ntp_background, int tiling, int alignment,
19 const gfx::Rect& area, int tab_contents_height) { 19 const gfx::Rect& area, int tab_contents_height) {
20 int x_pos = 0; 20 int x_pos = 0;
21 int y_pos = 0; 21 int y_pos = 0;
22 int width = area.width() + ntp_background->width(); 22 int width = area.width() + ntp_background->width();
23 int height = area.height() + ntp_background->height(); 23 int height = area.height() + ntp_background->height();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 int alignment; 70 int alignment;
71 if (tp->GetDisplayProperty(BrowserThemeProvider::NTP_BACKGROUND_ALIGNMENT, 71 if (tp->GetDisplayProperty(BrowserThemeProvider::NTP_BACKGROUND_ALIGNMENT,
72 &alignment)) { 72 &alignment)) {
73 SkBitmap* ntp_background = tp->GetBitmapNamed(IDR_THEME_NTP_BACKGROUND); 73 SkBitmap* ntp_background = tp->GetBitmapNamed(IDR_THEME_NTP_BACKGROUND);
74 74
75 PaintThemeBackground( 75 PaintThemeBackground(
76 canvas, ntp_background, tiling, alignment, area, tab_contents_height); 76 canvas, ntp_background, tiling, alignment, area, tab_contents_height);
77 } 77 }
78 } 78 }
79 } 79 }
OLDNEW
« no previous file with comments | « chrome/browser/notifications/notification_test_util.h ('k') | chrome/browser/page_info_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698