Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module ash.mojom; | |
| 6 | |
| 7 // Used to listen for when TouchView is toggled. | |
| 8 interface TouchViewObserver { | |
| 9 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
| |
| 10 }; | |
| 11 | |
| 12 // Accepts observers which are notified of the current state of TouchView, and | |
| 13 // of all future state changes. | |
| 14 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
| |
| 15 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
| |
| 16 }; | |
| OLD | NEW |