Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8043)

Unified Diff: chrome/test/base/view_event_test_platform_part_mac.cc

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: simpler Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698