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

Unified Diff: ui/views/examples/native_theme_button_example.h

Issue 8607001: views: Factor out Listener from Combobox into its own header file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky review Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/examples/combobox_example.cc ('k') | ui/views/examples/native_theme_button_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/native_theme_button_example.h
diff --git a/ui/views/examples/native_theme_button_example.h b/ui/views/examples/native_theme_button_example.h
index 59f5e97721c2e0c73559ce060a7c49ed8d76acd2..8b59fece6e0e746c762d340d9e3f39229d2e32f6 100644
--- a/ui/views/examples/native_theme_button_example.h
+++ b/ui/views/examples/native_theme_button_example.h
@@ -10,7 +10,7 @@
#include "ui/gfx/native_theme.h"
#include "ui/views/examples/example_base.h"
#include "views/controls/button/custom_button.h"
-#include "views/controls/combobox/combobox.h"
+#include "views/controls/combobox/combobox_listener.h"
#include "views/native_theme_delegate.h"
#include "views/native_theme_painter.h"
@@ -24,7 +24,7 @@ namespace examples {
// A subclass of button to test native theme rendering.
class ExampleNativeThemeButton : public views::CustomButton,
public views::NativeThemeDelegate,
- public views::Combobox::Listener {
+ public views::ComboboxListener {
public:
ExampleNativeThemeButton(views::ButtonListener* listener,
views::Combobox* cb_part,
@@ -34,11 +34,11 @@ class ExampleNativeThemeButton : public views::CustomButton,
std::string MessWithState();
private:
- // Overridden from View:
+ // Overridden from views::View:
virtual gfx::Size GetPreferredSize() OVERRIDE;
virtual void OnPaintBackground(gfx::Canvas* canvas) OVERRIDE;
- // Overridden from views::Combobox::Listener:
+ // Overridden from views::ComboboxListener:
virtual void ItemChanged(views::Combobox* combo_box,
int prev_index,
int new_index) OVERRIDE;
« no previous file with comments | « ui/views/examples/combobox_example.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