| 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_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 5 #ifndef UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
| 6 #define UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 6 #define UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 virtual ~ExampleNativeThemeButton(); | 33 virtual ~ExampleNativeThemeButton(); |
| 34 | 34 |
| 35 std::string MessWithState(); | 35 std::string MessWithState(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 // Overridden from View: | 38 // Overridden from View: |
| 39 virtual gfx::Size GetPreferredSize() OVERRIDE; | 39 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 40 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; | 40 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; |
| 41 | 41 |
| 42 // Overridden from ComboboxListener: | 42 // Overridden from ComboboxListener: |
| 43 virtual void ItemChanged(Combobox* combo_box, | 43 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; |
| 44 int prev_index, | |
| 45 int new_index) OVERRIDE; | |
| 46 | 44 |
| 47 // Overridden from NativeThemeDelegate: | 45 // Overridden from NativeThemeDelegate: |
| 48 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE; | 46 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE; |
| 49 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; | 47 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; |
| 50 virtual gfx::NativeTheme::State GetThemeState( | 48 virtual gfx::NativeTheme::State GetThemeState( |
| 51 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; | 49 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; |
| 52 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE; | 50 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE; |
| 53 virtual gfx::NativeTheme::State GetBackgroundThemeState( | 51 virtual gfx::NativeTheme::State GetBackgroundThemeState( |
| 54 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; | 52 gfx::NativeTheme::ExtraParams* params) const OVERRIDE; |
| 55 virtual gfx::NativeTheme::State GetForegroundThemeState( | 53 virtual gfx::NativeTheme::State GetForegroundThemeState( |
| (...skipping 30 matching lines...) Expand all Loading... |
| 86 scoped_ptr<ExampleComboboxModel> combobox_model_part_; | 84 scoped_ptr<ExampleComboboxModel> combobox_model_part_; |
| 87 scoped_ptr<ExampleComboboxModel> combobox_model_state_; | 85 scoped_ptr<ExampleComboboxModel> combobox_model_state_; |
| 88 | 86 |
| 89 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample); | 87 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample); |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace examples | 90 } // namespace examples |
| 93 } // namespace views | 91 } // namespace views |
| 94 | 92 |
| 95 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ | 93 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ |
| OLD | NEW |