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

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

Issue 288005: First fix to minimize copying of image data. (Closed)
Patch Set: Modify gyp Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 VIEWS_DEFAULT_THEME_PROVIDER_H_ 5 #ifndef VIEWS_DEFAULT_THEME_PROVIDER_H_
6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_ 6 #define VIEWS_DEFAULT_THEME_PROVIDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "app/theme_provider.h" 10 #include "app/theme_provider.h"
(...skipping 12 matching lines...) Expand all
23 // Overridden from ThemeProvider. 23 // Overridden from ThemeProvider.
24 virtual void Init(Profile* profile) { } 24 virtual void Init(Profile* profile) { }
25 virtual SkBitmap* GetBitmapNamed(int id) const; 25 virtual SkBitmap* GetBitmapNamed(int id) const;
26 virtual SkColor GetColor(int id) const { 26 virtual SkColor GetColor(int id) const {
27 // Return debugging-blue. 27 // Return debugging-blue.
28 return 0xff0000ff; 28 return 0xff0000ff;
29 } 29 }
30 virtual bool GetDisplayProperty(int id, int* result) const { return false; } 30 virtual bool GetDisplayProperty(int id, int* result) const { return false; }
31 virtual bool ShouldUseNativeFrame() const; 31 virtual bool ShouldUseNativeFrame() const;
32 virtual bool HasCustomImage(int id) const { return false; } 32 virtual bool HasCustomImage(int id) const { return false; }
33 virtual bool GetRawData(int id, std::vector<unsigned char>* raw_data) const { 33 virtual RefCountedMemory* GetRawData(int id) const { return NULL; }
34 return false;
35 }
36 34
37 private: 35 private:
38 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider); 36 DISALLOW_COPY_AND_ASSIGN(DefaultThemeProvider);
39 }; 37 };
40 38
41 } // namespace views 39 } // namespace views
42 40
43 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_ 41 #endif // VIEWS_DEFAULT_THEME_PROVIDER_H_
OLDNEW
« chrome/browser/browser_theme_provider.cc ('K') | « chrome/common/ref_counted_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698