| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |