| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |