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

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

Issue 2345183002: Views: Draw Textfield selected text in gray when top-level Widget loses focus.
Patch Set: Refactor to use SelectionController(Delegate). Unfinished! Created 4 years 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_mac.mm ('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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 const gfx::Rect& rect) const; 279 const gfx::Rect& rect) const;
280 280
281 // Get the windows theme name/part/state. These three helper functions are 281 // Get the windows theme name/part/state. These three helper functions are
282 // used only by GetPartSize(), as each of the corresponding PaintXXX() 282 // used only by GetPartSize(), as each of the corresponding PaintXXX()
283 // methods do further validation of the part and state that is required for 283 // methods do further validation of the part and state that is required for
284 // getting the size. 284 // getting the size.
285 static ThemeName GetThemeName(Part part); 285 static ThemeName GetThemeName(Part part);
286 static int GetWindowsPart(Part part, State state, const ExtraParams& extra); 286 static int GetWindowsPart(Part part, State state, const ExtraParams& extra);
287 static int GetWindowsState(Part part, State state, const ExtraParams& extra); 287 static int GetWindowsState(Part part, State state, const ExtraParams& extra);
288 288
289 // Get the color used for showing a selection within an unfocused control.
290 // Used for text, tree, and table selections.
291 SkColor GetUnfocusedSelectionBackgroundColor() const;
292
289 HRESULT GetThemeInt(ThemeName theme, 293 HRESULT GetThemeInt(ThemeName theme,
290 int part_id, 294 int part_id,
291 int state_id, 295 int state_id,
292 int prop_id, 296 int prop_id,
293 int *result) const; 297 int *result) const;
294 298
295 HRESULT PaintFrameControl(HDC hdc, 299 HRESULT PaintFrameControl(HDC hdc,
296 const gfx::Rect& rect, 300 const gfx::Rect& rect,
297 UINT type, 301 UINT type,
298 UINT state, 302 UINT state,
(...skipping 72 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_mac.mm ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698