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 "chrome/test/base/view_event_test_platform_part.h" | 5 #include "chrome/test/base/view_event_test_platform_part.h" |
6 | 6 |
7 namespace { | 7 namespace { |
8 | 8 |
9 // ViewEventTestPlatformPart implementation for toolkit-views on Mac. | 9 // ViewEventTestPlatformPart implementation for toolkit-views on Mac. |
10 class ViewEventTestPlatformPartMac : public ViewEventTestPlatformPart { | 10 class ViewEventTestPlatformPartMac : public ViewEventTestPlatformPart { |
11 public: | 11 public: |
12 ViewEventTestPlatformPartMac() {} | 12 ViewEventTestPlatformPartMac() {} |
13 | 13 |
14 // Overridden from ViewEventTestPlatformPart: | 14 // Overridden from ViewEventTestPlatformPart: |
15 virtual gfx::NativeWindow GetContext() OVERRIDE { return NULL; } | 15 virtual gfx::NativeWindow GetContext() override { return NULL; } |
16 | 16 |
17 private: | 17 private: |
18 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartMac); | 18 DISALLOW_COPY_AND_ASSIGN(ViewEventTestPlatformPartMac); |
19 }; | 19 }; |
20 | 20 |
21 } // namespace | 21 } // namespace |
22 | 22 |
23 // static | 23 // static |
24 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create( | 24 ViewEventTestPlatformPart* ViewEventTestPlatformPart::Create( |
25 ui::ContextFactory* context_factory) { | 25 ui::ContextFactory* context_factory) { |
26 return new ViewEventTestPlatformPartMac(); | 26 return new ViewEventTestPlatformPartMac(); |
27 } | 27 } |
OLD | NEW |