| 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 26 matching lines...) Expand all Loading... |
| 37 // drawn correctly, and this information is given to the Paint() method via the | 37 // drawn correctly, and this information is given to the Paint() method via the |
| 38 // ExtraParams union. Each part that requires more information has its own | 38 // ExtraParams union. Each part that requires more information has its own |
| 39 // field in the union. | 39 // field in the union. |
| 40 // | 40 // |
| 41 // NativeTheme also supports getting the default size of a given part with | 41 // NativeTheme also supports getting the default size of a given part with |
| 42 // the GetPartSize() method. | 42 // the GetPartSize() method. |
| 43 class NATIVE_THEME_EXPORT NativeTheme { | 43 class NATIVE_THEME_EXPORT NativeTheme { |
| 44 public: | 44 public: |
| 45 // The part to be painted / sized. | 45 // The part to be painted / sized. |
| 46 enum Part { | 46 enum Part { |
| 47 kComboboxArrow, | |
| 48 kCheckbox, | 47 kCheckbox, |
| 49 kInnerSpinButton, | 48 kInnerSpinButton, |
| 50 kMenuList, | 49 kMenuList, |
| 51 kMenuPopupBackground, | 50 kMenuPopupBackground, |
| 52 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
| 53 kMenuCheck, | 52 kMenuCheck, |
| 54 kMenuCheckBackground, | 53 kMenuCheckBackground, |
| 55 kMenuPopupArrow, | 54 kMenuPopupArrow, |
| 56 kMenuPopupGutter, | 55 kMenuPopupGutter, |
| 57 kMenuPopupSeparator, | 56 kMenuPopupSeparator, |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 private: | 377 private: |
| 379 // Observers to notify when the native theme changes. | 378 // Observers to notify when the native theme changes. |
| 380 base::ObserverList<NativeThemeObserver> native_theme_observers_; | 379 base::ObserverList<NativeThemeObserver> native_theme_observers_; |
| 381 | 380 |
| 382 DISALLOW_COPY_AND_ASSIGN(NativeTheme); | 381 DISALLOW_COPY_AND_ASSIGN(NativeTheme); |
| 383 }; | 382 }; |
| 384 | 383 |
| 385 } // namespace ui | 384 } // namespace ui |
| 386 | 385 |
| 387 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ | 386 #endif // UI_NATIVE_THEME_NATIVE_THEME_H_ |
| OLD | NEW |