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

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

Issue 2647053002: Add initial VR interactive omnibox. (Closed)
Patch Set: 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
Index: chrome/browser/android/vr_shell/ui_interface.h
diff --git a/chrome/browser/android/vr_shell/ui_interface.h b/chrome/browser/android/vr_shell/ui_interface.h
index cc825c3f5ad225a6c128357af140a7a821915a89..c6e10ddc435b66d9a128c5ecd86230076d85b887 100644
--- a/chrome/browser/android/vr_shell/ui_interface.h
+++ b/chrome/browser/android/vr_shell/ui_interface.h
@@ -12,6 +12,8 @@ class GURL;
namespace vr_shell {
+class VrOmnibox;
+
class UiCommandHandler {
public:
virtual void SendCommandToUi(const base::Value& value) = 0;
@@ -41,6 +43,10 @@ class UiInterface {
void SetLoadProgress(double progress);
void SetURL(const GURL& url);
+ // Omnibox input and output handling.
+ void HandleOmniboxInput(const base::DictionaryValue& input);
+ void SetOmniboxSuggestions(std::unique_ptr<base::Value> suggestions);
+
// Called by WebUI when starting VR.
void OnDomContentsLoaded();
void SetUiCommandHandler(UiCommandHandler* handler);
@@ -56,6 +62,8 @@ class UiInterface {
bool loaded_ = false;
base::DictionaryValue updates_;
+ std::unique_ptr<VrOmnibox> omnibox_;
+
DISALLOW_COPY_AND_ASSIGN(UiInterface);
};

Powered by Google App Engine
This is Rietveld 408576698