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

Side by Side Diff: chrome/browser/ui/views/theme_background.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/theme_background.h" 5 #include "chrome/browser/views/theme_background.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "chrome/browser/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/themes/browser_theme_provider.h" 9 #include "chrome/browser/themes/browser_theme_provider.h"
10 #include "chrome/browser/views/frame/browser_view.h" 10 #include "chrome/browser/views/frame/browser_view.h"
11 #include "gfx/canvas.h" 11 #include "gfx/canvas.h"
12 #include "grit/app_resources.h" 12 #include "grit/app_resources.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
15 #include "views/view.h" 15 #include "views/view.h"
16 16
17 ThemeBackground::ThemeBackground(BrowserView* browser_view) 17 ThemeBackground::ThemeBackground(BrowserView* browser_view)
18 : browser_view_(browser_view) { 18 : browser_view_(browser_view) {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // TODO(oshima): Remove this once we fully migrated to views. 51 // TODO(oshima): Remove this once we fully migrated to views.
52 // See http://crbug.com/28580. 52 // See http://crbug.com/28580.
53 if (browser_view_->IsMaximized()) { 53 if (browser_view_->IsMaximized()) {
54 origin.Offset(0, kCustomFrameBackgroundVerticalOffset + 1); 54 origin.Offset(0, kCustomFrameBackgroundVerticalOffset + 1);
55 } 55 }
56 #endif 56 #endif
57 canvas->TileImageInt(*background, 57 canvas->TileImageInt(*background,
58 origin.x(), origin.y(), 0, 0, 58 origin.x(), origin.y(), 0, 0,
59 view->width(), view->height()); 59 view->width(), view->height());
60 } 60 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698