| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" |
| 12 #include "url/gurl.h" |
| 13 |
| 14 namespace vr_shell { |
| 15 |
| 16 class UrlBarTexture; |
| 17 |
| 18 class UrlBar : public TexturedElement { |
| 19 public: |
| 20 explicit UrlBar(int preferred_width); |
| 21 ~UrlBar() override; |
| 22 |
| 23 void OnHoverEnter() override; |
| 24 void OnHoverLeave() override; |
| 25 void SetURL(const GURL& gurl); |
| 26 |
| 27 private: |
| 28 UiTexture* GetTexture() const override; |
| 29 std::unique_ptr<UrlBarTexture> texture_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(UrlBar); |
| 32 }; |
| 33 |
| 34 } // namespace vr_shell |
| 35 |
| 36 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| OLD | NEW |