| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |