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

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

Issue 2966793002: NOT FOR REVIEW - convert to cc animation
Patch Set: switch to transform operations Created 3 years, 5 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_EXIT_PROMPT_BACKPLANE_H_ 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_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXIT_PROMPT_BACKPLANE_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" 9 #include "chrome/browser/android/vr_shell/ui_elements/ui_element.h"
10 10
11 namespace vr_shell { 11 namespace vr_shell {
12 12
13 // An invisible but hittable plane behind the exit prompt, to keep the reticle 13 // An invisible but hittable plane behind the exit prompt, to keep the reticle
14 // roughly planar with the prompt when its near the prompt. 14 // roughly planar with the prompt when its near the prompt.
15 class ExitPromptBackplane : public UiElement { 15 class ExitPromptBackplane : public UiElement {
16 public: 16 public:
17 explicit ExitPromptBackplane(const base::Callback<void()>& click_callback); 17 explicit ExitPromptBackplane(int id,
18 const base::Callback<void()>& click_callback);
18 ~ExitPromptBackplane() override; 19 ~ExitPromptBackplane() override;
19 20
20 void OnButtonUp(const gfx::PointF& position) override; 21 void OnButtonUp(const gfx::PointF& position) override;
21 22
22 private: 23 private:
23 base::Callback<void()> click_callback_; 24 base::Callback<void()> click_callback_;
24 25
25 DISALLOW_COPY_AND_ASSIGN(ExitPromptBackplane); 26 DISALLOW_COPY_AND_ASSIGN(ExitPromptBackplane);
26 }; 27 };
27 28
28 } // namespace vr_shell 29 } // namespace vr_shell
29 30
30 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXIT_PROMPT_BACKPLANE_H_ 31 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_EXIT_PROMPT_BACKPLANE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698