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

Side by Side Diff: ui/views/widget/default_theme_provider.h

Issue 10783015: Add ability to store hidpi theme images in data pack (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/image/image_skia_unittest.cc ('k') | ui/views/widget/default_theme_provider.cc » ('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) 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_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_
6 #define UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ 6 #define UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 DefaultThemeProvider(); 24 DefaultThemeProvider();
25 virtual ~DefaultThemeProvider(); 25 virtual ~DefaultThemeProvider();
26 26
27 // Overridden from ui::ThemeProvider: 27 // Overridden from ui::ThemeProvider:
28 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE; 28 virtual SkBitmap* GetBitmapNamed(int id) const OVERRIDE;
29 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE; 29 virtual gfx::ImageSkia* GetImageSkiaNamed(int id) const OVERRIDE;
30 virtual SkColor GetColor(int id) const OVERRIDE; 30 virtual SkColor GetColor(int id) const OVERRIDE;
31 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE; 31 virtual bool GetDisplayProperty(int id, int* result) const OVERRIDE;
32 virtual bool ShouldUseNativeFrame() const OVERRIDE; 32 virtual bool ShouldUseNativeFrame() const OVERRIDE;
33 virtual bool HasCustomImage(int id) const OVERRIDE; 33 virtual bool HasCustomImage(int id) const OVERRIDE;
34 virtual base::RefCountedMemory* GetRawData(int id) const OVERRIDE; 34 virtual base::RefCountedMemory* GetRawData(
35 int id,
36 ui::ScaleFactor scale_factor) const OVERRIDE;
35 37
36 private: 38 private:
37 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 39 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
38 }; 40 };
39 41
40 } // namespace views 42 } // namespace views
41 43
42 #endif // UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_ 44 #endif // UI_VIEWS_WIDGET_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« no previous file with comments | « ui/gfx/image/image_skia_unittest.cc ('k') | ui/views/widget/default_theme_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698