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

Unified Diff: chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.h

Issue 1861233003: Prepare for building with enable_app_list=0 on Desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase for r392580 - app_list_shower_views_unittest deleted by that rev Created 4 years, 7 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_container.h
diff --git a/chrome/browser/ui/views/app_list/app_list_dialog_container.h b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.h
similarity index 74%
rename from chrome/browser/ui/views/app_list/app_list_dialog_container.h
rename to chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.h
index 089c3d043e99c4e7b8a7e0291fbdaef56aab802c..15feb8fc4eb53e09346ea62d630f3cbe4032ad0b 100644
--- a/chrome/browser/ui/views/app_list/app_list_dialog_container.h
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_dialog_container.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
-#define CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
+#ifndef CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_CONTAINER_H_
+#define CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_CONTAINER_H_
#include "base/callback_forward.h"
#include "ui/gfx/geometry/size.h"
@@ -13,6 +13,8 @@ class DialogDelegateView;
class View;
}
+#if defined(ENABLE_APP_LIST)
+
// Creates a new dialog containing |view| that can be displayed inside the app
// list, covering the entire app list and adding a close button. Takes ownership
// of |view|.
@@ -20,6 +22,8 @@ views::DialogDelegateView* CreateAppListContainerForView(
views::View* view,
const base::Closure& close_callback);
+#endif // ENABLE_APP_LIST
+
// Creates a new native dialog of the given |size| containing |view| with a
// close button and draggable titlebar. Takes ownership of |view|.
views::DialogDelegateView* CreateDialogContainerForView(
@@ -27,4 +31,4 @@ views::DialogDelegateView* CreateDialogContainerForView(
const gfx::Size& size,
const base::Closure& close_callback);
-#endif // CHROME_BROWSER_UI_VIEWS_APP_LIST_APP_LIST_DIALOG_CONTAINER_H_
+#endif // CHROME_BROWSER_UI_VIEWS_APPS_APP_INFO_DIALOG_APP_INFO_DIALOG_CONTAINER_H_

Powered by Google App Engine
This is Rietveld 408576698