| 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));
|
| +}
|
| +
|
| }
|
|
|