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

Side by Side Diff: views/controls/button/custom_button.h

Issue 126235: Adds a widget that when clicked creates a new browser window. It's not... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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/browser/views/new_browser_window_widget.cc ('k') | no next file » | 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 VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ 5 #ifndef VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_
6 #define VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ 6 #define VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_
7 7
8 #include "app/animation.h" 8 #include "app/animation.h"
9 #include "views/controls/button/button.h" 9 #include "views/controls/button/button.h"
10 10
11 class ThrobAnimation; 11 class ThrobAnimation;
12 12
13 namespace views { 13 namespace views {
14 14
15 // A button with custom rendering. The common base class of IconButton and 15 // A button with custom rendering. The common base class of ImageButton and
16 // TextButton. 16 // TextButton.
17 class CustomButton : public Button, 17 class CustomButton : public Button,
18 public AnimationDelegate { 18 public AnimationDelegate {
19 public: 19 public:
20 virtual ~CustomButton(); 20 virtual ~CustomButton();
21 21
22 // Possible states 22 // Possible states
23 enum ButtonState { 23 enum ButtonState {
24 BS_NORMAL = 0, 24 BS_NORMAL = 0,
25 BS_HOT, 25 BS_HOT,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // Mouse event flags which can trigger button actions. 97 // Mouse event flags which can trigger button actions.
98 int triggerable_event_flags_; 98 int triggerable_event_flags_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(CustomButton); 100 DISALLOW_COPY_AND_ASSIGN(CustomButton);
101 }; 101 };
102 102
103 } // namespace views 103 } // namespace views
104 104
105 #endif // VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_ 105 #endif // VIEWS_CONTROLS_BUTTON_CUSTOM_BUTTON_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/new_browser_window_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698