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

Side by Side Diff: chrome/browser/android/vr_shell/ui_interface.h

Issue 2620383007: Tie VR omnibox to page load progress through TabObserver. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 void SetMode(Mode mode); 32 void SetMode(Mode mode);
33 Mode GetMode() { return mode_; } 33 Mode GetMode() { return mode_; }
34 void SetMenuMode(bool enabled); 34 void SetMenuMode(bool enabled);
35 bool GetMenuMode() { return menu_mode_; } 35 bool GetMenuMode() { return menu_mode_; }
36 void SetFullscreen(bool enabled); 36 void SetFullscreen(bool enabled);
37 bool GetFullscreen() { return fullscreen_; } 37 bool GetFullscreen() { return fullscreen_; }
38 void SetSecurityLevel(int level); 38 void SetSecurityLevel(int level);
39 void SetWebVRSecureOrigin(bool secure); 39 void SetWebVRSecureOrigin(bool secure);
40 void SetLoading(bool loading); 40 void SetLoading(bool loading);
41 void SetLoadProgress(double progress);
41 void SetURL(const GURL& url); 42 void SetURL(const GURL& url);
42 43
43 // Called by WebUI when starting VR. 44 // Called by WebUI when starting VR.
44 void OnDomContentsLoaded(); 45 void OnDomContentsLoaded();
45 void SetUiCommandHandler(UiCommandHandler* handler); 46 void SetUiCommandHandler(UiCommandHandler* handler);
46 47
47 private: 48 private:
48 void FlushUpdates(); 49 void FlushUpdates();
49 void FlushModeState(); 50 void FlushModeState();
50 51
51 Mode mode_; 52 Mode mode_;
52 bool menu_mode_ = false; 53 bool menu_mode_ = false;
53 bool fullscreen_ = false; 54 bool fullscreen_ = false;
54 UiCommandHandler* handler_; 55 UiCommandHandler* handler_;
55 bool loaded_ = false; 56 bool loaded_ = false;
56 base::DictionaryValue updates_; 57 base::DictionaryValue updates_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(UiInterface); 59 DISALLOW_COPY_AND_ASSIGN(UiInterface);
59 }; 60 };
60 61
61 } // namespace vr_shell 62 } // namespace vr_shell
62 63
63 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 64 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698