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

Unified Diff: components/mus/ws/test_change_tracker.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 | « components/mus/ws/server_window_observer.h ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/test_change_tracker.h
diff --git a/components/mus/ws/test_change_tracker.h b/components/mus/ws/test_change_tracker.h
index aa7a5a644f2ac90e3324f60649e5b3d37949a7a5..df9b6d66e94fa351a09a1bbebb6e77b2108064da 100644
--- a/components/mus/ws/test_change_tracker.h
+++ b/components/mus/ws/test_change_tracker.h
@@ -36,6 +36,7 @@ enum ChangeType {
CHANGE_TYPE_PROPERTY_CHANGED,
CHANGE_TYPE_DELEGATE_EMBED,
CHANGE_TYPE_FOCUSED,
+ CHANGE_TYPE_CURSOR_CHANGED
};
// TODO(sky): consider nuking and converting directly to WindowData.
@@ -76,6 +77,7 @@ struct Change {
bool bool_value;
std::string property_key;
std::string property_value;
+ int32_t cursor_id;
};
// Converts Changes to string descriptions.
@@ -146,6 +148,7 @@ class TestChangeTracker {
mojo::String name,
mojo::Array<uint8_t> data);
void OnWindowFocused(Id window_id);
+ void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id);
void DelegateEmbed(const mojo::String& url);
private:
« no previous file with comments | « components/mus/ws/server_window_observer.h ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698