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

Unified Diff: third_party/WebKit/WebCore/page/ChromeClient.h

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.cpp ('k') | third_party/WebKit/WebCore/page/Geolocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/page/ChromeClient.h
===================================================================
--- third_party/WebKit/WebCore/page/ChromeClient.h (revision 11711)
+++ third_party/WebKit/WebCore/page/ChromeClient.h (working copy)
@@ -42,6 +42,7 @@
class FileChooser;
class FloatRect;
class Frame;
+ class Geolocation;
class HitTestResult;
class IntRect;
class Node;
@@ -152,8 +153,10 @@
float value, float proportion, ScrollbarControlPartMask);
virtual bool paintCustomScrollCorner(GraphicsContext*, const FloatRect&);
- virtual bool shouldAllowGeolocationForFrame(Frame*) { return false; }
-
+ // This is an asynchronous call. The ChromeClient can display UI asking the user for permission
+ // to use Geolococation. The ChromeClient must call Geolocation::setShouldClearCache() appropriately.
+ virtual void requestGeolocationPermissionForFrame(Frame*, Geolocation*) { }
+
virtual void runOpenPanel(Frame*, PassRefPtr<FileChooser>) = 0;
// Notification that the given form element has changed. This function
« no previous file with comments | « third_party/WebKit/WebCore/page/Chrome.cpp ('k') | third_party/WebKit/WebCore/page/Geolocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698