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

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

Issue 2966673002: Add ripple effect to action in expand button. (Closed)
Patch Set: Rebased. Created 3 years, 5 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 | « no previous file | ui/message_center/views/notification_header_view.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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_HEADER_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/message_center/views/padded_button.h" 9 #include "ui/message_center/views/padded_button.h"
10 #include "ui/views/controls/button/custom_button.h" 10 #include "ui/views/controls/button/custom_button.h"
(...skipping 24 matching lines...) Expand all
35 bool IsSettingsButtonEnabled(); 35 bool IsSettingsButtonEnabled();
36 bool IsCloseButtonEnabled(); 36 bool IsCloseButtonEnabled();
37 bool IsCloseButtonFocused(); 37 bool IsCloseButtonFocused();
38 38
39 // CustomButton override: 39 // CustomButton override:
40 std::unique_ptr<views::InkDrop> CreateInkDrop() override; 40 std::unique_ptr<views::InkDrop> CreateInkDrop() override;
41 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override; 41 std::unique_ptr<views::InkDropRipple> CreateInkDropRipple() const override;
42 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() 42 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight()
43 const override; 43 const override;
44 44
45 views::ImageButton* expand_button() { return expand_button_; } 45 views::ImageView* expand_button() { return expand_button_; }
46 views::ImageButton* settings_button() { return settings_button_; } 46 views::ImageButton* settings_button() { return settings_button_; }
47 views::ImageButton* close_button() { return close_button_; } 47 views::ImageButton* close_button() { return close_button_; }
48 48
49 private: 49 private:
50 void UpdateControlButtonsVisibility(); 50 void UpdateControlButtonsVisibility();
51 void UpdateSummaryTextVisibility(); 51 void UpdateSummaryTextVisibility();
52 52
53 views::Label* app_name_view_ = nullptr; 53 views::Label* app_name_view_ = nullptr;
54 views::Label* summary_text_divider_ = nullptr; 54 views::Label* summary_text_divider_ = nullptr;
55 views::Label* summary_text_view_ = nullptr; 55 views::Label* summary_text_view_ = nullptr;
56 views::ImageView* app_icon_view_ = nullptr; 56 views::ImageView* app_icon_view_ = nullptr;
57 views::ImageButton* expand_button_ = nullptr; 57 views::ImageView* expand_button_ = nullptr;
58 PaddedButton* settings_button_ = nullptr; 58 PaddedButton* settings_button_ = nullptr;
59 PaddedButton* close_button_ = nullptr; 59 PaddedButton* close_button_ = nullptr;
60 60
61 bool settings_button_enabled_ = false; 61 bool settings_button_enabled_ = false;
62 bool close_button_enabled_ = false; 62 bool close_button_enabled_ = false;
63 bool is_control_buttons_visible_ = false; 63 bool is_control_buttons_visible_ = false;
64 bool has_progress_ = false; 64 bool has_progress_ = false;
65 bool has_overflow_indicator_ = false; 65 bool has_overflow_indicator_ = false;
66 66
67 DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView); 67 DISALLOW_COPY_AND_ASSIGN(NotificationHeaderView);
68 }; 68 };
69 69
70 } // namespace message_center 70 } // namespace message_center
71 71
72 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_ 72 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_HEADER_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/notification_header_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698