910e62b5创建于 1月15日历史提交
// 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_FULL_SCREEN_RECT_H_
#define CHROME_BROWSER_VR_ELEMENTS_FULL_SCREEN_RECT_H_

#include "chrome/browser/vr/elements/rect.h"

namespace vr {

// A FullScreenRect ignores its inherited transform and fills the entire
// viewport.
class FullScreenRect : public Rect {
 public:
  FullScreenRect();

  FullScreenRect(const FullScreenRect&) = delete;
  FullScreenRect& operator=(const FullScreenRect&) = delete;

  ~FullScreenRect() override;

 private:
  void Render(UiElementRenderer* renderer,
              const CameraModel& model) const final;
  bool IsWorldPositioned() const final;
};

}  // namespace vr

#endif  // CHROME_BROWSER_VR_ELEMENTS_FULL_SCREEN_RECT_H_