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

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

Issue 1671313002: MacViews: Overlay Scrollbars with Show/Hide Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 10 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/base/ui_base.gyp ('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 "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/native_theme/native_theme_base.h" 9 #include "ui/native_theme/native_theme_base.h"
10 #include "ui/native_theme/native_theme_export.h" 10 #include "ui/native_theme/native_theme_export.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 // Mac implementation of native theme support. 14 // Mac implementation of native theme support.
15 class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase { 15 class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
16 public: 16 public:
17 static NativeThemeMac* instance(); 17 static NativeThemeMac* instance();
18 18
19 // Overridden from NativeTheme: 19 // Overridden from NativeTheme:
20 SkColor GetSystemColor(ColorId color_id) const override; 20 SkColor GetSystemColor(ColorId color_id) const override;
21 21
22 // Overridden from NativeThemeBase: 22 // Overridden from NativeThemeBase:
23 void PaintScrollbarTrack(SkCanvas* canvas,
24 Part part,
25 State state,
26 const ScrollbarTrackExtraParams& extra_params,
27 const gfx::Rect& rect) const override;
28 void PaintScrollbarThumb(SkCanvas* sk_canvas,
29 Part part,
30 State state,
31 const gfx::Rect& rect) const override;
32 void PaintScrollbarCorner(SkCanvas* canvas,
33 State state,
34 const gfx::Rect& rect) const override;
35 void PaintMenuPopupBackground( 23 void PaintMenuPopupBackground(
36 SkCanvas* canvas, 24 SkCanvas* canvas,
37 const gfx::Size& size, 25 const gfx::Size& size,
38 const MenuBackgroundExtraParams& menu_background) const override; 26 const MenuBackgroundExtraParams& menu_background) const override;
39 void PaintMenuItemBackground( 27 void PaintMenuItemBackground(
40 SkCanvas* canvas, 28 SkCanvas* canvas,
41 State state, 29 State state,
42 const gfx::Rect& rect, 30 const gfx::Rect& rect,
43 const MenuListExtraParams& menu_list) const override; 31 const MenuListExtraParams& menu_list) const override;
44 32
45 private: 33 private:
46 NativeThemeMac(); 34 NativeThemeMac();
47 ~NativeThemeMac() override; 35 ~NativeThemeMac() override;
48 36
49 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); 37 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac);
50 }; 38 };
51 39
52 } // namespace ui 40 } // namespace ui
53 41
54 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 42 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
OLDNEW
« no previous file with comments | « ui/base/ui_base.gyp ('k') | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698