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..42275acb3f4483e1d01bd15791e8212370d5716b |
| --- /dev/null |
| +++ b/ash/public/interfaces/touch_view.mojom |
| @@ -0,0 +1,19 @@ |
| +// 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 { |
| + // This is fired after the touch view mode has been toggled. |
| + OnTouchViewToggled(bool enabled); |
| +}; |
| + |
| +// Accepts observers which are notified of the current state of TouchView, and |
| +// of all future state changes. |
| +interface TouchViewManager { |
| + // Calling this method triggers an initial notification of the touch view |
| + // state. Observers are automatically removed as their connections are closed. |
| + AddObserver(TouchViewObserver client); |
|
dcheng
2016/12/02 02:59:50
Nit: shouldn't the parameter be called observer =)
jonross
2016/12/02 14:45:59
Done.
|
| +}; |