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

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

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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_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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 // Overridden from ButtonListener: 31 // Overridden from ButtonListener:
32 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 32 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE;
33 33
34 // Example buttons. 34 // Example buttons.
35 TextButton* text_button_; 35 TextButton* text_button_;
36 ImageButton* image_button_; 36 ImageButton* image_button_;
37 37
38 // Values used to modify the look and feel of the button. 38 // Values used to modify the look and feel of the button.
39 TextButton::TextAlignment alignment_; 39 TextButton::TextAlignment alignment_;
40 bool use_native_theme_border_; 40 bool use_native_theme_border_;
41 const SkBitmap* icon_; 41 const gfx::ImageSkia* icon_;
42 42
43 // The number of times the buttons are pressed. 43 // The number of times the buttons are pressed.
44 int count_; 44 int count_;
45 45
46 DISALLOW_COPY_AND_ASSIGN(ButtonExample); 46 DISALLOW_COPY_AND_ASSIGN(ButtonExample);
47 }; 47 };
48 48
49 } // namespace examples 49 } // namespace examples
50 } // namespace views 50 } // namespace views
51 51
52 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_ 52 #endif // UI_VIEWS_EXAMPLES_BUTTON_EXAMPLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698