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

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

Issue 9965017: views: Rename ComboboxListener::ItemChanged to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo_box -> combobox Created 8 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/examples/examples_window.cc ('k') | ui/views/examples/native_theme_button_example.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_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
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
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_
OLDNEW
« no previous file with comments | « ui/views/examples/examples_window.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