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

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

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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/gl/gl_surface_mac.cc ('k') | ui/native_theme/native_theme_mac.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 <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "grit/ui_resources.h" 10 #include "grit/ui_resources.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const int kScrollbarOverlayThumbStrokeImages[9] = 60 const int kScrollbarOverlayThumbStrokeImages[9] =
61 IMAGE_GRID_NO_CENTER(IDR_SCROLLBAR_OVERLAY_THUMB_STROKE); 61 IMAGE_GRID_NO_CENTER(IDR_SCROLLBAR_OVERLAY_THUMB_STROKE);
62 62
63 const int kScrollbarOverlayThumbFillImages[9] = 63 const int kScrollbarOverlayThumbFillImages[9] =
64 IMAGE_GRID(IDR_SCROLLBAR_OVERLAY_THUMB_FILL); 64 IMAGE_GRID(IDR_SCROLLBAR_OVERLAY_THUMB_FILL);
65 65
66 const int kScrollbarTrackImages[9] = IMAGE_GRID(IDR_SCROLLBAR_BASE); 66 const int kScrollbarTrackImages[9] = IMAGE_GRID(IDR_SCROLLBAR_BASE);
67 67
68 } // namespace 68 } // namespace
69 69
70 #if !defined(OS_WIN) 70 #if !defined(OS_WIN) && !defined(OS_MACOSX)
71 // static 71 // static
72 NativeTheme* NativeTheme::instance() { 72 NativeTheme* NativeTheme::instance() {
73 return NativeThemeAura::instance(); 73 return NativeThemeAura::instance();
74 } 74 }
75 #endif
75 76
77 #if !defined(OS_WIN)
76 // static 78 // static
77 NativeThemeAura* NativeThemeAura::instance() { 79 NativeThemeAura* NativeThemeAura::instance() {
78 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ()); 80 CR_DEFINE_STATIC_LOCAL(NativeThemeAura, s_native_theme, ());
79 return &s_native_theme; 81 return &s_native_theme;
80 } 82 }
81 #endif 83 #endif
82 84
83 NativeThemeAura::NativeThemeAura() { 85 NativeThemeAura::NativeThemeAura() {
84 // We don't draw scrollbar buttons. 86 // We don't draw scrollbar buttons.
85 #if defined(OS_CHROMEOS) 87 #if defined(OS_CHROMEOS)
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 scoped_ptr<NineImagePainter> stroke_painter, 277 scoped_ptr<NineImagePainter> stroke_painter,
276 const uint8 stroke_alphas[kMaxState]) 278 const uint8 stroke_alphas[kMaxState])
277 : fill_painter(fill_painter.Pass()), 279 : fill_painter(fill_painter.Pass()),
278 fill_alphas(fill_alphas), 280 fill_alphas(fill_alphas),
279 stroke_painter(stroke_painter.Pass()), 281 stroke_painter(stroke_painter.Pass()),
280 stroke_alphas(stroke_alphas) {} 282 stroke_alphas(stroke_alphas) {}
281 283
282 NativeThemeAura::DualPainter::~DualPainter() {} 284 NativeThemeAura::DualPainter::~DualPainter() {}
283 285
284 } // namespace ui 286 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_mac.cc ('k') | ui/native_theme/native_theme_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698