diff options
author | jknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-31 14:06:25 +0000 |
---|---|---|
committer | jknotten@chromium.org <jknotten@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-31 14:06:25 +0000 |
commit | 7e0c4706a960664c1a262f582344ff6b1de64208 (patch) | |
tree | 183972136eb8683c092530d14c90efc496097935 /webkit/tools/test_shell | |
parent | c660f70215b0810954fc012d374575349d0a8808 (diff) | |
download | chromium_src-7e0c4706a960664c1a262f582344ff6b1de64208.zip chromium_src-7e0c4706a960664c1a262f582344ff6b1de64208.tar.gz chromium_src-7e0c4706a960664c1a262f582344ff6b1de64208.tar.bz2 |
Make class declarations ABI compatible, irrespective of ENABLE_CLIENT_BASED_GEOLOCATION define.
BUG=59907
TEST=None
Review URL: http://codereview.chromium.org/6031010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70339 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r-- | webkit/tools/test_shell/test_shell.cc | 1 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_shell.h | 6 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.cc | 16 | ||||
-rw-r--r-- | webkit/tools/test_shell/test_webview_delegate.h | 12 |
4 files changed, 21 insertions, 14 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index ca5d63a..1243ee7 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -31,6 +31,7 @@ #include "third_party/skia/include/core/SkBitmap.h" #include "third_party/WebKit/WebKit/chromium/public/WebAccessibilityObject.h" #include "third_party/WebKit/WebKit/chromium/public/WebDeviceOrientationClientMock.h" +#include "third_party/WebKit/WebKit/chromium/public/WebGeolocationClientMock.h" #include "third_party/WebKit/WebKit/chromium/public/WebSpeechInputControllerMock.h" #include "third_party/WebKit/WebKit/chromium/public/WebFrame.h" #include "third_party/WebKit/WebKit/chromium/public/WebKit.h" diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h index 29d3d1f..731e2bd 100644 --- a/webkit/tools/test_shell/test_shell.h +++ b/webkit/tools/test_shell/test_shell.h @@ -373,9 +373,7 @@ public: WebKit::WebSpeechInputListener* listener); WebKit::WebSpeechInputControllerMock* speech_input_controller_mock(); -#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) WebKit::WebGeolocationClientMock* geolocation_client_mock(); -#endif protected: void CreateDevToolsClient(TestShellDevToolsAgent* agent); @@ -460,10 +458,8 @@ private: device_orientation_client_mock_; scoped_ptr<WebKit::WebSpeechInputControllerMock> speech_input_controller_mock_; - -#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) scoped_ptr<WebKit::WebGeolocationClientMock> geolocation_client_mock_; -#endif + const TestParams* test_params_; // True while a test is preparing to run diff --git a/webkit/tools/test_shell/test_webview_delegate.cc b/webkit/tools/test_shell/test_webview_delegate.cc index 7bc87e4..c811015 100644 --- a/webkit/tools/test_shell/test_webview_delegate.cc +++ b/webkit/tools/test_shell/test_webview_delegate.cc @@ -655,15 +655,25 @@ WebNotificationPresenter* TestWebViewDelegate::notificationPresenter() { return shell_->notification_presenter(); } -#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) WebKit::WebGeolocationClient* TestWebViewDelegate::geolocationClient() { +#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) return shell_->geolocation_client_mock(); -} #else + // TODO(jknotten): Remove once building with ENABLE_CLIENT_BASED_GEOLOCATION. + NOTREACHED(); + return 0; +#endif +} + WebKit::WebGeolocationService* TestWebViewDelegate::geolocationService() { +#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) + NOTREACHED(); + return 0; +#else return GetTestGeolocationService(); -} #endif +} + WebKit::WebDeviceOrientationClient* TestWebViewDelegate::deviceOrientationClient() { diff --git a/webkit/tools/test_shell/test_webview_delegate.h b/webkit/tools/test_shell/test_webview_delegate.h index a4de21e..6283767 100644 --- a/webkit/tools/test_shell/test_webview_delegate.h +++ b/webkit/tools/test_shell/test_webview_delegate.h @@ -140,11 +140,12 @@ class TestWebViewDelegate : public WebKit::WebViewClient, virtual void focusAccessibilityObject( const WebKit::WebAccessibilityObject& object); virtual WebKit::WebNotificationPresenter* notificationPresenter(); -#if defined(ENABLE_CLIENT_BASED_GEOLOCATION) - WebKit::WebGeolocationClient* geolocationClient(); -#else + + virtual WebKit::WebGeolocationClient* geolocationClient(); + + // TODO(jknotten): Remove once building with ENABLE_CLIENT_BASED_GEOLOCATION. virtual WebKit::WebGeolocationService* geolocationService(); -#endif + virtual WebKit::WebDeviceOrientationClient* deviceOrientationClient(); virtual WebKit::WebSpeechInputController* speechInputController( WebKit::WebSpeechInputListener*); @@ -466,9 +467,8 @@ class TestWebViewDelegate : public WebKit::WebViewClient, // The mock spellchecker used in TestWebViewDelegate::spellCheck(). MockSpellCheck mock_spellcheck_; -#if !defined(ENABLE_CLIENT_BASED_GEOLOCATION) + // TODO(jknotten): Remove once building with ENABLE_CLIENT_BASED_GEOLOCATION. scoped_ptr<TestGeolocationService> test_geolocation_service_; -#endif DISALLOW_COPY_AND_ASSIGN(TestWebViewDelegate); }; |