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

Unified Diff: third_party/WebKit/WebCore/page/Chrome.cpp

Issue 46097: WebKit merge 41660:41709 (WebKit side).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 | « third_party/WebKit/WebCore/page/Chrome.h ('k') | third_party/WebKit/WebCore/page/ChromeClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/page/Chrome.cpp
===================================================================
--- third_party/WebKit/WebCore/page/Chrome.cpp (revision 11711)
+++ third_party/WebKit/WebCore/page/Chrome.cpp (working copy)
@@ -28,6 +28,7 @@
#include "FloatRect.h"
#include "Frame.h"
#include "FrameTree.h"
+#include "Geolocation.h"
#include "HTMLFormElement.h"
#include "HTMLInputElement.h"
#include "HTMLNames.h"
@@ -387,14 +388,14 @@
m_client->enableSuddenTermination();
}
-bool Chrome::shouldAllowGeolocationForFrame(Frame* frame)
+void Chrome::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation)
{
// Defer loads in case the client method runs a new event loop that would
// otherwise cause the load to continue while we're in the middle of executing JavaScript.
PageGroupLoadDeferrer deferrer(m_page, true);
ASSERT(frame);
- return m_client->shouldAllowGeolocationForFrame(frame);
+ m_client->requestGeolocationPermissionForFrame(frame, geolocation);
}
void Chrome::runOpenPanel(Frame* frame, PassRefPtr<FileChooser> fileChooser)
« no previous file with comments | « third_party/WebKit/WebCore/page/Chrome.h ('k') | third_party/WebKit/WebCore/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698