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

Side by Side Diff: ui/message_center/views/notification_button.h

Issue 2680643002: Add old_state parameter to CustomButton::StateChanged (Closed)
Patch Set: Created 3 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
« no previous file with comments | « ui/chromeos/ime/candidate_view.cc ('k') | ui/message_center/views/notification_button.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
(...skipping 19 matching lines...) Expand all
30 // Overridden from views::View: 30 // Overridden from views::View:
31 gfx::Size GetPreferredSize() const override; 31 gfx::Size GetPreferredSize() const override;
32 int GetHeightForWidth(int width) const override; 32 int GetHeightForWidth(int width) const override;
33 void OnPaint(gfx::Canvas* canvas) override; 33 void OnPaint(gfx::Canvas* canvas) override;
34 void OnFocus() override; 34 void OnFocus() override;
35 void OnBlur() override; 35 void OnBlur() override;
36 void ViewHierarchyChanged( 36 void ViewHierarchyChanged(
37 const ViewHierarchyChangedDetails& details) override; 37 const ViewHierarchyChangedDetails& details) override;
38 38
39 // Overridden from views::CustomButton: 39 // Overridden from views::CustomButton:
40 void StateChanged() override; 40 void StateChanged(ButtonState old_state) override;
41 41
42 private: 42 private:
43 views::ImageView* icon_; 43 views::ImageView* icon_;
44 views::Label* title_; 44 views::Label* title_;
45 std::unique_ptr<views::Painter> focus_painter_; 45 std::unique_ptr<views::Painter> focus_painter_;
46 46
47 DISALLOW_COPY_AND_ASSIGN(NotificationButton); 47 DISALLOW_COPY_AND_ASSIGN(NotificationButton);
48 }; 48 };
49 49
50 } // namespace message_center 50 } // namespace message_center
51 51
52 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_ 52 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/chromeos/ime/candidate_view.cc ('k') | ui/message_center/views/notification_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698