Changeset 69673 in webkit
- Timestamp:
- Oct 13, 2010 11:01:39 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r69666 r69673 1 2010-10-13 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Steve Block. 4 5 First step towards client-based Geolocation in Chromium. Build 6 fixes for CLIENT_BASED_GEOLOCATION preprocessor feature define. 7 https://bugs.webkit.org/show_bug.cgi?id=47586 8 9 * WebCore.gyp/WebCore.gyp: 10 * platform/chromium/ChromiumBridge.h: 11 * platform/chromium/GeolocationServiceChromium.cpp: 12 1 13 2010-10-13 Steve Block <steveblock@google.com> 2 14 -
trunk/WebCore/WebCore.gyp/WebCore.gyp
r69549 r69673 1203 1203 ], 1204 1204 }], 1205 ['"ENABLE_CLIENT_BASED_GEOLOCATION=1" in feature_defines', { 1206 'sources/': [ 1207 ['exclude', '/GeolocationService.*$'], 1208 ], 1209 }], 1205 1210 ], 1206 1211 }, -
trunk/WebCore/platform/chromium/ChromiumBridge.h
r69586 r69673 155 155 static void notifyFormStateChanged(const Document*); 156 156 157 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 157 158 // Geolocation -------------------------------------------------------- 158 159 static GeolocationServiceBridge* createGeolocationServiceBridge(GeolocationServiceChromium*); 159 160 #endif 160 161 // Databases ---------------------------------------------------------- 161 162 // Returns a handle to the DB file and ooptionally a handle to its containing directory -
trunk/WebCore/platform/chromium/GeolocationServiceChromium.cpp
r67387 r69673 33 33 34 34 #include "ChromiumBridge.h" 35 36 #if ENABLE(CLIENT_BASED_GEOLOCATION) 37 #error "This file should not be compiled when ENABLE(CLIENT_BASED_GEOLOCATION)" 38 #endif // ENABLE(CLIENT_BASED_GEOLOCATION) 35 39 36 40 namespace WebCore { -
trunk/WebKit/chromium/ChangeLog
r69670 r69673 1 2010-10-13 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Steve Block. 4 5 First step towards client-based Geolocation in Chromium. Build 6 fixes for CLIENT_BASED_GEOLOCATION preprocessor feature define. 7 https://bugs.webkit.org/show_bug.cgi?id=47586 8 9 * WebKit.gyp: 10 * src/ChromeClientImpl.cpp: 11 (WebKit::ChromeClientImpl::requestGeolocationPermissionForFrame): 12 (WebKit::ChromeClientImpl::cancelGeolocationPermissionRequestForFrame): 13 * src/ChromiumBridge.cpp: 14 * src/WebGeolocationServiceMock.cpp: 15 (WebKit::WebGeolocationServiceMock::createWebGeolocationServiceMock): 16 (WebKit::WebGeolocationServiceMock::setMockGeolocationPermission): 17 (WebKit::WebGeolocationServiceMock::setMockGeolocationPosition): 18 (WebKit::WebGeolocationServiceMock::setMockGeolocationError): 19 1 20 2010-10-11 Andrei Popescu <andreip@google.com> 2 21 -
trunk/WebKit/chromium/WebKit.gyp
r69611 r69673 647 647 ], 648 648 }], 649 ['"ENABLE_CLIENT_BASED_GEOLOCATION=1" in feature_defines', { 650 'sources/': [ 651 ['exclude', 'WebGeolocationService.*$'], 652 ['include', 'WebGeolocationServiceMock.*'], 653 ], 654 }] 649 655 ], 650 656 }, -
trunk/WebKit/chromium/src/ChromeClientImpl.cpp
r69274 r69673 772 772 void ChromeClientImpl::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation) 773 773 { 774 #if ENABLE(CLIENT_BASED_GEOLOCATION) 775 // FIXME: Implement Client-based Geolocation Permissions 776 #else 774 777 GeolocationServiceChromium* geolocationService = static_cast<GeolocationServiceChromium*>(geolocation->getGeolocationService()); 775 778 geolocationService->geolocationServiceBridge()->attachBridgeIfNeeded(); 776 779 m_webView->client()->geolocationService()->requestPermissionForFrame(geolocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->url()); 780 #endif 777 781 } 778 782 779 783 void ChromeClientImpl::cancelGeolocationPermissionRequestForFrame(Frame* frame, Geolocation* geolocation) 780 784 { 785 #if ENABLE(CLIENT_BASED_GEOLOCATION) 786 // FIXME: Implement Client-based Geolocation Permissions 787 #else 781 788 GeolocationServiceChromium* geolocationService = static_cast<GeolocationServiceChromium*>(geolocation->getGeolocationService()); 782 789 m_webView->client()->geolocationService()->cancelPermissionRequestForFrame(geolocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->url()); 790 #endif 783 791 } 784 792 -
trunk/WebKit/chromium/src/ChromiumBridge.cpp
r69586 r69673 87 87 #include "PluginData.h" 88 88 #include "SharedBuffer.h" 89 90 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 89 91 #include "WebGeolocationServiceBridgeImpl.h" 92 #endif 93 90 94 #include "Worker.h" 91 95 #include "WorkerContextProxy.h" … … 466 470 #endif 467 471 472 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 468 473 // Geolocation ---------------------------------------------------------------- 469 474 … … 472 477 return createGeolocationServiceBridgeImpl(geolocationServiceChromium); 473 478 } 479 #endif 474 480 475 481 // Databases ------------------------------------------------------------------ -
trunk/WebKit/chromium/src/WebGeolocationServiceMock.cpp
r67387 r69673 43 43 #if ENABLE(GEOLOCATION) 44 44 45 #if ENABLE(CLIENT_BASED_GEOLOCATION) 46 // FIXME: Implement mock bindings for client-based geolocation. Ultimately 47 // move to another class and remove WebGeolocationService*. 48 49 namespace WebKit { 50 51 class WebGeolocationServiceMockClientBasedImpl : public WebGeolocationServiceMock { 52 }; 53 54 WebGeolocationServiceMock* WebGeolocationServiceMock::createWebGeolocationServiceMock() 55 { 56 return new WebGeolocationServiceMockClientBasedImpl; 57 } 58 59 void WebGeolocationServiceMock::setMockGeolocationPermission(bool allowed) 60 { 61 // FIXME: Implement mock binding 62 } 63 64 void WebGeolocationServiceMock::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 65 { 66 // FIXME: Implement mock binding 67 } 68 69 void WebGeolocationServiceMock::setMockGeolocationError(int errorCode, const WebString& message) 70 { 71 // FIXME: Implement mock binding 72 } 73 74 } // namespace WebKit 75 76 #else 45 77 using WebCore::Coordinates; 46 78 using WebCore::Frame; … … 242 274 } // namespace WebKit 243 275 276 #endif // ENABLE(CLIENT_BASED_GEOLOCATION) 244 277 #endif // ENABLE(GEOLOCATION) -
trunk/WebKitTools/ChangeLog
r69671 r69673 1 2010-10-13 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Steve Block. 4 5 First step towards client-based Geolocation in Chromium. Build 6 fixes for CLIENT_BASED_GEOLOCATION preprocessor feature define. 7 https://bugs.webkit.org/show_bug.cgi?id=47586 8 9 * DumpRenderTree/chromium/WebViewHost.cpp: 10 * DumpRenderTree/chromium/WebViewHost.h: 11 1 12 2010-10-13 Adam Roben <aroben@apple.com> 2 13 -
trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.cpp
r69550 r69673 560 560 } 561 561 562 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 562 563 WebKit::WebGeolocationService* WebViewHost::geolocationService() 563 564 { … … 566 567 return m_geolocationServiceMock.get(); 567 568 } 569 #endif 568 570 569 571 WebSpeechInputController* WebViewHost::speechInputController(WebKit::WebSpeechInputListener* listener) -
trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.h
r69550 r69673 130 130 virtual void postAccessibilityNotification(const WebKit::WebAccessibilityObject&, WebKit::WebAccessibilityNotification); 131 131 virtual WebKit::WebNotificationPresenter* notificationPresenter(); 132 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 132 133 virtual WebKit::WebGeolocationService* geolocationService(); 134 #endif 133 135 virtual WebKit::WebSpeechInputController* speechInputController(WebKit::WebSpeechInputListener*); 134 136 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); … … 288 290 bool m_isPainting; 289 291 292 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 290 293 // Geolocation 291 294 OwnPtr<WebKit::WebGeolocationServiceMock> m_geolocationServiceMock; 295 #endif 292 296 293 297 OwnPtr<TestNavigationController*> m_navigationController;
Note: See TracChangeset
for help on using the changeset viewer.