| 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_URL_BAR_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void SetBackButtonCallback(const base::Callback<void()>& callback); | 41 void SetBackButtonCallback(const base::Callback<void()>& callback); |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 void UpdateTexture() override; | 44 void UpdateTexture() override; |
| 45 UiTexture* GetTexture() const override; | 45 UiTexture* GetTexture() const override; |
| 46 void OnStateUpdated(const gfx::PointF& position); | 46 void OnStateUpdated(const gfx::PointF& position); |
| 47 | 47 |
| 48 std::unique_ptr<UrlBarTexture> texture_; | 48 std::unique_ptr<UrlBarTexture> texture_; |
| 49 base::Callback<void()> back_button_callback_; | 49 base::Callback<void()> back_button_callback_; |
| 50 bool enabled_ = false; | 50 bool enabled_ = false; |
| 51 bool can_go_back_ = false; |
| 51 bool down_ = false; | 52 bool down_ = false; |
| 52 base::TimeTicks last_begin_frame_time_; | 53 base::TimeTicks last_begin_frame_time_; |
| 53 base::TimeTicks last_update_time_; | 54 base::TimeTicks last_update_time_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(UrlBar); | 56 DISALLOW_COPY_AND_ASSIGN(UrlBar); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 } // namespace vr_shell | 59 } // namespace vr_shell |
| 59 | 60 |
| 60 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ | 61 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ |
| OLD | NEW |