// Copyright 2017 The Chromium Authors // 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_RECT_H_ #define CHROME_BROWSER_VR_ELEMENTS_RECT_H_ #include "chrome/browser/vr/elements/ui_element.h" #include "chrome/browser/vr/vr_ui_export.h" #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/geometry/point_f.h" namespace vr { // A rect renders a rect via a shader (no texture). This rect can optionally // have a corner radius and may have a difference center and edge color. If // these colors are different, we will render a radial gradient between these // two colors. This radial gradient is not aspect correct; it will be elliptical // if the rect is stretched. This is intended to serve as a background to be put // behind other elements. class VR_UI_EXPORT Rect : public UiElement { … }; } // namespace vr #endif // CHROME_BROWSER_VR_ELEMENTS_RECT_H_