Index: chrome/browser/ui/views/extensions/native_app_window_views.cc |
diff --git a/chrome/browser/ui/views/extensions/native_app_window_views.cc b/chrome/browser/ui/views/extensions/native_app_window_views.cc |
index a030010237ab9f69cde219a1caebcfc252f880f8..d74646fda5b651506841c7dd758642054d9d776e 100644 |
--- a/chrome/browser/ui/views/extensions/native_app_window_views.cc |
+++ b/chrome/browser/ui/views/extensions/native_app_window_views.cc |
@@ -22,6 +22,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_view.h" |
#include "extensions/common/draggable_region.h" |
+#include "ui/gfx/screen.h" |
#include "ui/views/controls/webview/webview.h" |
#include "ui/views/widget/widget.h" |
#include "ui/views/window/non_client_view.h" |
@@ -406,6 +407,11 @@ gfx::Insets NativeAppWindowViews::GetFrameInsets() const { |
return window_bounds.InsetsFrom(client_bounds); |
} |
+gfx::Rect NativeAppWindowViews::GetWindowWorkArea() const { |
+ return gfx::Screen::GetScreenFor(window_->GetNativeView())-> |
+ GetDisplayMatching(GetBounds()).work_area(); |
+} |
+ |
gfx::NativeView NativeAppWindowViews::GetHostView() const { |
return window_->GetNativeView(); |
} |