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

Side by Side Diff: chrome/views/button.h

Issue 20112: Cleanup forward declared classes that are not needed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/views/base_button.h ('k') | chrome/views/button_dropdown.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_BUTTON_H_ 5 #ifndef CHROME_VIEWS_BUTTON_H_
6 #define CHROME_VIEWS_BUTTON_H_ 6 #define CHROME_VIEWS_BUTTON_H_
7 7
8 #include "chrome/views/base_button.h" 8 #include "chrome/views/base_button.h"
9 #include "skia/include/SkBitmap.h" 9 #include "skia/include/SkBitmap.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 class MouseEvent;
14
15 //////////////////////////////////////////////////////////////////////////////// 13 ////////////////////////////////////////////////////////////////////////////////
16 // 14 //
17 // Button 15 // Button
18 // 16 //
19 // A simple button class 17 // A simple button class
20 // 18 //
21 //////////////////////////////////////////////////////////////////////////////// 19 ////////////////////////////////////////////////////////////////////////////////
22 class Button : public BaseButton { 20 class Button : public BaseButton {
23 public: 21 public:
24 // 22 //
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Images. 73 // Images.
76 SkBitmap images_[kButtonStateCount]; 74 SkBitmap images_[kButtonStateCount];
77 75
78 // Alignment State. 76 // Alignment State.
79 HorizontalAlignment h_alignment_; 77 HorizontalAlignment h_alignment_;
80 VerticalAlignment v_alignment_; 78 VerticalAlignment v_alignment_;
81 79
82 // The tooltip text or empty string for none. 80 // The tooltip text or empty string for none.
83 std::wstring tooltip_text_; 81 std::wstring tooltip_text_;
84 82
85 DISALLOW_EVIL_CONSTRUCTORS(Button); 83 DISALLOW_COPY_AND_ASSIGN(Button);
86 }; 84 };
87 85
88 //////////////////////////////////////////////////////////////////////////////// 86 ////////////////////////////////////////////////////////////////////////////////
89 // 87 //
90 // ToggleButton 88 // ToggleButton
91 // 89 //
92 // A togglable button. It swaps out its graphics when toggled. 90 // A togglable button. It swaps out its graphics when toggled.
93 // 91 //
94 //////////////////////////////////////////////////////////////////////////////// 92 ////////////////////////////////////////////////////////////////////////////////
95 class ToggleButton : public Button { 93 class ToggleButton : public Button {
(...skipping 28 matching lines...) Expand all
124 // The parent class's tooltip_text_ is displayed when not toggled, and 122 // The parent class's tooltip_text_ is displayed when not toggled, and
125 // this one is shown when toggled. 123 // this one is shown when toggled.
126 std::wstring toggled_tooltip_text_; 124 std::wstring toggled_tooltip_text_;
127 125
128 DISALLOW_EVIL_CONSTRUCTORS(ToggleButton); 126 DISALLOW_EVIL_CONSTRUCTORS(ToggleButton);
129 }; 127 };
130 128
131 } // namespace views 129 } // namespace views
132 130
133 #endif // CHROME_VIEWS_BUTTON_H_ 131 #endif // CHROME_VIEWS_BUTTON_H_
134
OLDNEW
« no previous file with comments | « chrome/views/base_button.h ('k') | chrome/views/button_dropdown.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698