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

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

Issue 143953007: Changes look for scrollbars on windows (2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 11 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 | « ui/gfx/nine_image_painter.cc ('k') | ui/native_theme/native_theme.gyp » ('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_H_ 5 #ifndef UI_NATIVE_THEME_NATIVE_THEME_H_
6 #define UI_NATIVE_THEME_NATIVE_THEME_H_ 6 #define UI_NATIVE_THEME_NATIVE_THEME_H_
7 7
8 #include "third_party/skia/include/core/SkColor.h" 8 #include "third_party/skia/include/core/SkColor.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 #include "ui/native_theme/native_theme_export.h" 10 #include "ui/native_theme/native_theme_export.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 kTabPanelBackground, 71 kTabPanelBackground,
72 kTextField, 72 kTextField,
73 kTrackbarThumb, 73 kTrackbarThumb,
74 kTrackbarTrack, 74 kTrackbarTrack,
75 kWindowResizeGripper, 75 kWindowResizeGripper,
76 kMaxPart, 76 kMaxPart,
77 }; 77 };
78 78
79 // The state of the part. 79 // The state of the part.
80 enum State { 80 enum State {
81 kDisabled, 81 // IDs defined as specific values for use in arrays.
82 kHovered, 82 kDisabled = 0,
83 kNormal, 83 kHovered = 1,
84 kPressed, 84 kNormal = 2,
85 kMaxState, 85 kPressed = 3,
86 kMaxState = 4,
86 }; 87 };
87 88
88 // Each structure below holds extra information needed when painting a given 89 // Each structure below holds extra information needed when painting a given
89 // part. 90 // part.
90 91
91 struct ButtonExtraParams { 92 struct ButtonExtraParams {
92 bool checked; 93 bool checked;
93 bool indeterminate; // Whether the button state is indeterminate. 94 bool indeterminate; // Whether the button state is indeterminate.
94 bool is_default; // Whether the button is default button. 95 bool is_default; // Whether the button is default button.
95 bool is_focused; 96 bool is_focused;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 unsigned int thumb_inactive_color_; 297 unsigned int thumb_inactive_color_;
297 unsigned int thumb_active_color_; 298 unsigned int thumb_active_color_;
298 unsigned int track_color_; 299 unsigned int track_color_;
299 300
300 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 301 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
301 }; 302 };
302 303
303 } // namespace ui 304 } // namespace ui
304 305
305 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 306 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW
« no previous file with comments | « ui/gfx/nine_image_painter.cc ('k') | ui/native_theme/native_theme.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698