1// Copyright 2014 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#include "ash/host/ash_remote_window_tree_host_win.h" 6 7#include "ash/host/root_window_transformer.h" 8#include "ui/gfx/geometry/insets.h" 9#include "ui/gfx/transform.h" 10 11namespace ash { 12 13AshRemoteWindowTreeHostWin::AshRemoteWindowTreeHostWin(HWND remote_hwnd) 14 : aura::RemoteWindowTreeHostWin(), 15 transformer_helper_(this) { 16 SetRemoteWindowHandle(remote_hwnd); 17} 18 19AshRemoteWindowTreeHostWin::~AshRemoteWindowTreeHostWin() {} 20 21void AshRemoteWindowTreeHostWin::ToggleFullScreen() {} 22 23bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; } 24 25void AshRemoteWindowTreeHostWin::UnConfineCursor() {} 26 27void AshRemoteWindowTreeHostWin::SetRootWindowTransformer( 28 scoped_ptr<RootWindowTransformer> transformer) { 29 transformer_helper_.SetRootWindowTransformer(transformer.Pass()); 30} 31 32gfx::Insets AshRemoteWindowTreeHostWin::GetHostInsets() const { 33 return gfx::Insets(); 34} 35 36aura::WindowTreeHost* AshRemoteWindowTreeHostWin::AsWindowTreeHost() { 37 return this; 38} 39 40gfx::Transform AshRemoteWindowTreeHostWin::GetRootTransform() const { 41 return transformer_helper_.GetTransform(); 42} 43 44void AshRemoteWindowTreeHostWin::SetRootTransform( 45 const gfx::Transform& transform) { 46 transformer_helper_.SetTransform(transform); 47} 48 49gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const { 50 return transformer_helper_.GetInverseTransform(); 51} 52 53void AshRemoteWindowTreeHostWin::UpdateRootWindowSize( 54 const gfx::Size& host_size) { 55 transformer_helper_.UpdateWindowSize(host_size); 56} 57 58} // namespace ash 59