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

Unified Diff: ui/ozone/platform/dri/cursor_factory_evdev_dri.h

Issue 527293002: ozone: Remove CursorFactoryOzone::SetCursor, GetCursorWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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/dri/BUILD.gn ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/cursor_factory_evdev_dri.h
diff --git a/ui/ozone/platform/dri/cursor_factory_evdev_dri.h b/ui/ozone/platform/dri/cursor_factory_evdev_dri.h
deleted file mode 100644
index ce04a91fc445f9d7516b20c3e839eb5884c7d2dd..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/cursor_factory_evdev_dri.h
+++ /dev/null
@@ -1,57 +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_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
-#define UI_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
-
-#include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h"
-#include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
-#include "ui/gfx/geometry/point.h"
-#include "ui/gfx/geometry/point_f.h"
-#include "ui/gfx/geometry/rect_f.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace ui {
-
-class HardwareCursorDelegate;
-
-class CursorFactoryEvdevDri : public BitmapCursorFactoryOzone,
- public CursorDelegateEvdev {
- public:
- CursorFactoryEvdevDri(HardwareCursorDelegate* cursor);
- virtual ~CursorFactoryEvdevDri();
-
- // BitmapCursorFactoryOzone:
- virtual gfx::AcceleratedWidget GetCursorWindow() OVERRIDE;
- virtual void SetBitmapCursor(gfx::AcceleratedWidget widget,
- scoped_refptr<BitmapCursorOzone> cursor)
- OVERRIDE;
-
- // CursorDelegateEvdev:
- virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
- const gfx::PointF& location) OVERRIDE;
- virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE;
- virtual bool IsCursorVisible() OVERRIDE;
- virtual gfx::PointF location() OVERRIDE;
-
- private:
- // The location of the bitmap (the cursor location is the hotspot location).
- gfx::Point bitmap_location();
-
- // The DRI implementation for setting the hardware cursor.
- HardwareCursorDelegate* hardware_;
-
- // The current cursor bitmap.
- scoped_refptr<BitmapCursorOzone> cursor_;
-
- // The window under the cursor.
- gfx::AcceleratedWidget cursor_window_;
-
- // The location of the cursor within the window.
- gfx::PointF cursor_location_;
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
« no previous file with comments | « ui/ozone/platform/dri/BUILD.gn ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698