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

Side by Side Diff: components/omnibox/browser/physical_web_provider.h

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data source changes Created 4 years, 4 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
(Empty)
1 // Copyright (c) 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 #ifndef COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_PROVIDER_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_PROVIDER_H_
7
8 #include "components/omnibox/browser/autocomplete_input.h"
9 #include "components/omnibox/browser/autocomplete_provider.h"
10
11 class AutocompleteProviderClient;
12
13 namespace base {
14 class ListValue;
15 }
16
17 class PhysicalWebProvider : public AutocompleteProvider {
18 public:
19 static PhysicalWebProvider* Create(AutocompleteProviderClient* client);
20
21 // AutocompleteProvider:
22 void Start(const AutocompleteInput& input, bool minimal_changes) override;
23 void Stop(bool clear_cached_results, bool due_to_user_inactivity) override;
24
25 private:
26 PhysicalWebProvider(AutocompleteProviderClient* client);
27 ~PhysicalWebProvider() override;
28
29 void ConstructMatches(base::ListValue* metadata_list);
30 void AppendOverflowItemIfNecessary(base::ListValue* metadata_list);
Mark P 2016/08/08 20:41:38 Comment above two functions.
mattreynolds 2016/08/09 21:42:03 Done.
31
32 AutocompleteProviderClient* client_;
33 };
34
35 #endif // COMPONENTS_OMNIBOX_BROWSER_PHYSICAL_WEB_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698