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

Side by Side Diff: chrome/browser/chromeos/native_theme_chromeos.h

Issue 6254004: Move more web widgets painting from webkit to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and fix width100percent-checkbox Created 9 years, 11 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 | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
6 #define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ 6 #define CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include "gfx/native_theme_linux.h" 9 #include "gfx/native_theme_linux.h"
10 10
11 class SkBitmap; 11 class SkBitmap;
12 12
13 class NativeThemeChromeos : public gfx::NativeThemeLinux { 13 class NativeThemeChromeos : public gfx::NativeThemeLinux {
14 private: 14 private:
15 friend class NativeThemeLinux; 15 friend class NativeThemeLinux;
16 NativeThemeChromeos(); 16 NativeThemeChromeos();
17 virtual ~NativeThemeChromeos(); 17 virtual ~NativeThemeChromeos();
18 18
19 // Scrollbar painting overrides 19 // Scrollbar painting overrides
20 virtual gfx::Size GetSize(Part part) const; 20 virtual gfx::Size GetPartSize(Part part) const;
21 virtual void PaintTrack(skia::PlatformCanvas* canvas, 21 virtual void PaintScrollbarTrack(skia::PlatformCanvas* canvas,
22 Part part, State state, 22 Part part, State state,
23 const ScrollbarTrackExtraParams& extra_params, 23 const ScrollbarTrackExtraParams& extra_params,
24 const gfx::Rect& rect); 24 const gfx::Rect& rect);
25 virtual void PaintArrowButton(skia::PlatformCanvas* canvas, 25 virtual void PaintArrowButton(skia::PlatformCanvas* canvas,
26 const gfx::Rect& rect, Part direction, State state); 26 const gfx::Rect& rect, Part direction, State state);
27 virtual void PaintThumb(skia::PlatformCanvas* canvas, 27 virtual void PaintScrollbarThumb(skia::PlatformCanvas* canvas,
28 Part part, State state, const gfx::Rect& rect); 28 Part part, State state, const gfx::Rect& rect);
29 SkBitmap* GetHorizontalBitmapNamed(int resource_id); 29 SkBitmap* GetHorizontalBitmapNamed(int resource_id);
30 30
31 // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps 31 // Cached images. The ResourceBundle caches all retrieved bitmaps and keeps
32 // ownership of the pointers. 32 // ownership of the pointers.
33 typedef std::map<int, SkBitmap*> SkImageMap; 33 typedef std::map<int, SkBitmap*> SkImageMap;
34 SkImageMap horizontal_bitmaps_; 34 SkImageMap horizontal_bitmaps_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos); 36 DISALLOW_COPY_AND_ASSIGN(NativeThemeChromeos);
37 }; 37 };
38 38
39 #endif // CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_NATIVE_THEME_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/chromeos/native_theme_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698