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 3 // found in the LICENSE file. 4 5 #ifndef CHROME_BROWSER_VR_ELEMENTS_FULL_SCREEN_RECT_H_ 6 #define CHROME_BROWSER_VR_ELEMENTS_FULL_SCREEN_RECT_H_ 7 8 #include "base/macros.h" 9 #include "chrome/browser/vr/elements/rect.h" 10 11 namespace vr { 12 13 // A FullScreenRect ignores its inherited transform and fills the entire 14 // viewport. 15 class FullScreenRect : public Rect { 16 public: 17 FullScreenRect(); 18 ~FullScreenRect() override; 19 20 private: 21 void Render(UiElementRenderer* renderer, 22 const CameraModel& model) const final; 23 bool IsWorldPositioned() const final; 24 25 DISALLOW_COPY_AND_ASSIGN(FullScreenRect); 26 }; 27 28 } // namespace vr 29 30 #endif // CHROME_BROWSER_VR_ELEMENTS_FULL_SCREEN_RECT_H_ 31