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

Side by Side Diff: ui/views/examples/native_theme_button_example.h

Issue 10387121: Revert 136996 - ui: Move NativeTheme files into ui/base/native_theme/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
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_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 <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/base/native_theme/native_theme.h" 13 #include "ui/gfx/native_theme.h"
14 #include "ui/views/controls/button/custom_button.h" 14 #include "ui/views/controls/button/custom_button.h"
15 #include "ui/views/controls/combobox/combobox_listener.h" 15 #include "ui/views/controls/combobox/combobox_listener.h"
16 #include "ui/views/examples/example_base.h" 16 #include "ui/views/examples/example_base.h"
17 #include "ui/views/native_theme_delegate.h" 17 #include "ui/views/native_theme_delegate.h"
18 18
19 namespace views { 19 namespace views {
20 class Combobox; 20 class Combobox;
21 class NativeThemePainter; 21 class NativeThemePainter;
22 22
23 namespace examples { 23 namespace examples {
(...skipping 14 matching lines...) Expand all
38 38
39 private: 39 private:
40 // Overridden from View: 40 // Overridden from View:
41 virtual gfx::Size GetPreferredSize() OVERRIDE; 41 virtual gfx::Size GetPreferredSize() OVERRIDE;
42 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE; 42 virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
43 43
44 // Overridden from ComboboxListener: 44 // Overridden from ComboboxListener:
45 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE; 45 virtual void OnSelectedIndexChanged(Combobox* combobox) OVERRIDE;
46 46
47 // Overridden from NativeThemeDelegate: 47 // Overridden from NativeThemeDelegate:
48 virtual ui::NativeTheme::Part GetThemePart() const OVERRIDE; 48 virtual gfx::NativeTheme::Part GetThemePart() const OVERRIDE;
49 virtual gfx::Rect GetThemePaintRect() const OVERRIDE; 49 virtual gfx::Rect GetThemePaintRect() const OVERRIDE;
50 virtual ui::NativeTheme::State GetThemeState( 50 virtual gfx::NativeTheme::State GetThemeState(
51 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 51 gfx::NativeTheme::ExtraParams* params) const OVERRIDE;
52 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE; 52 virtual const ui::Animation* GetThemeAnimation() const OVERRIDE;
53 virtual ui::NativeTheme::State GetBackgroundThemeState( 53 virtual gfx::NativeTheme::State GetBackgroundThemeState(
54 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 54 gfx::NativeTheme::ExtraParams* params) const OVERRIDE;
55 virtual ui::NativeTheme::State GetForegroundThemeState( 55 virtual gfx::NativeTheme::State GetForegroundThemeState(
56 ui::NativeTheme::ExtraParams* params) const OVERRIDE; 56 gfx::NativeTheme::ExtraParams* params) const OVERRIDE;
57 57
58 void GetExtraParams(ui::NativeTheme::ExtraParams* params) const; 58 void GetExtraParams(gfx::NativeTheme::ExtraParams* params) const;
59 59
60 scoped_ptr<NativeThemePainter> painter_; 60 scoped_ptr<NativeThemePainter> painter_;
61 Combobox* cb_part_; 61 Combobox* cb_part_;
62 Combobox* cb_state_; 62 Combobox* cb_state_;
63 int count_; 63 int count_;
64 bool is_checked_; 64 bool is_checked_;
65 bool is_indeterminate_; 65 bool is_indeterminate_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(ExampleNativeThemeButton); 67 DISALLOW_COPY_AND_ASSIGN(ExampleNativeThemeButton);
68 }; 68 };
(...skipping 17 matching lines...) Expand all
86 scoped_ptr<ExampleComboboxModel> combobox_model_part_; 86 scoped_ptr<ExampleComboboxModel> combobox_model_part_;
87 scoped_ptr<ExampleComboboxModel> combobox_model_state_; 87 scoped_ptr<ExampleComboboxModel> combobox_model_state_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample); 89 DISALLOW_COPY_AND_ASSIGN(NativeThemeButtonExample);
90 }; 90 };
91 91
92 } // namespace examples 92 } // namespace examples
93 } // namespace views 93 } // namespace views
94 94
95 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_ 95 #endif // UI_VIEWS_EXAMPLES_NATIVE_THEME_BUTTON_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/tree/tree_view_views.cc ('k') | ui/views/examples/native_theme_button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698