Unflake PlatformNotificationServiceTest.NotificationPermissionLastUsage
[chromium-blink-merge.git] / ash / host / ash_remote_window_tree_host_win.cc
blob67d3aaa8862f12c77251d2b37ce7775379a7c9a0
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.
5 #include "ash/host/ash_remote_window_tree_host_win.h"
7 #include "ash/host/root_window_transformer.h"
8 #include "ui/gfx/geometry/insets.h"
9 #include "ui/gfx/transform.h"
11 namespace ash {
13 AshRemoteWindowTreeHostWin::AshRemoteWindowTreeHostWin(HWND remote_hwnd)
14 : aura::RemoteWindowTreeHostWin(),
15 transformer_helper_(this) {
16 SetRemoteWindowHandle(remote_hwnd);
19 AshRemoteWindowTreeHostWin::~AshRemoteWindowTreeHostWin() {}
21 void AshRemoteWindowTreeHostWin::ToggleFullScreen() {}
23 bool AshRemoteWindowTreeHostWin::ConfineCursorToRootWindow() { return false; }
25 void AshRemoteWindowTreeHostWin::UnConfineCursor() {}
27 void AshRemoteWindowTreeHostWin::SetRootWindowTransformer(
28 scoped_ptr<RootWindowTransformer> transformer) {
29 transformer_helper_.SetRootWindowTransformer(transformer.Pass());
32 gfx::Insets AshRemoteWindowTreeHostWin::GetHostInsets() const {
33 return gfx::Insets();
36 aura::WindowTreeHost* AshRemoteWindowTreeHostWin::AsWindowTreeHost() {
37 return this;
40 gfx::Transform AshRemoteWindowTreeHostWin::GetRootTransform() const {
41 return transformer_helper_.GetTransform();
44 void AshRemoteWindowTreeHostWin::SetRootTransform(
45 const gfx::Transform& transform) {
46 transformer_helper_.SetTransform(transform);
49 gfx::Transform AshRemoteWindowTreeHostWin::GetInverseRootTransform() const {
50 return transformer_helper_.GetInverseTransform();
53 void AshRemoteWindowTreeHostWin::UpdateRootWindowSize(
54 const gfx::Size& host_size) {
55 transformer_helper_.UpdateWindowSize(host_size);
58 } // namespace ash