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

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

Issue 1482863002: Add support for drawing window caption buttons on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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
« no previous file with comments | « no previous file | ui/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_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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // The corner is drawn when there is both a horizontal and vertical 77 // The corner is drawn when there is both a horizontal and vertical
78 // scrollbar. 78 // scrollbar.
79 kScrollbarCorner, 79 kScrollbarCorner,
80 kSliderTrack, 80 kSliderTrack,
81 kSliderThumb, 81 kSliderThumb,
82 kTabPanelBackground, 82 kTabPanelBackground,
83 kTextField, 83 kTextField,
84 kTrackbarThumb, 84 kTrackbarThumb,
85 kTrackbarTrack, 85 kTrackbarTrack,
86 kWindowResizeGripper, 86 kWindowResizeGripper,
87
88 // Parts used in the title bar of the window.
89 kCaptionMin,
90 kCaptionMax,
91 kCaptionRestore,
92 kCaptionClose,
93
87 kMaxPart, 94 kMaxPart,
88 }; 95 };
89 96
90 // The state of the part. 97 // The state of the part.
91 enum State { 98 enum State {
92 // IDs defined as specific values for use in arrays. 99 // IDs defined as specific values for use in arrays.
93 kDisabled = 0, 100 kDisabled = 0,
94 kHovered = 1, 101 kHovered = 1,
95 kNormal = 2, 102 kNormal = 2,
96 kPressed = 3, 103 kPressed = 3,
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 private: 386 private:
380 // Observers to notify when the native theme changes. 387 // Observers to notify when the native theme changes.
381 base::ObserverList<NativeThemeObserver> native_theme_observers_; 388 base::ObserverList<NativeThemeObserver> native_theme_observers_;
382 389
383 DISALLOW_COPY_AND_ASSIGN(NativeTheme); 390 DISALLOW_COPY_AND_ASSIGN(NativeTheme);
384 }; 391 };
385 392
386 } // namespace ui 393 } // namespace ui
387 394
388 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ 395 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_
OLDNEW
« no previous file with comments | « no previous file | ui/native_theme/native_theme_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698