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