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

Unified Diff: components/exo/surface.cc

Issue 2896943002: Add "stylus-tools" Wayland protocol. (Closed)
Patch Set: Addressed comments Created 3 years, 7 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
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index d68aa04186364f6113f8e13ed4730a3f94e5829c..9abdc53216ac1b606c0049076818aad44ddab159 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -26,6 +26,7 @@
#include "components/exo/surface_delegate.h"
#include "components/exo/surface_observer.h"
#include "third_party/khronos/GLES2/gl2.h"
+#include "ui/aura/client/aura_constants.h"
#include "ui/aura/env.h"
#include "ui/aura/window_delegate.h"
#include "ui/aura/window_targeter.h"
@@ -634,6 +635,10 @@ void Surface::CheckIfSurfaceHierarchyNeedsCommitToNewSurfaces() {
SetSurfaceHierarchyNeedsCommitToNewSurfaces();
}
+void Surface::SetStylusOnly() {
+ window_->SetProperty(aura::client::kStylusOnlyKey, true);
+}
+
////////////////////////////////////////////////////////////////////////////////
// ui::ContextFactoryObserver overrides:

Powered by Google App Engine
This is Rietveld 408576698