Chromium Code Reviews| Index: ash/public/interfaces/touch_view.mojom |
| diff --git a/ash/public/interfaces/touch_view.mojom b/ash/public/interfaces/touch_view.mojom |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..91d46774cf175aa1037152018ebd2b849f95f918 |
| --- /dev/null |
| +++ b/ash/public/interfaces/touch_view.mojom |
| @@ -0,0 +1,16 @@ |
| +// Copyright 2016 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. |
| + |
| +module ash.mojom; |
| + |
| +// Used to listen for when TouchView is toggled. |
| +interface TouchViewObserver { |
| + OnTouchViewChanged(bool enabled); |
|
James Cook
2016/12/01 16:55:09
nit: document when this is fired (e.g. before or a
jonross
2016/12/01 19:20:57
Added docs on timing. Going with the suggested OnT
|
| +}; |
| + |
| +// Accepts observers which are notified of the current state of TouchView, and |
| +// of all future state changes. |
| +interface TouchViewManager { |
|
James Cook
2016/12/01 16:55:09
Just curious, any particular reason for Manager vs
jonross
2016/12/01 19:20:56
I went with Manager as this interface provides no
|
| + AddObserver(TouchViewObserver client); |
|
James Cook
2016/12/01 16:55:09
Just curious, there's no need to remove?
Also, yo
jonross
2016/12/01 19:20:56
No need to remove, the mojo::InterfacePtrSet clear
|
| +}; |