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

Unified Diff: chrome/browser/android/vr_shell/vr_omnibox.h

Issue 2647053002: Add initial VR interactive omnibox. (Closed)
Patch Set: Rebase to ToT. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.cc ('k') | chrome/browser/android/vr_shell/vr_omnibox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_omnibox.h
diff --git a/chrome/browser/android/vr_shell/vr_omnibox.h b/chrome/browser/android/vr_shell/vr_omnibox.h
new file mode 100644
index 0000000000000000000000000000000000000000..d4d058a7b384a4832c4f4cad5cb5566da418bf04
--- /dev/null
+++ b/chrome/browser/android/vr_shell/vr_omnibox.h
@@ -0,0 +1,41 @@
+// Copyright 2017 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.
+
+#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_OMNIBOX_H_
+#define CHROME_BROWSER_ANDROID_VR_SHELL_VR_OMNIBOX_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "base/values.h"
+#include "components/omnibox/browser/autocomplete_controller_delegate.h"
+
+class AutocompleteController;
+class Profile;
+
+namespace vr_shell {
+
+class UiInterface;
+
+class VrOmnibox : public AutocompleteControllerDelegate {
+ public:
+ explicit VrOmnibox(UiInterface* ui);
+ ~VrOmnibox() override;
+
+ void HandleInput(const base::DictionaryValue& dict);
+
+ private:
+ void OnResultChanged(bool default_match_changed) override;
+
+ UiInterface* ui_;
+
+ Profile* profile_;
+ std::unique_ptr<AutocompleteController> autocomplete_controller_;
+
+ DISALLOW_COPY_AND_ASSIGN(VrOmnibox);
+};
+
+} // namespace vr_shell
+
+#endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_OMNIBOX_H_
« no previous file with comments | « chrome/browser/android/vr_shell/ui_interface.cc ('k') | chrome/browser/android/vr_shell/vr_omnibox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698