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

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

Issue 2536223002: Omnibox improvements and fixes. (Closed)
Patch Set: Separate omnibox icon selection from webVR warning toggle. Created 4 years 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 15 matching lines...) Expand all
26 WEB_VR, 26 WEB_VR,
27 MENU, 27 MENU,
28 CINEMA, 28 CINEMA,
29 }; 29 };
30 30
31 UiInterface(); 31 UiInterface();
32 virtual ~UiInterface(); 32 virtual ~UiInterface();
33 33
34 void SetMode(Mode mode); 34 void SetMode(Mode mode);
35 Mode GetMode() { return mode_; } 35 Mode GetMode() { return mode_; }
36 void SetSecureOrigin(bool secure); 36 void SetSecurityLevel(int level);
37 void SetWebVRSecureOrigin(bool secure);
37 void SetLoading(bool loading); 38 void SetLoading(bool loading);
38 void SetURL(const GURL& url); 39 void SetURL(const GURL& url);
39 40
40 // Called by WebUI when starting VR. 41 // Called by WebUI when starting VR.
41 void OnDomContentsLoaded(); 42 void OnDomContentsLoaded();
42 void SetUiCommandHandler(UiCommandHandler* handler); 43 void SetUiCommandHandler(UiCommandHandler* handler);
43 44
44 private: 45 private:
45 void FlushUpdates(); 46 void FlushUpdates();
46 47
47 Mode mode_; 48 Mode mode_;
48 UiCommandHandler* handler_; 49 UiCommandHandler* handler_;
49 bool loaded_ = false; 50 bool loaded_ = false;
50 base::DictionaryValue updates_; 51 base::DictionaryValue updates_;
51 52
52 DISALLOW_COPY_AND_ASSIGN(UiInterface); 53 DISALLOW_COPY_AND_ASSIGN(UiInterface);
53 }; 54 };
54 55
55 } // namespace vr_shell 56 } // namespace vr_shell
56 57
57 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_ 58 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698