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

Side by Side Diff: ui/base/default_theme_provider.h

Issue 667923002: Standardize usage of virtual/override/final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef UI_BASE_DEFAULT_THEME_PROVIDER_H_
6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_ 6 #define UI_BASE_DEFAULT_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "ui/base/theme_provider.h" 12 #include "ui/base/theme_provider.h"
13 #include "ui/base/ui_base_export.h" 13 #include "ui/base/ui_base_export.h"
14 14
15 namespace ui { 15 namespace ui {
16 class ResourceBundle; 16 class ResourceBundle;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 20
21 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider { 21 class UI_BASE_EXPORT DefaultThemeProvider : public ThemeProvider {
22 public: 22 public:
23 DefaultThemeProvider(); 23 DefaultThemeProvider();
24 virtual ~DefaultThemeProvider(); 24 ~DefaultThemeProvider() override;
25 25
26 // Overridden from ui::ThemeProvider: 26 // Overridden from ui::ThemeProvider:
27 virtual bool UsingSystemTheme() const override; 27 bool UsingSystemTheme() const override;
28 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const override; 28 gfx::ImageSkia* GetImageSkiaNamed(int id) const override;
29 virtual SkColor GetColor(int id) const override; 29 SkColor GetColor(int id) const override;
30 virtual int GetDisplayProperty(int id) const override; 30 int GetDisplayProperty(int id) const override;
31 virtual bool ShouldUseNativeFrame() const override; 31 bool ShouldUseNativeFrame() const override;
32 virtual bool HasCustomImage(int id) const override; 32 bool HasCustomImage(int id) const override;
33 virtual base::RefCountedMemory* GetRawData( 33 base::RefCountedMemory* GetRawData(int id, ui::ScaleFactor scale_factor)
34 int id, 34 const override;
35 ui::ScaleFactor scale_factor) const override;
36 35
37 #if defined(OS_MACOSX) 36 #if defined(OS_MACOSX)
38 virtual NSImage* GetNSImageNamed(int id) const override; 37 NSImage* GetNSImageNamed(int id) const override;
39 virtual NSColor* GetNSImageColorNamed(int id) const override; 38 NSColor* GetNSImageColorNamed(int id) const override;
40 virtual NSColor* GetNSColor(int id) const override; 39 NSColor* GetNSColor(int id) const override;
41 virtual NSColor* GetNSColorTint(int id) const override; 40 NSColor* GetNSColorTint(int id) const override;
42 virtual NSGradient* GetNSGradient(int id) const override; 41 NSGradient* GetNSGradient(int id) const override;
43 #endif 42 #endif
44 43
45 private: 44 private:
46 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 45 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
47 }; 46 };
48 47
49 } // namespace ui 48 } // namespace ui
50 49
51 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_ 50 #endif // UI_BASE_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/base/cocoa/menu_controller_unittest.mm ('k') | ui/base/dragdrop/os_exchange_data_provider_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698