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

Side by Side Diff: ui/native_theme/native_theme_win.h

Issue 2591863003: Use nine-patch resource for drawing Aura overlay scrollbar thumb. (Closed)
Patch Set: Move CheckGeometryLimitations back to where it used to be (AppendQuads) Created 3 years, 9 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
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | ui/native_theme/native_theme_win.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_NATIVE_THEME_NATIVE_THEME_WIN_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_WIN_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_WIN_H_
7 7
8 // A wrapper class for working with custom XP/Vista themes provided in 8 // A wrapper class for working with custom XP/Vista themes provided in
9 // uxtheme.dll. This is a singleton class that can be grabbed using 9 // uxtheme.dll. This is a singleton class that can be grabbed using
10 // NativeThemeWin::instance(). 10 // NativeThemeWin::instance().
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 gfx::Size GetPartSize(Part part, 102 gfx::Size GetPartSize(Part part,
103 State state, 103 State state,
104 const ExtraParams& extra) const override; 104 const ExtraParams& extra) const override;
105 void Paint(cc::PaintCanvas* canvas, 105 void Paint(cc::PaintCanvas* canvas,
106 Part part, 106 Part part,
107 State state, 107 State state,
108 const gfx::Rect& rect, 108 const gfx::Rect& rect,
109 const ExtraParams& extra) const override; 109 const ExtraParams& extra) const override;
110 SkColor GetSystemColor(ColorId color_id) const override; 110 SkColor GetSystemColor(ColorId color_id) const override;
111 111
112 bool SupportsNinePatch(Part part) const override;
113 gfx::Size GetNinePatchCanvasSize(Part part) const override;
114 gfx::Rect GetNinePatchAperture(Part part) const override;
115
112 protected: 116 protected:
113 friend class NativeTheme; 117 friend class NativeTheme;
114 // Gets our singleton instance. 118 // Gets our singleton instance.
115 static NativeThemeWin* instance(); 119 static NativeThemeWin* instance();
116 120
117 NativeThemeWin(); 121 NativeThemeWin();
118 ~NativeThemeWin() override; 122 ~NativeThemeWin() override;
119 123
120 private: 124 private:
121 bool IsUsingHighContrastThemeInternal(); 125 bool IsUsingHighContrastThemeInternal();
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 375
372 // Is |is_using_high_contrast_| valid? 376 // Is |is_using_high_contrast_| valid?
373 mutable bool is_using_high_contrast_valid_; 377 mutable bool is_using_high_contrast_valid_;
374 378
375 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); 379 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin);
376 }; 380 };
377 381
378 } // namespace ui 382 } // namespace ui
379 383
380 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ 384 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_base.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698