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

Unified Diff: Source/platform/PlatformScreen.cpp

Issue 1109213002: Make createWindow (mostly) work with OOPIF (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix style, use FrameView::root Created 5 years, 8 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
« no previous file with comments | « Source/platform/PlatformScreen.h ('k') | Source/web/PopupContainer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformScreen.cpp
diff --git a/Source/platform/PlatformScreen.cpp b/Source/platform/PlatformScreen.cpp
index 60b2ee3b8ba9518e73b1c6e9692fb4594a4b9940..dcfd0e4539e09afac93b1be341a2c19d5f6306f0 100644
--- a/Source/platform/PlatformScreen.cpp
+++ b/Source/platform/PlatformScreen.cpp
@@ -80,12 +80,9 @@ IntRect screenRect(Widget* widget)
return IntRect(hostWindow->screenInfo().rect);
}
-IntRect screenAvailableRect(Widget* widget)
+IntRect screenAvailableRect(const HostWindow& hostWindow)
{
- HostWindow* hostWindow = toHostWindow(widget);
esprehn 2015/05/07 17:27:17 Yay, I dream of the day when Widget is no more.
- if (!hostWindow)
- return IntRect();
- return IntRect(hostWindow->screenInfo().availableRect);
+ return IntRect(hostWindow.screenInfo().availableRect);
}
uint16_t screenOrientationAngle(Widget* widget)
« no previous file with comments | « Source/platform/PlatformScreen.h ('k') | Source/web/PopupContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698