Add geolocation support (issue #365).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@780 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-09-14 19:04:45 +00:00
parent 2705f19cf6
commit 3cf6d92539
35 changed files with 1219 additions and 4 deletions

View File

@@ -364,6 +364,12 @@ void CefBrowserImpl::CloseDevTools() {
base::Bind(&CefBrowserImpl::UIT_CloseDevTools, this));
}
WebKit::WebGeolocationClient* CefBrowserImpl::UIT_GetGeolocationClient() {
if (!geolocation_client_)
geolocation_client_ = new CefGeolocationClient(this);
return geolocation_client_;
}
bool CefBrowserImpl::GetSize(PaintElementType type, int& width, int& height) {
if (!CefThread::CurrentlyOn(CefThread::UI)) {
NOTREACHED() << "called on invalid thread";