| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/test/base/view_event_test_platform_part.h" |
| 6 |
| 7 namespace { |
| 8 |
| 9 // ViewEventTestPlatformPart implementation for Views, but non-Aura. |
| 10 class ViewEventTestPlatformPartDefault : public ViewEventTestPlatformPart { |
| 11 public: |
| 12 ViewEventTestPlatformPartDefault() {} |
| 13 ~ViewEventTestPlatformPartDefault() override {} |
| 14 |
| 15 // ViewEventTestPlatformPart: |
| 16 gfx::NativeWindow GetContext() override { return nullptr; } |
| 17 |
| 18 private: |
| 19 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartDefault); |
| 20 }; |
| 21 |
| 22 } // namespace |
| 23 |
| 24 // static |
| 25 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create( |
| 26 ui::ContextFactory* context_factory, |
| 27 ui::ContextFactoryPrivate* context_factory_private) { |
| 28 return new ViewEventTestPlatformPartDefault(); |
| 29 } |
| OLD | NEW |