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

Unified Diff: ui/base/cursor/ozone/cursor_factory_ozone.h

Issue 312393002: ozone: Move the factory interfaces into a common target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r278697 Created 6 years, 6 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/base/cursor/ozone/bitmap_cursor_factory_ozone.h ('k') | ui/base/cursor/ozone/cursor_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/cursor/ozone/cursor_factory_ozone.h
diff --git a/ui/base/cursor/ozone/cursor_factory_ozone.h b/ui/base/cursor/ozone/cursor_factory_ozone.h
deleted file mode 100644
index 23ac1132cfbc9f8b36dc93c83180ffd1bcfa02a4..0000000000000000000000000000000000000000
--- a/ui/base/cursor/ozone/cursor_factory_ozone.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// 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_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
-#define UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
-
-#include "ui/base/cursor/cursor.h"
-#include "ui/base/ui_base_export.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace ui {
-
-class UI_BASE_EXPORT CursorFactoryOzone {
- public:
- CursorFactoryOzone();
- virtual ~CursorFactoryOzone();
-
- // Returns the singleton instance.
- static CursorFactoryOzone* GetInstance();
-
- // Return the default cursor of the specified type. The types are listed in
- // ui/base/cursor/cursor.h. Default cursors are managed by the implementation
- // and must live indefinitely; there's no way to know when to free them.
- virtual PlatformCursor GetDefaultCursor(int type);
-
- // Return a image cursor from the specified image & hotspot. Image cursors
- // are referenced counted and have an initial refcount of 1. Therefore, each
- // CreateImageCursor call must be matched with a call to UnrefImageCursor.
- virtual PlatformCursor CreateImageCursor(const SkBitmap& bitmap,
- const gfx::Point& hotspot);
-
- // Increment platform image cursor refcount.
- virtual void RefImageCursor(PlatformCursor cursor);
-
- // Decrement platform image cursor refcount.
- virtual void UnrefImageCursor(PlatformCursor cursor);
-
- // Change the active cursor for an AcceleratedWidget.
- // TODO(spang): Move this.
- virtual void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor cursor);
-
- // Returns the window on which the cursor is active.
- // TODO(dnicoara) Move this once the WindowTreeHost refactoring finishes and
- // WindowTreeHost::CanDispatchEvent() is no longer present.
- virtual gfx::AcceleratedWidget GetCursorWindow();
-
- private:
- static CursorFactoryOzone* impl_; // not owned
-};
-
-} // namespace gfx
-
-#endif // UI_BASE_CURSOR_OZONE_CURSOR_FACTORY_OZONE_H_
« no previous file with comments | « ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h ('k') | ui/base/cursor/ozone/cursor_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698