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

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

Issue 2661823002: NOT FOR REVIEW: A set of patches for Josh to work on top of. (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
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7fda8c9f5d2fcdb771a0fae124ae2cdc81ca4c46 100644
--- a/chrome/browser/android/vr_shell/ui_interface.h
+++ b/chrome/browser/android/vr_shell/ui_interface.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
#define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
+#include <memory>
+
#include "base/macros.h"
#include "base/values.h"
@@ -12,6 +14,8 @@ class GURL;
namespace vr_shell {
+class VrOmnibox;
+
class UiCommandHandler {
public:
virtual void SendCommandToUi(const base::Value& value) = 0;
@@ -29,20 +33,22 @@ class UiInterface {
explicit UiInterface(Mode initial_mode, bool fullscreen);
virtual ~UiInterface();
+ // Set HTML UI state or pass events.
void SetMode(Mode mode);
- Mode GetMode() { return mode_; }
- void SetMenuMode(bool enabled);
- bool GetMenuMode() { return menu_mode_; }
void SetFullscreen(bool enabled);
- bool GetFullscreen() { return fullscreen_; }
void SetSecurityLevel(int level);
void SetWebVRSecureOrigin(bool secure);
void SetLoading(bool loading);
void SetLoadProgress(double progress);
void SetURL(const GURL& url);
+ void SetOmniboxSuggestions(std::unique_ptr<base::Value> suggestions);
+ void HandleAppButtonClicked();
- // Called by WebUI when starting VR.
+ // Handlers for HTML UI commands and notifications.
void OnDomContentsLoaded();
+ void HandleOmniboxInput(const base::DictionaryValue& input);
+
+ // Called by WebUI when starting VR.
void SetUiCommandHandler(UiCommandHandler* handler);
private:
@@ -50,12 +56,13 @@ class UiInterface {
void FlushModeState();
Mode mode_;
- bool menu_mode_ = false;
bool fullscreen_ = false;
UiCommandHandler* handler_;
bool loaded_ = false;
base::DictionaryValue updates_;
+ std::unique_ptr<VrOmnibox> omnibox_;
+
DISALLOW_COPY_AND_ASSIGN(UiInterface);
};
« no previous file with comments | « chrome/browser/android/vr_shell/BUILD.gn ('k') | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698