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

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

Issue 10513009: Indicate focused state on text buttons with blue outline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment. Created 8 years, 6 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 | « no previous file | ui/base/native_theme/native_theme_base.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_BASE_NATIVE_THEME_NATIVE_THEME_H_ 5 #ifndef UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ 6 #define UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
7 #pragma once 7 #pragma once
8 8
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/base/ui_export.h" 10 #include "ui/base/ui_export.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 kMaxState, 86 kMaxState,
87 }; 87 };
88 88
89 // Each structure below holds extra information needed when painting a given 89 // Each structure below holds extra information needed when painting a given
90 // part. 90 // part.
91 91
92 struct ButtonExtraParams { 92 struct ButtonExtraParams {
93 bool checked; 93 bool checked;
94 bool indeterminate; // Whether the button state is indeterminate. 94 bool indeterminate; // Whether the button state is indeterminate.
95 bool is_default; // Whether the button is default button. 95 bool is_default; // Whether the button is default button.
96 bool is_focused;
96 bool has_border; 97 bool has_border;
97 int classic_state; // Used on Windows when uxtheme is not available. 98 int classic_state; // Used on Windows when uxtheme is not available.
98 SkColor background_color; 99 SkColor background_color;
99 }; 100 };
100 101
101 struct InnerSpinButtonExtraParams { 102 struct InnerSpinButtonExtraParams {
102 bool spin_up; 103 bool spin_up;
103 bool read_only; 104 bool read_only;
104 int classic_state; // Used on Windows when uxtheme is not available. 105 int classic_state; // Used on Windows when uxtheme is not available.
105 }; 106 };
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 static unsigned int thumb_inactive_color_; 265 static unsigned int thumb_inactive_color_;
265 static unsigned int thumb_active_color_; 266 static unsigned int thumb_active_color_;
266 static unsigned int track_color_; 267 static unsigned int track_color_;
267 268
268 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 269 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
269 }; 270 };
270 271
271 } // namespace ui 272 } // namespace ui
272 273
273 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_H_ 274 #endif // UI_BASE_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW
« no previous file with comments | « no previous file | ui/base/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698