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

Unified Diff: ui/ozone/platform/test/test_cursor_factory.h

Issue 384753003: [Ozone-Test] Add proper cursor factory implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « ui/ozone/platform/test/test.gypi ('k') | ui/ozone/platform/test/test_cursor_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/test/test_cursor_factory.h
diff --git a/ui/ozone/platform/test/test_cursor_factory.h b/ui/ozone/platform/test/test_cursor_factory.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f0e0c313912d2309361dc9bc74c7d73a1f43119
--- /dev/null
+++ b/ui/ozone/platform/test/test_cursor_factory.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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.
+
+#ifndef UI_OZONE_PLATFORM_TEST_TEST_CURSOR_FACTORY_H_
+#define UI_OZONE_PLATFORM_TEST_TEST_CURSOR_FACTORY_H_
+
+#include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h"
+
+namespace ui {
+
+class TestCursorFactory : public BitmapCursorFactoryOzone {
+ public:
+ TestCursorFactory();
+ virtual ~TestCursorFactory();
+
+ // BitmapCursorFactoryOzone:
+ virtual gfx::AcceleratedWidget GetCursorWindow() OVERRIDE;
+ virtual void SetBitmapCursor(
+ gfx::AcceleratedWidget widget,
+ scoped_refptr<BitmapCursorOzone> cursor) OVERRIDE;
+
+ private:
+ gfx::AcceleratedWidget cursor_window_;
+ scoped_refptr<BitmapCursorOzone> cursor_;
+
+ DISALLOW_COPY_AND_ASSIGN(TestCursorFactory);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_TEST_TEST_CURSOR_FACTORY_H_
« no previous file with comments | « ui/ozone/platform/test/test.gypi ('k') | ui/ozone/platform/test/test_cursor_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698