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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h

Issue 2946523002: VR: Support security chip text on URL bar. (Closed)
Patch Set: Address comments. Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ELEMENTS_TRANSIENT_URL_BAR_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_TRANSIENT_URL_BAR_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_TRANSIENT_URL_BAR_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_TRANSIENT_URL_BAR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
22 // The non-interactive URL bar that shows for some time when WebVR content is 22 // The non-interactive URL bar that shows for some time when WebVR content is
23 // autopresented. 23 // autopresented.
24 class TransientUrlBar : public TexturedElement { 24 class TransientUrlBar : public TexturedElement {
25 public: 25 public:
26 TransientUrlBar( 26 TransientUrlBar(
27 int preferred_width, 27 int preferred_width,
28 const base::Callback<void(UiUnsupportedMode)>& failure_callback); 28 const base::Callback<void(UiUnsupportedMode)>& failure_callback);
29 ~TransientUrlBar() override; 29 ~TransientUrlBar() override;
30 30
31 void SetURL(const GURL& gurl); 31 void SetURL(const GURL& gurl);
32 void SetSecurityLevel(security_state::SecurityLevel level); 32 void SetSecurityInfo(security_state::SecurityLevel level, bool malware);
33 33
34 private: 34 private:
35 UiTexture* GetTexture() const override; 35 UiTexture* GetTexture() const override;
36 36
37 std::unique_ptr<UrlBarTexture> texture_; 37 std::unique_ptr<UrlBarTexture> texture_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(TransientUrlBar); 39 DISALLOW_COPY_AND_ASSIGN(TransientUrlBar);
40 }; 40 };
41 41
42 } // namespace vr_shell 42 } // namespace vr_shell
43 43
44 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_TRANSIENT_URL_BAR_H_ 44 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_TRANSIENT_URL_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698