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

Unified Diff: chrome/browser/ui/app_list/app_list_controller_delegate.h

Issue 719203003: Parent the AppInfoDialog using a ModalDialogHost Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | ui/app_list/app_list.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_controller_delegate.h
diff --git a/chrome/browser/ui/app_list/app_list_controller_delegate.h b/chrome/browser/ui/app_list/app_list_controller_delegate.h
index 0580731f965bfb71e55c9477c11d432da526bb48..4a7555359f6f3e0e844f2871f3cf2d68b3505bcf 100644
--- a/chrome/browser/ui/app_list/app_list_controller_delegate.h
+++ b/chrome/browser/ui/app_list/app_list_controller_delegate.h
@@ -27,7 +27,11 @@ class InstallTracker;
namespace gfx {
class ImageSkia;
-class Rect;
+class Size;
+}
+
+namespace web_modal {
+class ModalDialogHost;
}
// Interface to allow the view delegate to call out to whatever is controlling
@@ -64,10 +68,13 @@ class AppListControllerDelegate {
// Get app list window.
virtual gfx::NativeWindow GetAppListWindow() = 0;
- // Get the content bounds of the app list in the screen. On platforms that
- // use views, this returns the bounds of the AppListView. Without views, this
+ // Get the host for child dialogs.
+ virtual web_modal::ModalDialogHost* GetDialogHost() = 0;
+
+ // Get the content aize of the app list in the screen. On platforms that
+ // use views, this returns the size of the AppListView. Without views, this
// returns a 0x0 rectangle.
- virtual gfx::Rect GetAppListBounds();
+ virtual gfx::Size GetAppListSize();
// Get the application icon to be used, if any, for the app list.
virtual gfx::ImageSkia GetWindowIcon() = 0;
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_controller_delegate.cc » ('j') | ui/app_list/app_list.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698