| Index: chrome/test/base/view_event_test_platform_part_mac.cc
|
| diff --git a/chrome/test/base/view_event_test_platform_part_mac.cc b/chrome/test/base/view_event_test_platform_part_mac.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..970913ede0f4ef881f30b40b6cb71d653f8aeb10
|
| --- /dev/null
|
| +++ b/chrome/test/base/view_event_test_platform_part_mac.cc
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "chrome/test/base/view_event_test_platform_part.h"
|
| +
|
| +namespace {
|
| +
|
| +// ViewEventTestPlatformPart implementation for Views, but non-Aura.
|
| +class ViewEventTestPlatformPartDefault : public ViewEventTestPlatformPart {
|
| + public:
|
| + ViewEventTestPlatformPartDefault() {}
|
| + ~ViewEventTestPlatformPartDefault() override {}
|
| +
|
| + // ViewEventTestPlatformPart:
|
| + gfx::NativeWindow GetContext() override { return nullptr; }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartDefault);
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +// static
|
| +ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create(
|
| + ui::ContextFactory* context_factory,
|
| + ui::ContextFactoryPrivate* context_factory_private) {
|
| + return new ViewEventTestPlatformPartDefault();
|
| +}
|
|
|