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

Unified Diff: Source/web/WebPagePopupImpl.cpp

Issue 892083003: Revert Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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/web/WebPagePopupImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebPagePopupImpl.cpp
diff --git a/Source/web/WebPagePopupImpl.cpp b/Source/web/WebPagePopupImpl.cpp
index b01f75fad28f2e2c720009712bec23933b207849..9909058018d3d260c3c93a2571702f591f790475 100644
--- a/Source/web/WebPagePopupImpl.cpp
+++ b/Source/web/WebPagePopupImpl.cpp
@@ -48,7 +48,6 @@
#include "modules/accessibility/AXObjectCacheImpl.h"
#include "platform/EventDispatchForbiddenScope.h"
#include "platform/LayoutTestSupport.h"
-#include "platform/ScriptForbiddenScope.h"
#include "platform/TraceEvent.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebCompositeAndReadbackAsyncCallback.h"
@@ -174,12 +173,6 @@ private:
m_popup->m_webView->client()->postAccessibilityEvent(WebAXObject(obj), static_cast<WebAXEvent>(notification));
}
- virtual void setToolTip(const String& tooltipText, TextDirection dir) override
- {
- if (m_popup->m_webView->client())
- m_popup->m_webView->client()->setToolTipText(tooltipText, toWebTextDirection(dir));
- }
-
WebPagePopupImpl* m_popup;
};
@@ -262,21 +255,9 @@ bool WebPagePopupImpl::initializePage()
RefPtr<SharedBuffer> data = SharedBuffer::create();
m_popupClient->writeDocument(data.get());
frame->loader().load(FrameLoadRequest(0, blankURL(), SubstituteData(data, "text/html", "UTF-8", KURL(), ForceSynchronousLoad)));
-
- m_popupClient->didWriteDocument(*frame->document());
-
return true;
}
-void WebPagePopupImpl::postMessage(const String& message)
-{
- if (!m_page)
- return;
- ScriptForbiddenScope::AllowUserAgentScript allowScript;
- if (LocalDOMWindow* window = toLocalFrame(m_page->mainFrame())->localDOMWindow())
- window->dispatchEvent(MessageEvent::create(message));
-}
-
void WebPagePopupImpl::destroyPage()
{
if (!m_page)
« no previous file with comments | « Source/web/WebPagePopupImpl.h ('k') | Source/web/web.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698