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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: Created 3 years, 7 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_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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h" 13 #include "chrome/browser/android/vr_shell/ui_elements/textured_element.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace vr_shell { 16 namespace vr_shell {
17 17
18 class UrlBarTexture; 18 class UrlBarTexture;
19 19
20 class UrlBar : public TexturedElement { 20 class UrlBar : public TexturedElement {
21 public: 21 public:
22 explicit UrlBar(int preferred_width); 22 UrlBar(int preferred_width, const base::Callback<void()>& failure_callback);
23 ~UrlBar() override; 23 ~UrlBar() override;
24 24
25 void OnHoverEnter(const gfx::PointF& position) override; 25 void OnHoverEnter(const gfx::PointF& position) override;
26 void OnHoverLeave() override; 26 void OnHoverLeave() override;
27 void OnMove(const gfx::PointF& position) override; 27 void OnMove(const gfx::PointF& position) override;
28 void OnButtonDown(const gfx::PointF& position) override; 28 void OnButtonDown(const gfx::PointF& position) override;
29 void OnButtonUp(const gfx::PointF& position) override; 29 void OnButtonUp(const gfx::PointF& position) override;
30 bool HitTest(const gfx::PointF& point) const override; 30 bool HitTest(const gfx::PointF& point) const override;
31 31
32 void OnBeginFrame(const base::TimeTicks& begin_frame_time) override; 32 void OnBeginFrame(const base::TimeTicks& begin_frame_time) override;
(...skipping 14 matching lines...) Expand all
47 bool down_ = false; 47 bool down_ = false;
48 base::TimeTicks last_begin_frame_time_; 48 base::TimeTicks last_begin_frame_time_;
49 base::TimeTicks last_update_time_; 49 base::TimeTicks last_update_time_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(UrlBar); 51 DISALLOW_COPY_AND_ASSIGN(UrlBar);
52 }; 52 };
53 53
54 } // namespace vr_shell 54 } // namespace vr_shell
55 55
56 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_ 56 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_URL_BAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698