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

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

Issue 1133713009: Subject .mm files to the header sorting presubmit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase - of course... it would be one of my patches I conflict with :| Created 5 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
« no previous file with comments | « ui/gfx/platform_font_mac_unittest.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('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 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/mac/mac_util.h" 10 #include "base/mac/mac_util.h"
11 #include "base/mac/scoped_cftyperef.h" 11 #include "base/mac/scoped_cftyperef.h"
12 #include "base/mac/sdk_forward_declarations.h" 12 #include "base/mac/sdk_forward_declarations.h"
13 #include "ui/native_theme/common_theme.h"
14 #import "skia/ext/skia_utils_mac.h" 13 #import "skia/ext/skia_utils_mac.h"
15 #include "third_party/skia/include/effects/SkGradientShader.h" 14 #include "third_party/skia/include/effects/SkGradientShader.h"
16 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
17 #include "ui/gfx/skia_util.h" 16 #include "ui/gfx/skia_util.h"
17 #include "ui/native_theme/common_theme.h"
18 18
19 namespace { 19 namespace {
20 20
21 const SkColor kScrollerTrackGradientColors[] = { 21 const SkColor kScrollerTrackGradientColors[] = {
22 SkColorSetRGB(0xEF, 0xEF, 0xEF), 22 SkColorSetRGB(0xEF, 0xEF, 0xEF),
23 SkColorSetRGB(0xF9, 0xF9, 0xF9), 23 SkColorSetRGB(0xF9, 0xF9, 0xF9),
24 SkColorSetRGB(0xFD, 0xFD, 0xFD), 24 SkColorSetRGB(0xFD, 0xFD, 0xFD),
25 SkColorSetRGB(0xF6, 0xF6, 0xF6) }; 25 SkColorSetRGB(0xF6, 0xF6, 0xF6) };
26 const SkColor kScrollerTrackInnerBorderColor = SkColorSetRGB(0xE4, 0xE4, 0xE4); 26 const SkColor kScrollerTrackInnerBorderColor = SkColorSetRGB(0xE4, 0xE4, 0xE4);
27 const SkColor kScrollerTrackOuterBorderColor = SkColorSetRGB(0xEF, 0xEF, 0xEF); 27 const SkColor kScrollerTrackOuterBorderColor = SkColorSetRGB(0xEF, 0xEF, 0xEF);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 set_scrollbar_button_length(0); 363 set_scrollbar_button_length(0);
364 SetScrollbarColors(kScrollerThumbColor, 364 SetScrollbarColors(kScrollerThumbColor,
365 kScrollerThumbHoverColor, 365 kScrollerThumbHoverColor,
366 kScrollerTrackGradientColors[0]); 366 kScrollerTrackGradientColors[0]);
367 } 367 }
368 368
369 NativeThemeMac::~NativeThemeMac() { 369 NativeThemeMac::~NativeThemeMac() {
370 } 370 }
371 371
372 } // namespace ui 372 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/platform_font_mac_unittest.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698