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

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

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_NOTIFIER_SETTINGS_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void SetChecked(bool checked); 69 void SetChecked(bool checked);
70 bool checked() const; 70 bool checked() const;
71 bool has_learn_more() const; 71 bool has_learn_more() const;
72 const Notifier& notifier() const; 72 const Notifier& notifier() const;
73 73
74 void SendLearnMorePressedForTest(); 74 void SendLearnMorePressedForTest();
75 75
76 private: 76 private:
77 // Overridden from views::ButtonListener: 77 // Overridden from views::ButtonListener:
78 void ButtonPressed(views::Button* button, const ui::Event& event) override; 78 void ButtonPressed(views::Button* button, const ui::Event& event) override;
79 void GetAccessibleState(ui::AXViewState* state) override; 79 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
80 80
81 bool ShouldHaveLearnMoreButton() const; 81 bool ShouldHaveLearnMoreButton() const;
82 // Helper function to reset the layout when the view has substantially 82 // Helper function to reset the layout when the view has substantially
83 // changed. 83 // changed.
84 void GridChanged(bool has_learn_more, bool has_icon_view); 84 void GridChanged(bool has_learn_more, bool has_icon_view);
85 85
86 NotifierSettingsProvider* provider_; // Weak. 86 NotifierSettingsProvider* provider_; // Weak.
87 const std::unique_ptr<Notifier> notifier_; 87 const std::unique_ptr<Notifier> notifier_;
88 // |icon_view_| is owned by us because sometimes we don't leave it 88 // |icon_view_| is owned by us because sometimes we don't leave it
89 // in the view hierarchy. 89 // in the view hierarchy.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 NotifierSettingsProvider* provider_; 121 NotifierSettingsProvider* provider_;
122 std::set<NotifierButton*> buttons_; 122 std::set<NotifierButton*> buttons_;
123 std::unique_ptr<ui::ComboboxModel> notifier_group_model_; 123 std::unique_ptr<ui::ComboboxModel> notifier_group_model_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); 125 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView);
126 }; 126 };
127 127
128 } // namespace message_center 128 } // namespace message_center
129 129
130 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ 130 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_view.cc ('k') | ui/message_center/views/notifier_settings_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698