| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mash.mojom; | 5 module mash.mojom; |
| 6 | 6 |
| 7 const uint32 kWindow = 1; | 7 const uint32 kWindow = 1; |
| 8 const uint32 kDocument = 2; | 8 const uint32 kIncognitoWindow = 2; |
| 9 const uint32 kIncognitoWindow = 3; | |
| 10 | 9 |
| 11 enum LaunchMode { | 10 enum LaunchMode { |
| 12 DEFAULT, | 11 DEFAULT, |
| 13 REUSE, | 12 REUSE, |
| 14 MAKE_NEW | 13 MAKE_NEW |
| 15 }; | 14 }; |
| 16 | 15 |
| 17 interface Launchable { | 16 interface Launchable { |
| 18 // Launches something. The implementor decides what constitutes a "thing." If | 17 // Launches something. The implementor decides what constitutes a "thing." If |
| 19 // an instance of the thing is already present, the implementor may decide to | 18 // an instance of the thing is already present, the implementor may decide to |
| 20 // re-select that thing instead of making another, depending on the value of | 19 // re-select that thing instead of making another, depending on the value of |
| 21 // |how|. In many windowing cases, the thing is a window. | 20 // |how|. In many windowing cases, the thing is a window. |
| 22 Launch(uint32 what, LaunchMode how); | 21 Launch(uint32 what, LaunchMode how); |
| 23 }; | 22 }; |
| OLD | NEW |