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

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

Issue 1438513003: [MD] Implement incognito colors as a NativeTheme (for Aura). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: init param, pkasting feedback Created 5 years, 1 month 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_dark_win.cc ('k') | ui/views/widget/widget.h » ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 gfx::Size GetPartSize(Part part, 107 gfx::Size GetPartSize(Part part,
108 State state, 108 State state,
109 const ExtraParams& extra) const override; 109 const ExtraParams& extra) const override;
110 void Paint(SkCanvas* canvas, 110 void Paint(SkCanvas* canvas,
111 Part part, 111 Part part,
112 State state, 112 State state,
113 const gfx::Rect& rect, 113 const gfx::Rect& rect,
114 const ExtraParams& extra) const override; 114 const ExtraParams& extra) const override;
115 SkColor GetSystemColor(ColorId color_id) const override; 115 SkColor GetSystemColor(ColorId color_id) const override;
116 116
117 private: 117 protected:
118 NativeThemeWin(); 118 NativeThemeWin();
119 ~NativeThemeWin() override; 119 ~NativeThemeWin() override;
120 120
121 private:
121 // gfx::SysColorChangeListener implementation: 122 // gfx::SysColorChangeListener implementation:
122 void OnSysColorChange() override; 123 void OnSysColorChange() override;
123 124
124 // Update the locally cached set of system colors. 125 // Update the locally cached set of system colors.
125 void UpdateSystemColors(); 126 void UpdateSystemColors();
126 127
127 // Paint directly to canvas' HDC. 128 // Paint directly to canvas' HDC.
128 void PaintDirect(SkCanvas* canvas, 129 void PaintDirect(SkCanvas* canvas,
129 Part part, 130 Part part,
130 State state, 131 State state,
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 364
364 // Is |is_using_high_contrast_| valid? 365 // Is |is_using_high_contrast_| valid?
365 mutable bool is_using_high_contrast_valid_; 366 mutable bool is_using_high_contrast_valid_;
366 367
367 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin); 368 DISALLOW_COPY_AND_ASSIGN(NativeThemeWin);
368 }; 369 };
369 370
370 } // namespace ui 371 } // namespace ui
371 372
372 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_ 373 #endif // UI_NATIVE_THEME_NATIVE_THEME_WIN_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_dark_win.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698