blob: 0b508997f16a03888fb4b3d7ccdcb16694e2f855 [file] [log] [blame]
// 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 OnSizeAnimated(const gfx::SizeF& size,
int target_property_id,
gfx::KeyframeModel* keyframe_model) override;
DISALLOW_COPY_AND_ASSIGN(Oval);
};
} // namespace vr
#endif // CHROME_BROWSER_VR_ELEMENTS_OVAL_H_