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

Unified 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: Fix lifetime issues with BorderView's widget_ and address review comments. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: ui/native_theme/native_theme_win.h
diff --git a/ui/native_theme/native_theme_win.h b/ui/native_theme/native_theme_win.h
index fa2c82ce608fe55a610904f8a99c81202d8c8b56..1c982de871dd4677a51ed275c0608d43e726310c 100644
--- a/ui/native_theme/native_theme_win.h
+++ b/ui/native_theme/native_theme_win.h
@@ -286,6 +286,10 @@ class NATIVE_THEME_EXPORT NativeThemeWin : public NativeTheme,
static int GetWindowsPart(Part part, State state, const ExtraParams& extra);
static int GetWindowsState(Part part, State state, const ExtraParams& extra);
+ // Get the color used for showing the last selection before focus was moved
msw 2016/11/09 02:08:53 nit: avoid over-specializing the comment regarding
+ // away. Used for text, tree, and table selections.
+ SkColor GetUnfocusedSelectionBackgroundColor() const;
+
HRESULT GetThemeInt(ThemeName theme,
int part_id,
int state_id,

Powered by Google App Engine
This is Rietveld 408576698