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

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

Issue 8742030: views: Move view.h to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and fix conflicts Created 9 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
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_view.h ('k') | chrome/browser/ui/views/toolbar_view.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/views/theme_background.h" 5 #include "chrome/browser/ui/views/theme_background.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/themes/theme_service.h" 8 #include "chrome/browser/themes/theme_service.h"
9 #include "chrome/browser/themes/theme_service_factory.h" 9 #include "chrome/browser/themes/theme_service_factory.h"
10 #include "chrome/browser/ui/views/frame/browser_view.h" 10 #include "chrome/browser/ui/views/frame/browser_view.h"
11 #include "grit/generated_resources.h" 11 #include "grit/generated_resources.h"
12 #include "grit/theme_resources.h" 12 #include "grit/theme_resources.h"
13 #include "grit/theme_resources_standard.h" 13 #include "grit/theme_resources_standard.h"
14 #include "grit/ui_resources.h" 14 #include "grit/ui_resources.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/gfx/canvas.h" 16 #include "ui/gfx/canvas.h"
17 #include "views/view.h" 17 #include "ui/views/view.h"
18 18
19 ThemeBackground::ThemeBackground(BrowserView* browser_view) 19 ThemeBackground::ThemeBackground(BrowserView* browser_view)
20 : browser_view_(browser_view) { 20 : browser_view_(browser_view) {
21 } 21 }
22 22
23 void ThemeBackground::Paint(gfx::Canvas* canvas, views::View* view) const { 23 void ThemeBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
24 SkBitmap* background; 24 SkBitmap* background;
25 25
26 // Never theme app and popup windows. 26 // Never theme app and popup windows.
27 if (!browser_view_->IsBrowserTypeNormal()) { 27 if (!browser_view_->IsBrowserTypeNormal()) {
(...skipping 26 matching lines...) Expand all
54 // TODO(oshima): Remove this once we fully migrated to views. 54 // TODO(oshima): Remove this once we fully migrated to views.
55 // See http://crbug.com/28580. 55 // See http://crbug.com/28580.
56 if (browser_view_->IsMaximized()) { 56 if (browser_view_->IsMaximized()) {
57 origin.Offset(0, kCustomFrameBackgroundVerticalOffset + 1); 57 origin.Offset(0, kCustomFrameBackgroundVerticalOffset + 1);
58 } 58 }
59 #endif 59 #endif
60 canvas->TileImageInt(*background, 60 canvas->TileImageInt(*background,
61 origin.x(), origin.y(), 0, 0, 61 origin.x(), origin.y(), 0, 0,
62 view->width(), view->height()); 62 view->width(), view->height());
63 } 63 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/dragged_tab_view.h ('k') | chrome/browser/ui/views/toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698