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

Side by Side Diff: ui/native_theme/native_theme_aura.cc

Issue 143953007: Changes look for scrollbars on windows (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 11 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 | « ui/native_theme/native_theme_aura.h ('k') | ui/native_theme/native_theme_aurawin.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/native_theme/native_theme_aura.h" 5 #include "ui/native_theme/native_theme_aura.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "grit/ui_resources.h" 8 #include "grit/ui_resources.h"
9 #include "ui/base/layout.h" 9 #include "ui/base/layout.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/gfx/image/image_skia.h" 11 #include "ui/gfx/image/image_skia.h"
12 #include "ui/gfx/path.h" 12 #include "ui/gfx/path.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/size.h"
15 #include "ui/gfx/skbitmap_operations.h" 15 #include "ui/gfx/skbitmap_operations.h"
16 #include "ui/native_theme/common_theme.h" 16 #include "ui/native_theme/common_theme.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 #if !defined(OS_WIN)
20 // static 21 // static
21 NativeTheme* NativeTheme::instance() { 22 NativeTheme* NativeTheme::instance() {
22 return NativeThemeAura::instance(); 23 return NativeThemeAura::instance();
23 } 24 }
24 25
25 // static 26 // static
26 NativeThemeAura* NativeThemeAura::instance() { 27 NativeThemeAura* NativeThemeAura::instance() {
27 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ()); 28 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ());
28 return &s_native_theme; 29 return &s_native_theme;
29 } 30 }
31 #endif
30 32
31 NativeThemeAura::NativeThemeAura() { 33 NativeThemeAura::NativeThemeAura() {
32 // We don't draw scrollbar buttons. 34 // We don't draw scrollbar buttons.
33 set_scrollbar_button_length(0); 35 set_scrollbar_button_length(0);
34 } 36 }
35 37
36 NativeThemeAura::~NativeThemeAura() { 38 NativeThemeAura::~NativeThemeAura() {
37 } 39 }
38 40
39 void NativeThemeAura::PaintMenuPopupBackground( 41 void NativeThemeAura::PaintMenuPopupBackground(
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 DrawTiledImage(canvas, *center, 217 DrawTiledImage(canvas, *center,
216 0, 0, 1.0, 1.0, 218 0, 0, 1.0, 1.0,
217 rect.x() + left->width(), rect.y(), 219 rect.x() + left->width(), rect.y(),
218 rect.width() - left->width() - right->width(), 220 rect.width() - left->width() - right->width(),
219 center->height()); 221 center->height());
220 } 222 }
221 } 223 }
222 } 224 }
223 225
224 } // namespace ui 226 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura.h ('k') | ui/native_theme/native_theme_aurawin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698