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

Side by Side Diff: chrome/browser/ui/views/website_settings/chosen_object_view.h

Issue 2272793007: Material Page Info (Views, 1/3): Rename {ChosenObject, PermissionSelector}View classes to {...}Row. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix rebase-induced formatting throughout permission_selector_row. Created 4 years, 3 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOSEN_OBJECT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOSEN_OBJECT_VIEW_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
10 #include "ui/views/controls/button/button.h"
11 #include "ui/views/view.h"
12
13 namespace views {
14 class ImageButton;
15 class ImageView;
16 }
17
18 class ChosenObjectViewObserver;
19
20 class ChosenObjectView : public views::View, public views::ButtonListener {
21 public:
22 explicit ChosenObjectView(
23 std::unique_ptr<WebsiteSettingsUI::ChosenObjectInfo> info);
24
25 void AddObserver(ChosenObjectViewObserver* observer);
26
27 private:
28 ~ChosenObjectView() override;
29
30 // views::ButtonListener implementation.
31 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
32
33 views::ImageView* icon_; // Owned by the views hierarchy.
34 views::ImageButton* delete_button_; // Owned by the views hierarchy.
35
36 base::ObserverList<ChosenObjectViewObserver> observer_list_;
37 std::unique_ptr<WebsiteSettingsUI::ChosenObjectInfo> info_;
38
39 DISALLOW_COPY_AND_ASSIGN(ChosenObjectView);
40 };
41
42 #endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOSEN_OBJECT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698