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

Unified Diff: webkit/glue/webview_delegate.h

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_delegate.h
===================================================================
--- webkit/glue/webview_delegate.h (revision 23543)
+++ webkit/glue/webview_delegate.h (working copy)
@@ -34,6 +34,7 @@
#include "webkit/api/public/WebNavigationType.h"
#include "webkit/api/public/WebTextDirection.h"
#include "webkit/api/public/WebWidgetClient.h"
+#include "webkit/chaos/GeolocationPowerbox.h"
#include "webkit/glue/context_menu.h"
namespace webkit_glue {
@@ -42,6 +43,7 @@
namespace WebCore {
class AccessibilityObject;
+class KURL;
}
namespace WebKit {
@@ -99,7 +101,17 @@
DISALLOW_COPY_AND_ASSIGN(WebFileChooserCallback);
};
+class ChooseGeolocationProviderCallback {
+ public:
+ ChooseGeolocationProviderCallback() {}
+ virtual ~ChooseGeolocationProviderCallback() {}
+ virtual void OnProviderChosen(
+ WebCore::GeolocationPowerbox::ProviderId provider_id) = 0;
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ChooseGeolocationProviderCallback);
+};
+
// Inheritance here is somewhat weird, but since a WebView is a WebWidget,
// it makes sense that a WebViewDelegate is a WebWidgetClient.
class WebViewDelegate : virtual public WebKit::WebWidgetClient {
@@ -621,6 +633,10 @@
delete file_chooser;
}
+ virtual void chooseGeolocationProvider(
+ ChooseGeolocationProviderCallback *geolocation_provider_callback,
+ const WebCore::KURL &url) = 0;
+
// @abstract Shows a context menu with commands relevant to a specific
// element on the current page.
// @param webview The WebView sending the delegate method.
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698