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

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

Issue 1461923002: Change name of NativeTheme::instance() to make it clear it's web only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NATIVE_THEME_EXPORT for mac Created 5 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
« no previous file with comments | « ui/native_theme/native_theme_aurawin.cc ('k') | ui/native_theme/native_theme_mac.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 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
7 7
8 #include "ui/native_theme/native_theme_base.h" 8 #include "ui/native_theme/native_theme_base.h"
9 #include "ui/native_theme/native_theme_export.h" 9 #include "ui/native_theme/native_theme_export.h"
10 10
11 namespace ui { 11 namespace ui {
12 12
13 // Mac implementation of native theme support. 13 // Mac implementation of native theme support.
14 class NativeThemeMac : public NativeThemeBase { 14 class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
15 public: 15 public:
16 static NativeThemeMac* instance(); 16 static NativeThemeMac* instance();
17 17
18 // Overridden from NativeTheme: 18 // Overridden from NativeTheme:
19 SkColor GetSystemColor(ColorId color_id) const override; 19 SkColor GetSystemColor(ColorId color_id) const override;
20 20
21 // Overridden from NativeThemeBase: 21 // Overridden from NativeThemeBase:
22 void PaintScrollbarTrack(SkCanvas* canvas, 22 void PaintScrollbarTrack(SkCanvas* canvas,
23 Part part, 23 Part part,
24 State state, 24 State state,
(...skipping 19 matching lines...) Expand all
44 private: 44 private:
45 NativeThemeMac(); 45 NativeThemeMac();
46 ~NativeThemeMac() override; 46 ~NativeThemeMac() override;
47 47
48 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); 48 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac);
49 }; 49 };
50 50
51 } // namespace ui 51 } // namespace ui
52 52
53 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 53 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_aurawin.cc ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698