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: |