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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc

Issue 340453004: Added Pin/Unpin button to the App Info Dialog on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename fixes Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
index 26fce79b753313cce4d94ca07998445cf3655761..e7f812e3af395c2b8cce36c4034214452b0604ac 100644
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_views.cc
@@ -30,7 +30,7 @@ void ShowAppInfoDialog(AppListControllerDelegate* app_list_controller_delegate,
DCHECK(app_list_window);
gfx::Rect app_list_bounds = app_list_controller_delegate->GetAppListBounds();
- views::View* app_info_view = new AppInfoDialog(profile, app);
+ views::View* app_info_view = new AppInfoDialog(app_list_window, profile, app);
views::Widget* dialog_widget = AppListDialogContentsView::CreateDialogWidget(
app_list_window,
app_list_bounds,
@@ -39,7 +39,9 @@ void ShowAppInfoDialog(AppListControllerDelegate* app_list_controller_delegate,
dialog_widget->Show();
}
-AppInfoDialog::AppInfoDialog(Profile* profile, const extensions::Extension* app)
+AppInfoDialog::AppInfoDialog(gfx::NativeWindow parent_window,
+ Profile* profile,
+ const extensions::Extension* app)
: dialog_header_(NULL), dialog_body_(NULL), dialog_footer_(NULL) {
views::GridLayout* layout = new views::GridLayout(this);
SetLayoutManager(layout);
@@ -59,7 +61,7 @@ AppInfoDialog::AppInfoDialog(Profile* profile, const extensions::Extension* app)
dialog_header_->SetBorder(views::Border::CreateSolidSidedBorder(
0, 0, kHorizontalSeparatorHeight, 0, app_list::kDialogSeparatorColor));
- dialog_footer_ = new AppInfoFooterPanel(profile, app);
+ dialog_footer_ = new AppInfoFooterPanel(parent_window, profile, app);
dialog_footer_->SetBorder(views::Border::CreateSolidSidedBorder(
kHorizontalSeparatorHeight, 0, 0, 0, app_list::kDialogSeparatorColor));

Powered by Google App Engine
This is Rietveld 408576698