| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ | 5 #ifndef ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ |
| 6 #define ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ | 6 #define ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "ui/aura/root_window_transformer.h" | 10 #include "ui/aura/root_window_transformer.h" |
| 11 #include "ui/gfx/insets.h" | 11 #include "ui/gfx/insets.h" |
| 12 #include "ui/gfx/transform.h" | 12 #include "ui/gfx/transform.h" |
| 13 | 13 |
| 14 namespace aura { | 14 namespace aura { |
| 15 class RootWindow; | 15 class RootWindow; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 | 19 |
| 20 // RootWindowTransformer for ash environment. | 20 // RootWindowTransformer for ash environment. |
| 21 class ASH_EXPORT AshRootWindowTransformer : public aura::RootWindowTransformer { | 21 class ASH_EXPORT AshRootWindowTransformer : public aura::RootWindowTransformer { |
| 22 public: | 22 public: |
| 23 AshRootWindowTransformer(aura::RootWindow* root, | 23 AshRootWindowTransformer(aura::RootWindow* root, |
| 24 const gfx::Transform& transform, | 24 const gfx::Transform& transform, |
| 25 const gfx::Transform& inverted, | |
| 26 const gfx::Insets& insets, | 25 const gfx::Insets& insets, |
| 27 float root_window_scale); | 26 float root_window_scale); |
| 28 // aura::RootWindowTransformer overrides: | 27 // aura::RootWindowTransformer overrides: |
| 29 virtual gfx::Transform GetTransform() const OVERRIDE; | 28 virtual gfx::Transform GetTransform() const OVERRIDE; |
| 30 virtual gfx::Transform GetInverseTransform() const OVERRIDE; | 29 virtual gfx::Transform GetInverseTransform() const OVERRIDE; |
| 31 virtual gfx::Rect GetRootWindowBounds( | 30 virtual gfx::Rect GetRootWindowBounds( |
| 32 const gfx::Size& host_size) const OVERRIDE; | 31 const gfx::Size& host_size) const OVERRIDE; |
| 33 virtual gfx::Insets GetHostInsets() const OVERRIDE; | 32 virtual gfx::Insets GetHostInsets() const OVERRIDE; |
| 34 | 33 |
| 35 private: | 34 private: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 50 float root_window_scale_; | 49 float root_window_scale_; |
| 51 | 50 |
| 52 gfx::Insets host_insets_; | 51 gfx::Insets host_insets_; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(AshRootWindowTransformer); | 53 DISALLOW_COPY_AND_ASSIGN(AshRootWindowTransformer); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace ash | 56 } // namespace ash |
| 58 | 57 |
| 59 #endif // ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ | 58 #endif // ASH_ASH_ROOT_WINDOW_TRANSFORMER_H_ |
| OLD | NEW |