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

Side by Side Diff: ui/gfx/native_theme_chromeos.h

Issue 7778036: ui/gfx: Get rid of a few static variables from NativeTheme* type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use base::LazyInstance Created 9 years, 3 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 | « no previous file | ui/gfx/native_theme_chromeos.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GFX_NATIVE_THEME_CHROMEOS_H_ 5 #ifndef UI_GFX_NATIVE_THEME_CHROMEOS_H_
6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_ 6 #define UI_GFX_NATIVE_THEME_CHROMEOS_H_
7 #pragma once
7 8
8 #include <map> 9 #include <map>
10
9 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
10 #include "ui/gfx/native_theme_linux.h" 12 #include "ui/gfx/native_theme_linux.h"
11 13
12 class SkBitmap; 14 class SkBitmap;
13 15
14 class NativeThemeChromeos : public gfx::NativeThemeLinux { 16 class NativeThemeChromeos : public gfx::NativeThemeLinux {
17 public:
18 NativeThemeChromeos();
19 virtual ~NativeThemeChromeos();
20
15 private: 21 private:
16 friend class NativeThemeLinux; 22 friend class NativeThemeLinux;
17 NativeThemeChromeos();
18 virtual ~NativeThemeChromeos();
19 23
20 // NativeTheme overrides 24 // NativeTheme overrides
21 virtual gfx::Size GetPartSize(Part part, 25 virtual gfx::Size GetPartSize(Part part,
22 State state, 26 State state,
23 const ExtraParams& extra) const OVERRIDE; 27 const ExtraParams& extra) const OVERRIDE;
24 28
25 // NativeThemeLinux overrides 29 // NativeThemeLinux overrides
26 virtual void PaintScrollbarTrack(SkCanvas* canvas, 30 virtual void PaintScrollbarTrack(SkCanvas* canvas,
27 Part part, State state, 31 Part part, State state,
28 const ScrollbarTrackExtraParams& extra_params, 32 const ScrollbarTrackExtraParams& extra_params,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 91
88 // Cached images. Resource loader caches all retrieved bitmaps and keeps 92 // Cached images. Resource loader caches all retrieved bitmaps and keeps
89 // ownership of the pointers. 93 // ownership of the pointers.
90 typedef std::map<int, SkBitmap*> SkImageMap; 94 typedef std::map<int, SkBitmap*> SkImageMap;
91 mutable SkImageMap horizontal_bitmaps_; 95 mutable SkImageMap horizontal_bitmaps_;
92 96
93 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); 97 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos);
94 }; 98 };
95 99
96 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_ 100 #endif // UI_GFX_NATIVE_THEME_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/native_theme_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698