| Index: content/test/layout_tests/runner/WebTestThemeEngineMock.h
|
| diff --git a/third_party/tcmalloc/chromium/src/base/linuxthreads.h b/content/test/layout_tests/runner/WebTestThemeEngineMock.h
|
| similarity index 61%
|
| copy from third_party/tcmalloc/chromium/src/base/linuxthreads.h
|
| copy to content/test/layout_tests/runner/WebTestThemeEngineMock.h
|
| index 5c318fed7ec4c47e7bf082e315992e102abcd620..1a6900edeb97394edb053c75645d1ac71b15974b 100644
|
| --- a/third_party/tcmalloc/chromium/src/base/linuxthreads.h
|
| +++ b/content/test/layout_tests/runner/WebTestThemeEngineMock.h
|
| @@ -1,5 +1,9 @@
|
| -/* Copyright (c) 2005-2007, Google Inc.
|
| - * All rights reserved.
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +/*
|
| + * 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
|
| @@ -26,28 +30,33 @@
|
| * 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.
|
| - *
|
| - * ---
|
| - * Author: Markus Gutschke
|
| */
|
|
|
| -#ifndef _LINUXTHREADS_H
|
| -#define _LINUXTHREADS_H
|
| +#ifndef WebTestThemeEngineMock_h
|
| +#define WebTestThemeEngineMock_h
|
|
|
| -/* Include thread_lister.h to get the interface that we implement for linux.
|
| - */
|
| +#include "third_party/WebKit/public/platform/WebRect.h"
|
| +#include "third_party/WebKit/public/platform/default/WebThemeEngine.h"
|
|
|
| -/* We currently only support x86-32 and x86-64 on Linux. Porting to other
|
| - * related platforms should not be difficult.
|
| - */
|
| -#if (defined(__i386__) || defined(__x86_64__) || defined(__ARM_ARCH_3__) || \
|
| - defined(__mips__) || defined(__PPC__)) && defined(__linux)
|
| +using blink::WebRect;
|
| +using blink::WebThemeEngine;
|
|
|
| -/* Define the THREADS symbol to make sure that there is exactly one core dumper
|
| - * built into the library.
|
| - */
|
| -#define THREADS "Linux /proc"
|
| +namespace WebTestRunner {
|
| +
|
| +class WebTestThemeEngineMock : public blink::WebThemeEngine {
|
| +public:
|
| + virtual ~WebTestThemeEngineMock() { }
|
| +
|
| + // WebThemeEngine methods:
|
| + virtual blink::WebSize getSize(WebThemeEngine::Part);
|
| +
|
| + virtual void paint(blink::WebCanvas*,
|
| + WebThemeEngine::Part,
|
| + WebThemeEngine::State,
|
| + const blink::WebRect&,
|
| + const WebThemeEngine::ExtraParams*);
|
| +};
|
|
|
| -#endif
|
| +} // namespace WebTestRunner
|
|
|
| -#endif /* _LINUXTHREADS_H */
|
| +#endif // WebTestThemeEngineMock_h
|
|
|