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

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

Issue 2960903002: VR: Use ToolbarModel to drive VR URL bar state. (Closed)
Patch Set: Update toolbar build file to include vector icons for Android. Created 3 years, 5 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 "components/security_state/core/security_state.h" 8 #include "components/security_state/core/security_state.h"
9 9
10 class GURL;
11 class SkBitmap; 10 class SkBitmap;
12 11
13 namespace vr_shell { 12 namespace vr_shell {
14 13
14 struct ToolbarState;
15
15 // This class manages the communication of browser state from VR shell to the 16 // This class manages the communication of browser state from VR shell to the
16 // HTML UI. State information is asynchronous and unidirectional. 17 // HTML UI. State information is asynchronous and unidirectional.
17 class UiInterface { 18 class UiInterface {
18 public: 19 public:
19 enum Direction { 20 enum Direction {
20 NONE = 0, 21 NONE = 0,
21 LEFT, 22 LEFT,
22 RIGHT, 23 RIGHT,
23 UP, 24 UP,
24 DOWN, 25 DOWN,
25 }; 26 };
26 27
27 virtual ~UiInterface() {} 28 virtual ~UiInterface() {}
28 29
29 virtual void SetWebVrMode(bool enabled, bool show_toast) = 0; 30 virtual void SetWebVrMode(bool enabled, bool show_toast) = 0;
30 virtual void SetURL(const GURL& url) = 0;
31 virtual void SetFullscreen(bool enabled) = 0; 31 virtual void SetFullscreen(bool enabled) = 0;
32 virtual void SetSecurityInfo(security_state::SecurityLevel level, 32 virtual void SetToolbarState(const ToolbarState& state) = 0;
33 bool fails_malware_check) = 0;
34 virtual void SetIncognito(bool enabled) = 0; 33 virtual void SetIncognito(bool enabled) = 0;
35 virtual void SetWebVrSecureOrigin(bool secure) = 0; 34 virtual void SetWebVrSecureOrigin(bool secure) = 0;
36 virtual void SetLoading(bool loading) = 0; 35 virtual void SetLoading(bool loading) = 0;
37 virtual void SetLoadProgress(float progress) = 0; 36 virtual void SetLoadProgress(float progress) = 0;
38 virtual void SetIsExiting() = 0; 37 virtual void SetIsExiting() = 0;
39 virtual void SetHistoryButtonsEnabled(bool can_go_back, 38 virtual void SetHistoryButtonsEnabled(bool can_go_back,
40 bool can_go_forward) = 0; 39 bool can_go_forward) = 0;
41 virtual void SetVideoCapturingIndicator(bool enabled) = 0; 40 virtual void SetVideoCapturingIndicator(bool enabled) = 0;
42 virtual void SetScreenCapturingIndicator(bool enabled) = 0; 41 virtual void SetScreenCapturingIndicator(bool enabled) = 0;
43 virtual void SetAudioCapturingIndicator(bool enabled) = 0; 42 virtual void SetAudioCapturingIndicator(bool enabled) = 0;
44 virtual void SetSplashScreenIcon(const SkBitmap& bitmap) = 0; 43 virtual void SetSplashScreenIcon(const SkBitmap& bitmap) = 0;
45 44
46 // Tab handling. 45 // Tab handling.
47 virtual void InitTabList() {} 46 virtual void InitTabList() {}
48 virtual void AppendToTabList(bool incognito, 47 virtual void AppendToTabList(bool incognito,
49 int id, 48 int id,
50 const base::string16& title) {} 49 const base::string16& title) {}
51 virtual void FlushTabList() {} 50 virtual void FlushTabList() {}
52 virtual void UpdateTab(bool incognito, int id, const std::string& title) {} 51 virtual void UpdateTab(bool incognito, int id, const std::string& title) {}
53 virtual void RemoveTab(bool incognito, int id) {} 52 virtual void RemoveTab(bool incognito, int id) {}
54 }; 53 };
55 54
56 } // namespace vr_shell 55 } // namespace vr_shell
57 56
58 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 57 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.cc ('k') | chrome/browser/android/vr_shell/ui_scene_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698