tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

NativeWindow9.cpp (880B)


      1 //
      2 // Copyright 2016 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 
      7 // NativeWindow9.cpp: Defines NativeWindow9, a class for managing and
      8 // performing operations on an EGLNativeWindowType for the D3D9 renderer.
      9 
     10 #include "libANGLE/renderer/d3d/d3d9/NativeWindow9.h"
     11 
     12 namespace rx
     13 {
     14 NativeWindow9::NativeWindow9(EGLNativeWindowType window) : NativeWindowD3D(window) {}
     15 
     16 bool NativeWindow9::initialize()
     17 {
     18    return true;
     19 }
     20 
     21 bool NativeWindow9::getClientRect(LPRECT rect) const
     22 {
     23    return GetClientRect(getNativeWindow(), rect) == TRUE;
     24 }
     25 
     26 bool NativeWindow9::isIconic() const
     27 {
     28    return IsIconic(getNativeWindow()) == TRUE;
     29 }
     30 
     31 // static
     32 bool NativeWindow9::IsValidNativeWindow(EGLNativeWindowType window)
     33 {
     34    return IsWindow(window) == TRUE;
     35 }
     36 
     37 }  // namespace rx