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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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/native_theme/native_theme_base.h ('k') | ui/native_theme/native_theme_win.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) 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/fallback_theme.h" 8 #include "ui/native_theme/fallback_theme.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 // TODO(tapted): This should not use FallbackTheme. http://crbug.com/379086. 14 // TODO(tapted): This should not use FallbackTheme. http://crbug.com/379086.
15 class NativeThemeMac : public FallbackTheme { 15 class NativeThemeMac : public FallbackTheme {
16 public: 16 public:
17 static NativeThemeMac* instance(); 17 static NativeThemeMac* instance();
18 18
19 // Overridden from NativeTheme: 19 // Overridden from NativeTheme:
20 virtual SkColor GetSystemColor(ColorId color_id) const OVERRIDE; 20 virtual SkColor GetSystemColor(ColorId color_id) const override;
21 21
22 // Overridden from NativeThemeBase: 22 // Overridden from NativeThemeBase:
23 virtual void PaintScrollbarTrack( 23 virtual void PaintScrollbarTrack(
24 SkCanvas* canvas, 24 SkCanvas* canvas,
25 Part part, 25 Part part,
26 State state, 26 State state,
27 const ScrollbarTrackExtraParams& extra_params, 27 const ScrollbarTrackExtraParams& extra_params,
28 const gfx::Rect& rect) const OVERRIDE; 28 const gfx::Rect& rect) const override;
29 virtual void PaintScrollbarThumb(SkCanvas* sk_canvas, 29 virtual void PaintScrollbarThumb(SkCanvas* sk_canvas,
30 Part part, 30 Part part,
31 State state, 31 State state,
32 const gfx::Rect& rect) const OVERRIDE; 32 const gfx::Rect& rect) const override;
33 virtual void PaintScrollbarCorner(SkCanvas* canvas, 33 virtual void PaintScrollbarCorner(SkCanvas* canvas,
34 State state, 34 State state,
35 const gfx::Rect& rect) const OVERRIDE; 35 const gfx::Rect& rect) const override;
36 virtual void PaintMenuPopupBackground( 36 virtual void PaintMenuPopupBackground(
37 SkCanvas* canvas, 37 SkCanvas* canvas,
38 const gfx::Size& size, 38 const gfx::Size& size,
39 const MenuBackgroundExtraParams& menu_background) const OVERRIDE; 39 const MenuBackgroundExtraParams& menu_background) const override;
40 virtual void PaintMenuItemBackground( 40 virtual void PaintMenuItemBackground(
41 SkCanvas* canvas, 41 SkCanvas* canvas,
42 State state, 42 State state,
43 const gfx::Rect& rect, 43 const gfx::Rect& rect,
44 const MenuListExtraParams& menu_list) const OVERRIDE; 44 const MenuListExtraParams& menu_list) const override;
45 45
46 private: 46 private:
47 NativeThemeMac(); 47 NativeThemeMac();
48 virtual ~NativeThemeMac(); 48 virtual ~NativeThemeMac();
49 49
50 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac); 50 DISALLOW_COPY_AND_ASSIGN(NativeThemeMac);
51 }; 51 };
52 52
53 } // namespace ui 53 } // namespace ui
54 54
55 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_ 55 #endif // UI_NATIVE_THEME_NATIVE_THEME_MAC_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_base.h ('k') | ui/native_theme/native_theme_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698