Index: mandoline/ui/browser/omnibox.mojom |
diff --git a/mandoline/ui/browser/omnibox.mojom b/mandoline/ui/browser/omnibox.mojom |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b69b543ae6f7a0fad2b0530ba599ccf93696fde3 |
--- /dev/null |
+++ b/mandoline/ui/browser/omnibox.mojom |
@@ -0,0 +1,20 @@ |
+// Copyright 2015 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 mandoline; |
+ |
+// TODO(beng): Could this be generalized as a "Chooser" with a specific type?? |
+ |
+// Interface implemented by the browser to respond to input from the omnibox |
+// app. |
+interface OmniboxClient { |
+ OpenURL(string url); |
+}; |
+ |
+// Interface implemented by an application providing a method for URL input. |
+interface Omnibox { |
+ SetClient(OmniboxClient client); |
+ |
+ ShowForURL(string url); |
+}; |