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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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
« no previous file with comments | « ui/ozone/platform/dri/dri_console_buffer.cc ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_cursor.h
diff --git a/ui/ozone/platform/dri/dri_cursor.h b/ui/ozone/platform/dri/dri_cursor.h
deleted file mode 100644
index f13abeff303b2cbf5972b5bdd0f776ce3b4c0183..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_cursor.h
+++ /dev/null
@@ -1,64 +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_DRI_CURSOR_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
-
-#include "base/memory/ref_counted.h"
-#include "ui/base/cursor/cursor.h"
-#include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace gfx {
-class PointF;
-class Vector2dF;
-}
-
-namespace ui {
-
-class BitmapCursorOzone;
-class BitmapCursorFactoryOzone;
-class DriWindowManager;
-class HardwareCursorDelegate;
-
-class DriCursor : public CursorDelegateEvdev {
- public:
- explicit DriCursor(HardwareCursorDelegate* hardware,
- DriWindowManager* window_manager);
- virtual ~DriCursor();
-
- void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor platform_cursor);
- void ShowCursor();
- void HideCursor();
- gfx::AcceleratedWidget GetCursorWindow();
-
- // 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_;
-
- DriWindowManager* window_manager_; // Not owned.
-
- // 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_DRI_CURSOR_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_console_buffer.cc ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698