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

Side by Side Diff: ui/native_theme/native_theme_mac.mm

Issue 2480063002: Split NativeThemeAura into Overlay and NonOverlay versions. (Closed)
Patch Set: Fix Created 4 years, 1 month 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
« no previous file with comments | « ui/native_theme/native_theme_aura_overlay.cc ('k') | ui/views/view.cc » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_mac.h" 5 #include "ui/native_theme/native_theme_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 SkColorGetB(color) * 0.07; 101 SkColorGetB(color) * 0.07;
102 uint8_t component = SkScalarRoundToInt(luminance); 102 uint8_t component = SkScalarRoundToInt(luminance);
103 return SkColorSetARGB(SkColorGetA(color), component, component, component); 103 return SkColorSetARGB(SkColorGetA(color), component, component, component);
104 } 104 }
105 105
106 } // namespace 106 } // namespace
107 107
108 namespace ui { 108 namespace ui {
109 109
110 // static 110 // static
111 NativeTheme* NativeTheme::GetInstanceForWeb() { 111 NativeTheme* NativeTheme::GetInstanceForWeb(bool /*use_overlay_scrollbars*/) {
112 return NativeThemeMac::instance(); 112 return NativeThemeMac::instance();
113 } 113 }
114 114
115 // static 115 // static
116 NativeThemeMac* NativeThemeMac::instance() { 116 NativeThemeMac* NativeThemeMac::instance() {
117 CR_DEFINE_STATIC_LOCAL(NativeThemeMac, s_native_theme, ()); 117 CR_DEFINE_STATIC_LOCAL(NativeThemeMac, s_native_theme, ());
118 return &s_native_theme; 118 return &s_native_theme;
119 } 119 }
120 120
121 // static 121 // static
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 canvas->drawDRRect(outer_shape, shape, paint); 426 canvas->drawDRRect(outer_shape, shape, paint);
427 } 427 }
428 428
429 NativeThemeMac::NativeThemeMac() { 429 NativeThemeMac::NativeThemeMac() {
430 } 430 }
431 431
432 NativeThemeMac::~NativeThemeMac() { 432 NativeThemeMac::~NativeThemeMac() {
433 } 433 }
434 434
435 } // namespace ui 435 } // namespace ui
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aura_overlay.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698