| // Copyright 2018 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_VR_ELEMENTS_OVAL_H_ |
| #define CHROME_BROWSER_VR_ELEMENTS_OVAL_H_ |
| |
| #include "chrome/browser/vr/elements/rect.h" |
| #include "chrome/browser/vr/vr_ui_export.h" |
| |
| namespace vr { |
| |
| // An oval behaves like a rect save for the fact that it manages its own corner |
| // radii to ensure circular right and left end caps. |
| class VR_UI_EXPORT Oval : public Rect { |
| public: |
| Oval(); |
| ~Oval() override; |
| |
| private: |
| void NotifyClientSizeAnimated(const gfx::SizeF& size, |
| int target_property_id, |
| cc::KeyframeModel* keyframe_model) override; |
| |
| DISALLOW_COPY_AND_ASSIGN(Oval); |
| }; |
| |
| } // namespace vr |
| |
| #endif // CHROME_BROWSER_VR_ELEMENTS_OVAL_H_ |