Implement zcr_input_method_surface interface.
This CL introduces InputMethodSurface class for handling input method
surface role.
Also the version of remote_shell interface is bumped to 17.
Bug: 845079
Test: Ran on DUT.
Change-Id: I79d26a941deb621c5155e53ad6989414a6bd3614
Reviewed-on: https://chromium-review.googlesource.com/1131052
Commit-Queue: Yuichiro Hanada <[email protected]>
Reviewed-by: Mitsuru Oshima <[email protected]>
Cr-Commit-Position: refs/heads/master@{#575595}
diff --git a/components/exo/input_method_surface_manager.h b/components/exo/input_method_surface_manager.h
new file mode 100644
index 0000000..f9ea3b7
--- /dev/null
+++ b/components/exo/input_method_surface_manager.h
@@ -0,0 +1,28 @@
+// Copyright 2018 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 COMPONENTS_EXO_INPUT_METHOD_SURFACE_MANAGER_H_
+#define COMPONENTS_EXO_INPUT_METHOD_SURFACE_MANAGER_H_
+
+namespace exo {
+
+class InputMethodSurface;
+
+class InputMethodSurfaceManager {
+ public:
+ virtual ~InputMethodSurfaceManager() = default;
+
+ // Gets the InputMethodSurface currently used.
+ virtual InputMethodSurface* GetSurface() const = 0;
+
+ // Adds an InputMethodSurface to the manager.
+ virtual void AddSurface(InputMethodSurface* surface) = 0;
+
+ // Removes a InputMethodSurface from the manager.
+ virtual void RemoveSurface(InputMethodSurface* surface) = 0;
+};
+
+} // namespace exo
+
+#endif // COMPONENTS_EXO_INPUT_METHOD_SURFACE_MANAGER_H_