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

Unified Diff: ash/host/ash_window_tree_host_unified.cc

Issue 1119953002: Enable display rotation, magnifier in unified desktop mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/host/ash_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_unified.cc
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc
index ccc04428c7931e22aa947a46884b7339d85ef2d3..d213c87401dd536ebedb07c68ace71cb44364031 100644
--- a/ash/host/ash_window_tree_host_unified.cc
+++ b/ash/host/ash_window_tree_host_unified.cc
@@ -47,8 +47,9 @@ class UnifiedEventTargeter : public aura::WindowTargeter {
AshWindowTreeHostUnified::AshWindowTreeHostUnified(
const gfx::Rect& initial_bounds)
- : bounds_(gfx::Rect(initial_bounds.size())) {
+ : bounds_(gfx::Rect(initial_bounds.size())), transformer_helper_(this) {
CreateCompositor(GetAcceleratedWidget());
+ transformer_helper_.Init();
oshima 2015/05/01 04:11:18 Initialize transformer_helper requires window(), w
}
AshWindowTreeHostUnified::~AshWindowTreeHostUnified() {
@@ -87,12 +88,11 @@ void AshWindowTreeHostUnified::UnConfineCursor() {
void AshWindowTreeHostUnified::SetRootWindowTransformer(
scoped_ptr<RootWindowTransformer> transformer) {
- // TODO(oshima): Find out if this is neceessary.
- NOTIMPLEMENTED();
+ transformer_helper_.SetRootWindowTransformer(transformer.Pass());
}
gfx::Insets AshWindowTreeHostUnified::GetHostInsets() const {
- return gfx::Insets();
+ return transformer_helper_.GetHostInsets();
}
aura::WindowTreeHost* AshWindowTreeHostUnified::AsWindowTreeHost() {
@@ -124,6 +124,24 @@ void AshWindowTreeHostUnified::SetBounds(const gfx::Rect& bounds) {
OnHostResized(bounds_.size());
}
+gfx::Transform AshWindowTreeHostUnified::GetRootTransform() const {
+ return transformer_helper_.GetTransform();
+}
+
+void AshWindowTreeHostUnified::SetRootTransform(
+ const gfx::Transform& transform) {
+ transformer_helper_.SetTransform(transform);
+}
+
+gfx::Transform AshWindowTreeHostUnified::GetInverseRootTransform() const {
+ return transformer_helper_.GetInverseTransform();
+}
+
+void AshWindowTreeHostUnified::UpdateRootWindowSize(
+ const gfx::Size& host_size) {
+ transformer_helper_.UpdateWindowSize(host_size);
+}
+
void AshWindowTreeHostUnified::SetCapture() {
}
« no previous file with comments | « ash/host/ash_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698