Chromium Code Reviews| 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_EXIT_PROMPT_BACKPLANE_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXIT_PROMPT_BACKPLANE_H_ | |
| 7 | |
| 8 #include "base/callback.h" | |
| 9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" | |
| 10 | |
| 11 namespace vr_shell { | |
| 12 | |
| 13 // An invisible but hittable plane behind the content quad, to keep the | |
|
cjgrant
2017/06/06 21:21:55
"behind the exit prompt" (and again later in the
ymalik
2017/06/07 14:55:58
Done.
| |
| 14 // reticle roughly planar with the content if near content. | |
| 15 class ExitPromptBackplane : public UiElement { | |
| 16 public: | |
| 17 explicit ExitPromptBackplane(const base::Callback<void()>& click_callback); | |
| 18 ~ExitPromptBackplane() override; | |
| 19 | |
| 20 void OnButtonUp(const gfx::PointF& position) override; | |
| 21 | |
| 22 private: | |
| 23 base::Callback<void()> click_callback_; | |
| 24 | |
| 25 DISALLOW_COPY_AND_ASSIGN(ExitPromptBackplane); | |
| 26 }; | |
| 27 | |
| 28 } // namespace vr_shell | |
| 29 | |
| 30 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXIT_PROMPT_BACKPLANE_H_ | |
| OLD | NEW |