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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/bubble_example.cc ('k') | ui/views/examples/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_BUTTON_EXAMPLE_H_ 5 #ifndef UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 6 #define UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/button/text_button.h" 10 #include "ui/views/controls/button/text_button.h"
(...skipping 10 matching lines...) Expand all
21 class ButtonExample : public ExampleBase, public ButtonListener { 21 class ButtonExample : public ExampleBase, public ButtonListener {
22 public: 22 public:
23 ButtonExample(); 23 ButtonExample();
24 virtual ~ButtonExample(); 24 virtual ~ButtonExample();
25 25
26 // Overridden from ExampleBase: 26 // Overridden from ExampleBase:
27 virtual void CreateExampleView(View* container) OVERRIDE; 27 virtual void CreateExampleView(View* container) OVERRIDE;
28 28
29 private: 29 private:
30 // Overridden from ButtonListener: 30 // Overridden from ButtonListener:
31 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 31 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
32 32
33 // Example buttons. 33 // Example buttons.
34 TextButton* text_button_; 34 TextButton* text_button_;
35 ImageButton* image_button_; 35 ImageButton* image_button_;
36 36
37 // Values used to modify the look and feel of the button. 37 // Values used to modify the look and feel of the button.
38 TextButton::TextAlignment alignment_; 38 TextButton::TextAlignment alignment_;
39 bool use_native_theme_border_; 39 bool use_native_theme_border_;
40 const gfx::ImageSkia* icon_; 40 const gfx::ImageSkia* icon_;
41 41
42 // The number of times the buttons are pressed. 42 // The number of times the buttons are pressed.
43 int count_; 43 int count_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(ButtonExample); 45 DISALLOW_COPY_AND_ASSIGN(ButtonExample);
46 }; 46 };
47 47
48 } // namespace examples 48 } // namespace examples
49 } // namespace views 49 } // namespace views
50 50
51 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 51 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
OLDNEW
« no previous file with comments | « ui/views/examples/bubble_example.cc ('k') | ui/views/examples/button_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698