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

Unified Diff: components/exo/pointer.cc

Issue 2572963002: exo: Produce an error if stylus delegate is already associated. (Closed)
Patch Set: Created 4 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/exo/pointer.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index dd79ff23491f43584f2ec2322e10a17960876b97..0e5e9d1bfff77c2d5c0ffbb2e7bcbe7b4ef0886b 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -123,6 +123,10 @@ void Pointer::SetCursor(Surface* surface, const gfx::Point& hotspot) {
focus_->window()->GetCursor(gfx::ToFlooredPoint(location_)));
}
+bool Pointer::HasStylusDelegate() const {
+ return !!stylus_delegate_;
+}
+
void Pointer::SetStylusDelegate(PointerStylusDelegate* delegate) {
stylus_delegate_ = delegate;
}
« no previous file with comments | « components/exo/pointer.h ('k') | components/exo/wayland/server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698