Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: ash/host/ash_window_tree_host_ozone.cc

Issue 443713002: [Ozone] Fix setting the transform on the AshWindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/host/ash_window_tree_host.h" 5 #include "ash/host/ash_window_tree_host.h"
6 6
7 #include "ash/host/ash_window_tree_host_init_params.h" 7 #include "ash/host/ash_window_tree_host_init_params.h"
8 #include "ash/host/root_window_transformer.h" 8 #include "ash/host/root_window_transformer.h"
9 #include "ash/host/transformer_helper.h" 9 #include "ash/host/transformer_helper.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 gfx::Insets AshWindowTreeHostOzone::GetHostInsets() const { 66 gfx::Insets AshWindowTreeHostOzone::GetHostInsets() const {
67 return transformer_helper_.GetHostInsets(); 67 return transformer_helper_.GetHostInsets();
68 } 68 }
69 69
70 aura::WindowTreeHost* AshWindowTreeHostOzone::AsWindowTreeHost() { 70 aura::WindowTreeHost* AshWindowTreeHostOzone::AsWindowTreeHost() {
71 return this; 71 return this;
72 } 72 }
73 73
74 void AshWindowTreeHostOzone::SetRootTransform(const gfx::Transform& transform) { 74 void AshWindowTreeHostOzone::SetRootTransform(const gfx::Transform& transform) {
75 transformer_helper_.GetTransform(); 75 transformer_helper_.SetTransform(transform);
76 } 76 }
77 77
78 gfx::Transform AshWindowTreeHostOzone::GetRootTransform() const { 78 gfx::Transform AshWindowTreeHostOzone::GetRootTransform() const {
79 return transformer_helper_.GetTransform(); 79 return transformer_helper_.GetTransform();
80 } 80 }
81 81
82 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const { 82 gfx::Transform AshWindowTreeHostOzone::GetInverseRootTransform() const {
83 return transformer_helper_.GetInverseTransform(); 83 return transformer_helper_.GetInverseTransform();
84 } 84 }
85 85
86 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) { 86 void AshWindowTreeHostOzone::UpdateRootWindowSize(const gfx::Size& host_size) {
87 transformer_helper_.UpdateWindowSize(host_size); 87 transformer_helper_.UpdateWindowSize(host_size);
88 } 88 }
89 89
90 } // namespace 90 } // namespace
91 91
92 AshWindowTreeHost* AshWindowTreeHost::Create( 92 AshWindowTreeHost* AshWindowTreeHost::Create(
93 const AshWindowTreeHostInitParams& init_params) { 93 const AshWindowTreeHostInitParams& init_params) {
94 return new AshWindowTreeHostOzone(init_params.initial_bounds); 94 return new AshWindowTreeHostOzone(init_params.initial_bounds);
95 } 95 }
96 96
97 } // namespace ash 97 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698