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

Unified Diff: Source/core/page/PagePopupController.cpp

Issue 1087743002: Support multiple displays for PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed IntRect inclusion 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/core/page/PagePopupController.h ('k') | Source/core/page/PagePopupController.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/PagePopupController.cpp
diff --git a/Source/core/page/PagePopupController.cpp b/Source/core/page/PagePopupController.cpp
index f12b3ff82550334df5e70c356b5e5f9b4905fdc0..7bdb7c4210fe12dcb6165f647811b11853445d6d 100644
--- a/Source/core/page/PagePopupController.cpp
+++ b/Source/core/page/PagePopupController.cpp
@@ -31,21 +31,23 @@
#include "config.h"
#include "core/page/PagePopupController.h"
+#include "core/page/PagePopup.h"
#include "core/page/PagePopupClient.h"
#include "platform/text/PlatformLocale.h"
#include "public/platform/Platform.h"
namespace blink {
-PagePopupController::PagePopupController(PagePopupClient* client)
- : m_popupClient(client)
+PagePopupController::PagePopupController(PagePopup& popup, PagePopupClient* client)
+ : m_popup(popup)
+ , m_popupClient(client)
{
ASSERT(client);
}
-PassRefPtrWillBeRawPtr<PagePopupController> PagePopupController::create(PagePopupClient* client)
+PassRefPtrWillBeRawPtr<PagePopupController> PagePopupController::create(PagePopup& popup, PagePopupClient* client)
{
- return adoptRefWillBeNoop(new PagePopupController(client));
+ return adoptRefWillBeNoop(new PagePopupController(popup, client));
}
void PagePopupController::setValueAndClosePopup(int numValue, const String& stringValue)
@@ -119,4 +121,9 @@ void PagePopupController::histogramEnumeration(const String& name, int sample, i
blink::Platform::current()->histogramEnumeration(name.utf8().data(), sample, boundaryValue);
}
+void PagePopupController::setWindowRect(int x, int y, int width, int height)
+{
+ m_popup.setWindowRect(IntRect(x, y, width, height));
+}
+
}
« no previous file with comments | « Source/core/page/PagePopupController.h ('k') | Source/core/page/PagePopupController.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698