summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/core/platform/mock
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/platform/mock')
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.cpp72
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.h67
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/GeolocationClientMock.h2
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.cpp66
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.h56
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.cpp100
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.h56
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.cpp63
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.h55
-rw-r--r--chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeOverlayMock.h47
10 files changed, 1 insertions, 583 deletions
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.cpp b/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.cpp
deleted file mode 100644
index 9156629e64f..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "core/platform/mock/DeviceOrientationClientMock.h"
-
-#include "core/dom/DeviceOrientationController.h"
-
-namespace WebCore {
-
-DeviceOrientationClientMock::DeviceOrientationClientMock()
- : m_controller(0)
- , m_timer(this, &DeviceOrientationClientMock::timerFired)
- , m_isUpdating(false)
-{
-}
-
-void DeviceOrientationClientMock::setController(DeviceOrientationController* controller)
-{
- ASSERT(!m_controller);
- m_controller = controller;
- ASSERT(m_controller);
-}
-
-void DeviceOrientationClientMock::startUpdating()
-{
- m_isUpdating = true;
-}
-
-void DeviceOrientationClientMock::stopUpdating()
-{
- m_isUpdating = false;
- m_timer.stop();
-}
-
-void DeviceOrientationClientMock::setOrientation(PassRefPtr<DeviceOrientationData> orientation)
-{
- m_orientation = orientation;
- if (m_isUpdating && !m_timer.isActive())
- m_timer.startOneShot(0);
-}
-
-void DeviceOrientationClientMock::timerFired(Timer<DeviceOrientationClientMock>* timer)
-{
- ASSERT_UNUSED(timer, timer == &m_timer);
- m_timer.stop();
- m_controller->didChangeDeviceOrientation(m_orientation.get());
-}
-
-} // namespace WebCore
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.h
deleted file mode 100644
index e532f17cb1a..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/DeviceOrientationClientMock.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef DeviceOrientationClientMock_h
-#define DeviceOrientationClientMock_h
-
-#include "core/dom/DeviceOrientationClient.h"
-#include "core/platform/Timer.h"
-#include "modules/device_orientation/DeviceOrientationData.h"
-
-#include "wtf/PassRefPtr.h"
-#include "wtf/RefPtr.h"
-
-namespace WebCore {
-
-class DeviceOrientationController;
-
-// A mock implementation of DeviceOrientationClient used to test the feature in
-// DumpRenderTree. Embedders should should configure the Page object to use this
-// client when running DumpRenderTree.
-class DeviceOrientationClientMock : public DeviceOrientationClient {
-public:
- DeviceOrientationClientMock();
-
- // DeviceOrientationClient
- virtual void setController(DeviceOrientationController*) OVERRIDE;
- virtual void startUpdating() OVERRIDE;
- virtual void stopUpdating() OVERRIDE;
- virtual DeviceOrientationData* lastOrientation() const OVERRIDE { return m_orientation.get(); }
- virtual void deviceOrientationControllerDestroyed() OVERRIDE { }
-
- void setOrientation(PassRefPtr<DeviceOrientationData>);
-
-private:
- void timerFired(Timer<DeviceOrientationClientMock>*);
-
- RefPtr<DeviceOrientationData> m_orientation;
- DeviceOrientationController* m_controller;
- Timer<DeviceOrientationClientMock> m_timer;
- bool m_isUpdating;
-};
-
-} // namespace WebCore
-
-#endif // DeviceOrientationClientMock_h
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/GeolocationClientMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/GeolocationClientMock.h
index b3eec876f87..884184d7741 100644
--- a/chromium/third_party/WebKit/Source/core/platform/mock/GeolocationClientMock.h
+++ b/chromium/third_party/WebKit/Source/core/platform/mock/GeolocationClientMock.h
@@ -32,8 +32,8 @@
#ifndef GeolocationClientMock_h
#define GeolocationClientMock_h
-#include "core/platform/Timer.h"
#include "modules/geolocation/GeolocationClient.h"
+#include "platform/Timer.h"
#include "wtf/HashSet.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.cpp b/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.cpp
deleted file mode 100644
index b5c603cb893..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "core/platform/mock/MIDIClientMock.h"
-
-#include "modules/webmidi/MIDIAccess.h"
-
-namespace WebCore {
-
-MIDIClientMock::MIDIClientMock()
- : m_allowed(false)
-{
-}
-
-MIDIClientMock::~MIDIClientMock()
-{
-}
-
-void MIDIClientMock::setSysExPermission(bool allowed)
-{
- m_allowed = allowed;
-}
-
-void MIDIClientMock::resetMock()
-{
- m_allowed = false;
-}
-
-void MIDIClientMock::requestSysExPermission(PassRefPtr<MIDIAccess> access)
-{
- access->setSysExEnabled(m_allowed);
-}
-
-void MIDIClientMock::cancelSysExPermissionRequest(MIDIAccess*)
-{
-}
-
-} // WebCore
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.h
deleted file mode 100644
index 7276c858ef6..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/MIDIClientMock.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef MIDIClientMock_h
-#define MIDIClientMock_h
-
-#include "modules/webmidi/MIDIClient.h"
-
-namespace WebCore {
-
-class MIDIClientMock : public MIDIClient {
-public:
- MIDIClientMock();
- virtual ~MIDIClientMock();
-
- void setSysExPermission(bool);
- void resetMock();
-
- // MIDIClient
- virtual void requestSysExPermission(PassRefPtr<MIDIAccess>) OVERRIDE;
- virtual void cancelSysExPermissionRequest(MIDIAccess*) OVERRIDE;
-
-private:
- bool m_allowed;
-};
-
-} // namespace WebCore
-
-#endif // MIDIClient_h
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.cpp b/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.cpp
deleted file mode 100644
index 2c4928a8bd0..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.cpp
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Copyright (C) 2013 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "core/platform/PlatformSpeechSynthesisUtterance.h"
-#include "core/platform/mock/PlatformSpeechSynthesizerMock.h"
-
-namespace WebCore {
-
-PassOwnPtr<PlatformSpeechSynthesizerMock> PlatformSpeechSynthesizerMock::create(PlatformSpeechSynthesizerClient* client)
-{
- OwnPtr<PlatformSpeechSynthesizerMock> synthesizer = adoptPtr(new PlatformSpeechSynthesizerMock(client));
- synthesizer->initializeVoiceList();
- return synthesizer.release();
-}
-
-PlatformSpeechSynthesizerMock::PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient* client)
- : PlatformSpeechSynthesizer(client)
- , m_speakingFinishedTimer(this, &PlatformSpeechSynthesizerMock::speakingFinished)
-{
-}
-
-PlatformSpeechSynthesizerMock::~PlatformSpeechSynthesizerMock()
-{
- m_speakingFinishedTimer.stop();
-}
-
-void PlatformSpeechSynthesizerMock::speakingFinished(Timer<PlatformSpeechSynthesizerMock>*)
-{
- ASSERT(m_utterance.get());
- client()->didFinishSpeaking(m_utterance);
- m_utterance = 0;
-}
-
-void PlatformSpeechSynthesizerMock::initializeVoiceList()
-{
- m_voiceList.clear();
- m_voiceList.append(PlatformSpeechSynthesisVoice::create(String("mock.voice.bruce"), String("bruce"), String("en-US"), true, true));
- m_voiceList.append(PlatformSpeechSynthesisVoice::create(String("mock.voice.clark"), String("clark"), String("en-US"), true, false));
- m_voiceList.append(PlatformSpeechSynthesisVoice::create(String("mock.voice.logan"), String("logan"), String("fr-CA"), true, true));
-}
-
-void PlatformSpeechSynthesizerMock::speak(PassRefPtr<PlatformSpeechSynthesisUtterance> utterance)
-{
- ASSERT(!m_utterance);
- m_utterance = utterance;
- client()->didStartSpeaking(m_utterance);
-
- // Fire a fake word and then sentence boundary event.
- client()->boundaryEventOccurred(m_utterance, SpeechWordBoundary, 0);
- client()->boundaryEventOccurred(m_utterance, SpeechSentenceBoundary, m_utterance->text().length());
-
- // Give the fake speech job some time so that pause and other functions have time to be called.
- m_speakingFinishedTimer.startOneShot(.1);
-}
-
-void PlatformSpeechSynthesizerMock::cancel()
-{
- if (!m_utterance)
- return;
-
- m_speakingFinishedTimer.stop();
- client()->speakingErrorOccurred(m_utterance);
- m_utterance = 0;
-}
-
-void PlatformSpeechSynthesizerMock::pause()
-{
- client()->didPauseSpeaking(m_utterance);
-}
-
-void PlatformSpeechSynthesizerMock::resume()
-{
- client()->didResumeSpeaking(m_utterance);
-}
-
-
-} // namespace WebCore
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.h
deleted file mode 100644
index 7dada05e31a..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/PlatformSpeechSynthesizerMock.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (C) 2013 Apple Computer, Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef PlatformSpeechSynthesizerMock_h
-#define PlatformSpeechSynthesizerMock_h
-
-#include "core/platform/PlatformSpeechSynthesizer.h"
-#include "core/platform/Timer.h"
-#include "wtf/PassOwnPtr.h"
-
-namespace WebCore {
-
-class PlatformSpeechSynthesizerMock : public PlatformSpeechSynthesizer {
-public:
- static PassOwnPtr<PlatformSpeechSynthesizerMock> create(PlatformSpeechSynthesizerClient*);
-
- virtual ~PlatformSpeechSynthesizerMock();
- virtual void speak(PassRefPtr<PlatformSpeechSynthesisUtterance>);
- virtual void pause();
- virtual void resume();
- virtual void cancel();
-
-private:
- explicit PlatformSpeechSynthesizerMock(PlatformSpeechSynthesizerClient*);
- virtual void initializeVoiceList();
- void speakingFinished(Timer<PlatformSpeechSynthesizerMock>*);
-
- Timer<PlatformSpeechSynthesizerMock> m_speakingFinishedTimer;
- RefPtr<PlatformSpeechSynthesisUtterance> m_utterance;
-};
-
-} // namespace WebCore
-
-#endif // PlatformSpeechSynthesizer_h
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.cpp b/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.cpp
deleted file mode 100644
index 28f9ce6d5e5..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (C) 2011 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "core/platform/mock/ScrollbarThemeMock.h"
-
-#include "RuntimeEnabledFeatures.h"
-#include "core/platform/Scrollbar.h"
-
-namespace WebCore {
-
-static int cScrollbarThickness[] = { 15, 11 };
-
-IntRect ScrollbarThemeMock::trackRect(ScrollbarThemeClient* scrollbar, bool)
-{
- return scrollbar->frameRect();
-}
-
-int ScrollbarThemeMock::scrollbarThickness(ScrollbarControlSize controlSize)
-{
- return cScrollbarThickness[controlSize];
-}
-
-bool ScrollbarThemeMock::usesOverlayScrollbars() const
-{
- return RuntimeEnabledFeatures::overlayScrollbarsEnabled();
-}
-
-void ScrollbarThemeMock::paintTrackBackground(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& trackRect)
-{
- context->fillRect(trackRect, scrollbar->enabled() ? Color::lightGray : Color(0xFFE0E0E0));
-}
-
-void ScrollbarThemeMock::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& thumbRect)
-{
- if (scrollbar->enabled())
- context->fillRect(thumbRect, Color::darkGray);
-}
-
-}
-
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.h
deleted file mode 100644
index 3ddf0268b78..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeMock.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (C) 2011 Apple Inc. All Rights Reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ScrollbarThemeMock_h
-#define ScrollbarThemeMock_h
-
-#include "core/platform/ScrollbarTheme.h"
-
-namespace WebCore {
-
-// Scrollbar theme used in image snapshots, to eliminate appearance differences between platforms.
-class ScrollbarThemeMock : public ScrollbarTheme {
-public:
- virtual int scrollbarThickness(ScrollbarControlSize = RegularScrollbar) OVERRIDE;
- virtual bool usesOverlayScrollbars() const OVERRIDE;
-
-protected:
- virtual bool hasButtons(ScrollbarThemeClient*) OVERRIDE { return false; }
- virtual bool hasThumb(ScrollbarThemeClient*) OVERRIDE { return true; }
-
- virtual IntRect backButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) OVERRIDE { return IntRect(); }
- virtual IntRect forwardButtonRect(ScrollbarThemeClient*, ScrollbarPart, bool /*painting*/ = false) OVERRIDE { return IntRect(); }
- virtual IntRect trackRect(ScrollbarThemeClient*, bool painting = false) OVERRIDE;
-
- virtual void paintTrackBackground(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) OVERRIDE;
- virtual void paintThumb(GraphicsContext*, ScrollbarThemeClient*, const IntRect&) OVERRIDE;
-
-private:
- virtual bool isMockTheme() const OVERRIDE FINAL { return true; }
-};
-
-}
-#endif // ScrollbarThemeMock_h
diff --git a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeOverlayMock.h b/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeOverlayMock.h
deleted file mode 100644
index 0a9a862dd85..00000000000
--- a/chromium/third_party/WebKit/Source/core/platform/mock/ScrollbarThemeOverlayMock.h
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ScrollbarThemeOverlayMock_h
-#define ScrollbarThemeOverlayMock_h
-
-#include "core/platform/ScrollbarThemeOverlay.h"
-
-namespace WebCore {
-
-class ScrollbarThemeOverlayMock : public ScrollbarThemeOverlay {
-public:
- ScrollbarThemeOverlayMock() : ScrollbarThemeOverlay(3, 4, DisallowHitTest, Color(128, 128, 128)) { }
-
-private:
- virtual bool isMockTheme() const OVERRIDE FINAL { return true; }
-};
-
-} // namespace WebCore
-#endif // ScrollbarThemeOverlayMock_h