Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/common/extensions/api/launcher_search_provider.idl

Issue 1825913002: [Extensions] Convert APIs to use movable types [7] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Steven's Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // An API to listen queries of the Chrome Launcher and provide search results 5 // An API to listen queries of the Chrome Launcher and provide search results
6 // to it. 6 // to it.
7 [platforms=("chromeos"), 7 [platforms=("chromeos"),
8 implemented_in="chrome/browser/chromeos/extensions/launcher_search_provider.h", 8 implemented_in="chrome/browser/chromeos/extensions/launcher_search_provider.h",
9 nodoc] 9 nodoc,
10 use_movable_types=true]
10 namespace launcherSearchProvider { 11 namespace launcherSearchProvider {
11 dictionary SearchResult { 12 dictionary SearchResult {
12 DOMString itemId; 13 DOMString itemId;
13 DOMString title; 14 DOMString title;
14 // If iconUrl is not provided, app/extension icon is used automatically. 15 // If iconUrl is not provided, app/extension icon is used automatically.
15 DOMString? iconUrl; 16 DOMString? iconUrl;
16 // Relevance ranges from 0 to 4. 0 is the lowest relevance, 4 is highest. 17 // Relevance ranges from 0 to 4. 0 is the lowest relevance, 4 is highest.
17 long relevance; 18 long relevance;
18 }; 19 };
19 20
(...skipping 16 matching lines...) Expand all
36 37
37 // Called when query of |queryId| is ended. After this call, 38 // Called when query of |queryId| is ended. After this call,
38 // setSearchResults no longer accept the results for queryId. 39 // setSearchResults no longer accept the results for queryId.
39 static void onQueryEnded(long queryId); 40 static void onQueryEnded(long queryId);
40 41
41 // Called when a user clicks a search result which is provided by 42 // Called when a user clicks a search result which is provided by
42 // setSearchResults. 43 // setSearchResults.
43 static void onOpenResult(DOMString itemId); 44 static void onOpenResult(DOMString itemId);
44 }; 45 };
45 }; 46 };
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/launcher_page.idl ('k') | chrome/common/extensions/api/log_private.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698