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

Side by Side Diff: ui/views/native_theme_painter.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « ui/views/native_theme_painter.h ('k') | ui/views/paint_lock.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 "views/native_theme_painter.h" 5 #include "ui/views/native_theme_painter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/base/animation/animation.h" 8 #include "ui/base/animation/animation.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 #include "ui/gfx/canvas_skia.h" 10 #include "ui/gfx/canvas_skia.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 #include "views/native_theme_delegate.h" 12 #include "ui/views/native_theme_delegate.h"
13 13
14 namespace views { 14 namespace views {
15 15
16 NativeThemePainter::NativeThemePainter(NativeThemeDelegate* delegate) 16 NativeThemePainter::NativeThemePainter(NativeThemeDelegate* delegate)
17 : delegate_(delegate) { 17 : delegate_(delegate) {
18 DCHECK(delegate_); 18 DCHECK(delegate_);
19 } 19 }
20 20
21 gfx::Size NativeThemePainter::GetPreferredSize() { 21 gfx::Size NativeThemePainter::GetPreferredSize() {
22 const gfx::NativeTheme* theme = gfx::NativeTheme::instance(); 22 const gfx::NativeTheme* theme = gfx::NativeTheme::instance();
(...skipping 24 matching lines...) Expand all
47 native_theme->Paint(canvas->GetSkCanvas(), part, state, rect, extra); 47 native_theme->Paint(canvas->GetSkCanvas(), part, state, rect, extra);
48 canvas->Restore(); 48 canvas->Restore();
49 } else { 49 } else {
50 gfx::NativeTheme::ExtraParams extra; 50 gfx::NativeTheme::ExtraParams extra;
51 gfx::NativeTheme::State state = delegate_->GetThemeState(&extra); 51 gfx::NativeTheme::State state = delegate_->GetThemeState(&extra);
52 native_theme->Paint(canvas->GetSkCanvas(), part, state, rect, extra); 52 native_theme->Paint(canvas->GetSkCanvas(), part, state, rect, extra);
53 } 53 }
54 } 54 }
55 55
56 } // namespace views 56 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/native_theme_painter.h ('k') | ui/views/paint_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698