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

Unified Diff: extensions/components/native_app_window/native_app_window_views.cc

Issue 2551773002: MacViews: Exploring removal of window-modal sheets.
Patch Set: Created 4 years 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: extensions/components/native_app_window/native_app_window_views.cc
diff --git a/extensions/components/native_app_window/native_app_window_views.cc b/extensions/components/native_app_window/native_app_window_views.cc
index f4abafac3c9ae2539b15b033ee1fbf5682effa73..5786c4a9861140904ed55937e5168b02883f90a7 100644
--- a/extensions/components/native_app_window/native_app_window_views.cc
+++ b/extensions/components/native_app_window/native_app_window_views.cc
@@ -180,6 +180,10 @@ gfx::Point NativeAppWindowViews::GetDialogPosition(const gfx::Size& size) {
app_window_size.height() / 2 - size.height() / 2);
}
+gfx::Point NativeAppWindowViews::GetHostPosition() const {
+ return widget_->GetClientAreaBoundsInScreen().origin();
+}
+
gfx::Size NativeAppWindowViews::GetMaximumDialogSize() {
return widget_->GetWindowBoundsInScreen().size();
}
« no previous file with comments | « extensions/components/native_app_window/native_app_window_views.h ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698