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

Unified Diff: mojo/services/view_manager/gesture_manager_delegate.h

Issue 1092033003: Pulls display related changes from mojo to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: mojo/services/view_manager/gesture_manager_delegate.h
diff --git a/mojo/services/view_manager/gesture_manager_delegate.h b/mojo/services/view_manager/gesture_manager_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..7dcea1b4aeb26b37de852bb1cd5e69aaa6e1e62c
--- /dev/null
+++ b/mojo/services/view_manager/gesture_manager_delegate.h
@@ -0,0 +1,31 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_
+#define SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_
+
+#include <set>
+
+#include "third_party/mojo_services/src/input_events/public/interfaces/input_events.mojom.h"
+#include "third_party/mojo_services/src/view_manager/public/cpp/types.h"
+
+namespace view_manager {
+
+class GestureManagerDelegate {
+ public:
+ // Informs the delegate of a pointer event. The delegate should asynchronously
+ // respond with the set of gestures appropriate for the view
+ // (GestureManager::SetGestures()).
+ // |has_chosen_gesture| is true if a gesture has been chosen.
+ virtual void ProcessEvent(const ServerView* view,
+ mojo::EventPtr event,
+ bool has_chosen_gesture) = 0;
+
+ protected:
+ virtual ~GestureManagerDelegate() {}
+};
+
+} // namespace view_manager
+
+#endif // SERVICES_VIEW_MANAGER_GESTURE_MANAGER_DELEGATE_H_
« no previous file with comments | « mojo/services/view_manager/gesture_manager.cc ('k') | mojo/services/view_manager/gesture_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698