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

Unified Diff: ui/app_list/views/contents_view.cc

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
« ui/app_list/app_list.gyp ('K') | « ui/app_list/views/contents_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/contents_view.cc
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc
index 58323584b784aa5ab7a30fb2256baa6efbb94a3f..7e1a51a5eaa2c6c06fade848130f4e54c5fc3246 100644
--- a/ui/app_list/views/contents_view.cc
+++ b/ui/app_list/views/contents_view.cc
@@ -25,6 +25,7 @@
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/view_model.h"
#include "ui/views/view_model_utils.h"
+#include "ui/views/widget/widget.h"
namespace app_list {
@@ -402,4 +403,22 @@ void ContentsView::TransitionChanged() {
UpdatePageBounds();
}
+gfx::NativeView ContentsView::GetHostView() const {
+ return GetWidget()->GetNativeView();
+}
+
+gfx::Point ContentsView::GetDialogPosition(const gfx::Size& size) {
+ gfx::Rect screen_bounds = GetBoundsInScreen();
+ return screen_bounds.origin();
+}
+
+void ContentsView::AddObserver(web_modal::ModalDialogHostObserver* observer) {
+ NOTIMPLEMENTED();
+}
+
+void ContentsView::RemoveObserver(
+ web_modal::ModalDialogHostObserver* observer) {
+ NOTIMPLEMENTED();
+}
+
} // namespace app_list
« ui/app_list/app_list.gyp ('K') | « ui/app_list/views/contents_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698