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

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

Issue 2664973002: Let HTML UI manage menu mode. (Closed)
Patch Set: Rebase again to resolve ToT conflict. Created 3 years, 10 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 | « no previous file | 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 0fade99f938c62c6700e46e294eae37a44dd7045..b861494e366d104157850e237010381232b2679b 100644
--- a/chrome/browser/android/vr_shell/ui_interface.h
+++ b/chrome/browser/android/vr_shell/ui_interface.h
@@ -33,12 +33,9 @@ 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);
@@ -49,13 +46,13 @@ class UiInterface {
void UpdateTab(bool incognito, int id, const std::string& title);
void RemoveTab(bool incognito, int id);
void SetURL(const GURL& url);
-
- // Omnibox input and output handling.
- void HandleOmniboxInput(const base::DictionaryValue& input);
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);
+
void SetUiCommandHandler(UiCommandHandler* handler);
private:
@@ -63,7 +60,6 @@ class UiInterface {
void FlushModeState();
Mode mode_;
- bool menu_mode_ = false;
bool fullscreen_ = false;
UiCommandHandler* handler_;
bool loaded_ = false;
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698