Changeset 75367 in webkit
- Timestamp:
- Jan 10, 2011 3:41:44 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 8 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r75365 r75367 1 2011-01-10 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 [Chromium] Remove non-client-based Geolocation code 6 https://bugs.webkit.org/show_bug.cgi?id=50921 7 8 Code clean up, covered by existing tests. 9 10 * WebCore.gyp/WebCore.gyp: 11 * WebCore.gypi: 12 * platform/chromium/ChromiumBridge.h: 13 * platform/chromium/GeolocationServiceChromium.cpp: Removed. 14 * platform/chromium/GeolocationServiceChromium.h: Removed. 15 1 16 2011-01-10 Ilya Tikhonovsky <loislo@chromium.org> 2 17 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r75313 r75367 1237 1237 ], 1238 1238 }], 1239 ['"ENABLE_CLIENT_BASED_GEOLOCATION=1" in feature_defines', {1240 'sources/': [1241 ['exclude', '/GeolocationService.*$'],1242 ],1243 }],1244 1239 ['(OS=="linux" or OS=="win") and "WTF_USE_WEBAUDIO_MKL=1" in feature_defines', { 1245 1240 'sources/': [ -
trunk/Source/WebCore/WebCore.gypi
r75363 r75367 2460 2460 'platform/chromium/FramelessScrollView.h', 2461 2461 'platform/chromium/FramelessScrollViewClient.h', 2462 'platform/chromium/GeolocationServiceChromium.cpp',2463 'platform/chromium/GeolocationServiceChromium.h',2464 2462 'platform/chromium/KeyCodeConversion.h', 2465 2463 'platform/chromium/KeyCodeConversionGtk.cpp', -
trunk/Source/WebCore/platform/chromium/ChromiumBridge.h
r75292 r75367 160 160 static void notifyFormStateChanged(const Document*); 161 161 162 #if !ENABLE(CLIENT_BASED_GEOLOCATION)163 // Geolocation --------------------------------------------------------164 static GeolocationServiceBridge* createGeolocationServiceBridge(GeolocationServiceChromium*);165 #endif166 162 // Databases ---------------------------------------------------------- 167 163 // Returns a handle to the DB file and ooptionally a handle to its containing directory -
trunk/Tools/ChangeLog
r75366 r75367 1 2011-01-10 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 [Chromium] Remove non-client-based Geolocation code 6 https://bugs.webkit.org/show_bug.cgi?id=50921 7 8 * DumpRenderTree/chromium/LayoutTestController.cpp: 9 (LayoutTestController::setGeolocationPermission): 10 (LayoutTestController::setMockGeolocationPosition): 11 (LayoutTestController::setMockGeolocationError): 12 * DumpRenderTree/chromium/WebViewHost.cpp: 13 (WebViewHost::geolocationClientMock): 14 (WebViewHost::reset): 15 * DumpRenderTree/chromium/WebViewHost.h: 16 1 17 2011-01-10 Eric Seidel <eric@webkit.org> 2 18 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp
r74598 r75367 44 44 #include "WebElement.h" 45 45 #include "WebFrame.h" 46 #if ENABLE(CLIENT_BASED_GEOLOCATION)47 46 #include "WebGeolocationClientMock.h" 48 #else49 #include "WebGeolocationServiceMock.h"50 #endif51 47 #include "WebInputElement.h" 52 48 #include "WebKit.h" … … 1525 1521 if (arguments.size() < 1 || !arguments[0].isBool()) 1526 1522 return; 1527 #if ENABLE(CLIENT_BASED_GEOLOCATION)1528 1523 m_shell->webViewHost()->geolocationClientMock()->setPermission(arguments[0].toBoolean()); 1529 #else1530 WebGeolocationServiceMock::setMockGeolocationPermission(arguments[0].toBoolean());1531 #endif1532 1524 } 1533 1525 … … 1537 1529 if (arguments.size() < 3 || !arguments[0].isNumber() || !arguments[1].isNumber() || !arguments[2].isNumber()) 1538 1530 return; 1539 #if ENABLE(CLIENT_BASED_GEOLOCATION)1540 1531 m_shell->webViewHost()->geolocationClientMock()->setPosition(arguments[0].toDouble(), arguments[1].toDouble(), arguments[2].toDouble()); 1541 #else1542 WebGeolocationServiceMock::setMockGeolocationPosition(arguments[0].toDouble(), arguments[1].toDouble(), arguments[2].toDouble());1543 #endif1544 1532 } 1545 1533 … … 1549 1537 if (arguments.size() < 2 || !arguments[0].isNumber() || !arguments[1].isString()) 1550 1538 return; 1551 #if ENABLE(CLIENT_BASED_GEOLOCATION)1552 1539 m_shell->webViewHost()->geolocationClientMock()->setError(arguments[0].toInt32(), cppVariantToWebString(arguments[1])); 1553 #else1554 WebGeolocationServiceMock::setMockGeolocationError(arguments[0].toInt32(), cppVariantToWebString(arguments[1]));1555 #endif1556 1540 } 1557 1541 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r75276 r75367 44 44 #include "WebElement.h" 45 45 #include "WebFrame.h" 46 #if ENABLE(CLIENT_BASED_GEOLOCATION)47 46 #include "WebGeolocationClientMock.h" 48 #else49 #include "WebGeolocationServiceMock.h"50 #endif51 47 #include "WebHistoryItem.h" 52 48 #include "WebNode.h" … … 572 568 } 573 569 574 #if ENABLE(CLIENT_BASED_GEOLOCATION)575 570 WebKit::WebGeolocationClient* WebViewHost::geolocationClient() 576 571 { … … 584 579 return m_geolocationClientMock.get(); 585 580 } 586 #else587 WebKit::WebGeolocationService* WebViewHost::geolocationService()588 {589 if (!m_geolocationServiceMock)590 m_geolocationServiceMock.set(WebGeolocationServiceMock::createWebGeolocationServiceMock());591 return m_geolocationServiceMock.get();592 }593 #endif594 581 595 582 WebSpeechInputController* WebViewHost::speechInputController(WebKit::WebSpeechInputListener* listener) … … 1178 1165 m_editCommandValue.clear(); 1179 1166 1180 #if ENABLE(CLIENT_BASED_GEOLOCATION)1181 1167 if (m_geolocationClientMock.get()) 1182 1168 m_geolocationClientMock->resetMock(); 1183 #else1184 m_geolocationServiceMock.clear();1185 #endif1186 1169 1187 1170 if (m_speechInputControllerMock.get()) -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r73745 r75367 140 140 virtual void postAccessibilityNotification(const WebKit::WebAccessibilityObject&, WebKit::WebAccessibilityNotification); 141 141 virtual WebKit::WebNotificationPresenter* notificationPresenter(); 142 #if ENABLE(CLIENT_BASED_GEOLOCATION)143 142 virtual WebKit::WebGeolocationClient* geolocationClient(); 144 #else145 virtual WebKit::WebGeolocationService* geolocationService();146 #endif147 143 virtual WebKit::WebSpeechInputController* speechInputController(WebKit::WebSpeechInputListener*); 148 144 virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); … … 211 207 MockSpellCheck* mockSpellCheck(); 212 208 213 #if ENABLE(CLIENT_BASED_GEOLOCATION)214 209 // Geolocation client mocks for LayoutTestController 215 210 WebKit::WebGeolocationClientMock* geolocationClientMock(); 216 #endif217 211 218 212 private: … … 318 312 319 313 // Geolocation 320 #if ENABLE(CLIENT_BASED_GEOLOCATION)321 314 OwnPtr<WebKit::WebGeolocationClientMock> m_geolocationClientMock; 322 #else323 OwnPtr<WebKit::WebGeolocationServiceMock> m_geolocationServiceMock;324 #endif325 315 326 316 OwnPtr<WebKit::WebDeviceOrientationClientMock> m_deviceOrientationClientMock; -
trunk/WebKit/chromium/ChangeLog
r75361 r75367 1 2011-01-10 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 [Chromium] Remove non-client-based Geolocation code 6 https://bugs.webkit.org/show_bug.cgi?id=50921 7 8 * WebKit.gyp: 9 * public/WebGeolocationService.h: Removed. 10 * public/WebGeolocationServiceBridge.h: Removed. 11 * public/WebGeolocationServiceMock.h: Removed. 12 * src/AssertMatchingEnums.cpp: 13 * src/ChromeClientImpl.cpp: 14 (WebKit::ChromeClientImpl::requestGeolocationPermissionForFrame): 15 (WebKit::ChromeClientImpl::cancelGeolocationPermissionRequestForFrame): 16 * src/ChromiumBridge.cpp: 17 * src/WebGeolocationServiceBridgeImpl.cpp: Removed. 18 * src/WebGeolocationServiceBridgeImpl.h: Removed. 19 * src/WebGeolocationServiceMock.cpp: Removed. 20 * src/WebViewImpl.cpp: 21 (WebKit::WebViewImpl::WebViewImpl): 22 * src/WebViewImpl.h: 23 1 24 2011-01-09 Johnny Ding <jnd@chromium.org> 2 25 -
trunk/WebKit/chromium/WebKit.gyp
r75313 r75367 184 184 'public/WebGeolocationPermissionRequestManager.h', 185 185 'public/WebGeolocationPosition.h', 186 'public/WebGeolocationService.h',187 'public/WebGeolocationServiceBridge.h',188 'public/WebGeolocationServiceMock.h',189 186 'public/WebGlyphCache.h', 190 187 'public/WebGraphicsContext3D.h', … … 463 460 'src/WebGeolocationPermissionRequestManager.cpp', 464 461 'src/WebGeolocationPosition.cpp', 465 'src/WebGeolocationServiceBridgeImpl.cpp',466 'src/WebGeolocationServiceBridgeImpl.h',467 'src/WebGeolocationServiceMock.cpp',468 462 'src/WebGlyphCache.cpp', 469 463 'src/WebGraphicsContext3D.cpp', … … 681 675 ], 682 676 }], 683 ['"ENABLE_CLIENT_BASED_GEOLOCATION=1" in feature_defines', {684 'sources/': [685 ['exclude', 'WebGeolocationService.*$'],686 ],687 }, {688 'sources/': [689 ['exclude', 'GeolocationClientProxy.*'],690 ['exclude', 'WebGeolocationClient.*'],691 ['exclude', 'WebGeolocationController.*'],692 ['exclude', 'WebGeolocationError.*'],693 ['exclude', 'WebGeolocationPermissionRequest.*'],694 ['exclude', 'WebGeolocationPosition.*'],695 ],696 }]697 677 ], 698 678 }, … … 873 853 }, 874 854 }], 875 ['"ENABLE_CLIENT_BASED_GEOLOCATION=1" in feature_defines', {876 'sources/': [877 ['exclude', 'WebGeolocationService.*$'],878 ],879 }]880 855 ], 881 856 }, -
trunk/WebKit/chromium/src/AssertMatchingEnums.cpp
r74581 r75367 395 395 COMPILE_ASSERT_MATCHING_ENUM(WebFileErrorPathExists, FileError::PATH_EXISTS_ERR); 396 396 397 #if ENABLE(CLIENT_BASED_GEOLOCATION)398 397 COMPILE_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPermissionDenied, GeolocationError::PermissionDenied); 399 398 COMPILE_ASSERT_MATCHING_ENUM(WebGeolocationError::ErrorPositionUnavailable, GeolocationError::PositionUnavailable); 400 #endif401 399 402 400 #if OS(DARWIN) -
trunk/WebKit/chromium/src/ChromeClientImpl.cpp
r75349 r75367 48 48 #include "Geolocation.h" 49 49 #include "GeolocationService.h" 50 #include "GeolocationServiceChromium.h"51 50 #include "GraphicsLayer.h" 52 51 #include "HTMLNames.h" … … 72 71 #include "WebFrameClient.h" 73 72 #include "WebFrameImpl.h" 74 #include "WebGeolocationService.h"75 73 #include "WebInputEvent.h" 76 74 #include "WebKit.h" … … 779 777 void ChromeClientImpl::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geolocation) 780 778 { 781 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 782 GeolocationServiceChromium* geolocationService = static_cast<GeolocationServiceChromium*>(geolocation->getGeolocationService()); 783 geolocationService->geolocationServiceBridge()->attachBridgeIfNeeded(); 784 m_webView->client()->geolocationService()->requestPermissionForFrame(geolocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->url()); 785 #endif 779 ASSERT_NOT_REACHED(); 786 780 } 787 781 788 782 void ChromeClientImpl::cancelGeolocationPermissionRequestForFrame(Frame* frame, Geolocation* geolocation) 789 783 { 790 #if !ENABLE(CLIENT_BASED_GEOLOCATION) 791 GeolocationServiceChromium* geolocationService = static_cast<GeolocationServiceChromium*>(geolocation->getGeolocationService()); 792 m_webView->client()->geolocationService()->cancelPermissionRequestForFrame(geolocationService->geolocationServiceBridge()->getBridgeId(), frame->document()->url()); 793 #endif 784 ASSERT_NOT_REACHED(); 794 785 } 795 786 -
trunk/WebKit/chromium/src/ChromiumBridge.cpp
r75292 r75367 97 97 #include "SharedBuffer.h" 98 98 99 #if !ENABLE(CLIENT_BASED_GEOLOCATION)100 #include "WebGeolocationServiceBridgeImpl.h"101 #endif102 103 99 #include "Worker.h" 104 100 #include "WorkerContextProxy.h" … … 481 477 *out = 0; 482 478 return false; 483 }484 #endif485 486 #if !ENABLE(CLIENT_BASED_GEOLOCATION)487 // Geolocation ----------------------------------------------------------------488 489 GeolocationServiceBridge* ChromiumBridge::createGeolocationServiceBridge(GeolocationServiceChromium* geolocationServiceChromium)490 {491 return createGeolocationServiceBridgeImpl(geolocationServiceChromium);492 479 } 493 480 #endif -
trunk/WebKit/chromium/src/WebViewImpl.cpp
r75276 r75367 312 312 #endif 313 313 , m_deviceOrientationClientProxy(new DeviceOrientationClientProxy(client ? client->deviceOrientationClient() : 0)) 314 #if ENABLE(CLIENT_BASED_GEOLOCATION)315 314 , m_geolocationClientProxy(new GeolocationClientProxy(client ? client->geolocationClient() : 0)) 316 #endif317 315 { 318 316 // WebKit/win/WebView.cpp does the same thing, except they call the … … 338 336 #endif 339 337 pageClients.deviceOrientationClient = m_deviceOrientationClientProxy.get(); 340 #if ENABLE(CLIENT_BASED_GEOLOCATION)341 338 pageClients.geolocationClient = m_geolocationClientProxy.get(); 342 #endif343 339 344 340 m_page.set(new Page(pageClients)); 345 341 346 #if ENABLE(CLIENT_BASED_GEOLOCATION)347 342 m_geolocationClientProxy->setController(m_page->geolocationController()); 348 #endif349 343 350 344 static_cast<BackForwardListImpl*>(m_page->backForwardList())->setClient(&m_backForwardListClientImpl); -
trunk/WebKit/chromium/src/WebViewImpl.h
r75276 r75367 544 544 RefPtr<WebCore::GraphicsContext3D> m_temporaryOnscreenGraphicsContext3D; 545 545 OwnPtr<DeviceOrientationClientProxy> m_deviceOrientationClientProxy; 546 547 #if ENABLE(CLIENT_BASED_GEOLOCATION)548 546 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 549 #endif550 547 }; 551 548
Note: See TracChangeset
for help on using the changeset viewer.