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

Unified Diff: components/mus/public/cpp/lib/in_flight_change.h

Issue 1465803003: mus: Let clients set the cursor of their window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do it the other way + explicit checks that it is a mouse pointer. Created 5 years 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 | « no previous file | components/mus/public/cpp/lib/in_flight_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/in_flight_change.h
diff --git a/components/mus/public/cpp/lib/in_flight_change.h b/components/mus/public/cpp/lib/in_flight_change.h
index 33d041789f9fd8158c10453a35c90da670a1c38d..8179cf62599204ffcbc3d9633acc256a4ef1bf46 100644
--- a/components/mus/public/cpp/lib/in_flight_change.h
+++ b/components/mus/public/cpp/lib/in_flight_change.h
@@ -15,6 +15,10 @@
namespace mus {
+namespace mojom {
+enum Cursor : int32_t;
+}
+
class Window;
enum class ChangeType {
@@ -22,6 +26,7 @@ enum class ChangeType {
BOUNDS,
DELETE_WINDOW,
NEW_WINDOW,
+ PREDEFINED_CURSOR,
PROPERTY,
REMOVE_TRANSIENT_WINDOW_FROM_PARENT,
VISIBLE,
@@ -131,6 +136,21 @@ class InFlightPropertyChange : public InFlightChange {
DISALLOW_COPY_AND_ASSIGN(InFlightPropertyChange);
};
+class InFlightPredefinedCursorChange : public InFlightChange {
+ public:
+ InFlightPredefinedCursorChange(Window* window, mojom::Cursor revert_value);
+ ~InFlightPredefinedCursorChange() override;
+
+ // InFlightChange:
+ void SetRevertValueFrom(const InFlightChange& change) override;
+ void Revert() override;
+
+ private:
+ mojom::Cursor revert_cursor_;
+
+ DISALLOW_COPY_AND_ASSIGN(InFlightPredefinedCursorChange);
+};
+
class InFlightVisibleChange : public InFlightChange {
public:
InFlightVisibleChange(Window* window, const bool revert_value);
« no previous file with comments | « no previous file | components/mus/public/cpp/lib/in_flight_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698