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

Side by Side Diff: chrome/browser/ui/views/page_info/chosen_object_row.cc

Issue 2744933002: Move Views Page Info UI code to its own folder. (Closed)
Patch Set: *shakes other fist at mass-rename.py* Created 3 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/ui/views/website_settings/chosen_object_row.h" 5 #include "chrome/browser/ui/views/page_info/chosen_object_row.h"
6 6
7 #include "chrome/browser/ui/views/website_settings/chosen_object_row_observer.h" 7 #include "chrome/browser/ui/views/page_info/chosen_object_row_observer.h"
8 #include "chrome/browser/ui/views/website_settings/website_settings_popup_view.h " 8 #include "chrome/browser/ui/views/page_info/website_settings_popup_view.h"
9 #include "ui/base/l10n/l10n_util.h" 9 #include "ui/base/l10n/l10n_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/resources/grit/ui_resources.h" 11 #include "ui/resources/grit/ui_resources.h"
12 #include "ui/views/controls/button/image_button.h" 12 #include "ui/views/controls/button/image_button.h"
13 #include "ui/views/controls/image_view.h" 13 #include "ui/views/controls/image_view.h"
14 #include "ui/views/controls/label.h" 14 #include "ui/views/controls/label.h"
15 #include "ui/views/layout/grid_layout.h" 15 #include "ui/views/layout/grid_layout.h"
16 16
17 ChosenObjectRow::ChosenObjectRow( 17 ChosenObjectRow::ChosenObjectRow(
18 std::unique_ptr<WebsiteSettingsUI::ChosenObjectInfo> info) 18 std::unique_ptr<WebsiteSettingsUI::ChosenObjectInfo> info)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 WebsiteSettingsUI::GetChosenObjectIcon(*info_, true); 74 WebsiteSettingsUI::GetChosenObjectIcon(*info_, true);
75 icon_->SetImage(image.ToImageSkia()); 75 icon_->SetImage(image.ToImageSkia());
76 76
77 RemoveChildView(delete_button_); 77 RemoveChildView(delete_button_);
78 delete delete_button_; 78 delete delete_button_;
79 delete_button_ = nullptr; 79 delete_button_ = nullptr;
80 80
81 for (ChosenObjectRowObserver& observer : observer_list_) 81 for (ChosenObjectRowObserver& observer : observer_list_)
82 observer.OnChosenObjectDeleted(*info_); 82 observer.OnChosenObjectDeleted(*info_);
83 } 83 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/page_info/chosen_object_row.h ('k') | chrome/browser/ui/views/page_info/chosen_object_row_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698