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

Side by Side Diff: ash/host/ash_window_tree_host_unified.h

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, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/host/ash_window_tree_host.h" 10 #include "ash/host/ash_window_tree_host.h"
11 #include "ash/host/transformer_helper.h"
11 #include "ui/aura/window_observer.h" 12 #include "ui/aura/window_observer.h"
12 #include "ui/aura/window_tree_host.h" 13 #include "ui/aura/window_tree_host.h"
13 #include "ui/events/event_source.h" 14 #include "ui/events/event_source.h"
14 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
15 16
16 namespace ui { 17 namespace ui {
17 class Reflector; 18 class Reflector;
18 } 19 }
19 20
20 namespace ash { 21 namespace ash {
(...skipping 22 matching lines...) Expand all
43 void PrepareForShutdown() override; 44 void PrepareForShutdown() override;
44 void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) override; 45 void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) override;
45 46
46 // aura::WindowTreeHost: 47 // aura::WindowTreeHost:
47 ui::EventSource* GetEventSource() override; 48 ui::EventSource* GetEventSource() override;
48 gfx::AcceleratedWidget GetAcceleratedWidget() override; 49 gfx::AcceleratedWidget GetAcceleratedWidget() override;
49 void Show() override; 50 void Show() override;
50 void Hide() override; 51 void Hide() override;
51 gfx::Rect GetBounds() const override; 52 gfx::Rect GetBounds() const override;
52 void SetBounds(const gfx::Rect& bounds) override; 53 void SetBounds(const gfx::Rect& bounds) override;
54 gfx::Transform GetRootTransform() const override;
55 void SetRootTransform(const gfx::Transform& transform) override;
56 gfx::Transform GetInverseRootTransform() const override;
57 void UpdateRootWindowSize(const gfx::Size& host_size) override;
53 void SetCapture() override; 58 void SetCapture() override;
54 void ReleaseCapture() override; 59 void ReleaseCapture() override;
55 gfx::Point GetLocationOnNativeScreen() const override; 60 gfx::Point GetLocationOnNativeScreen() const override;
56 void SetCursorNative(gfx::NativeCursor cursor) override; 61 void SetCursorNative(gfx::NativeCursor cursor) override;
57 void MoveCursorToNative(const gfx::Point& location) override; 62 void MoveCursorToNative(const gfx::Point& location) override;
58 void OnCursorVisibilityChangedNative(bool show) override; 63 void OnCursorVisibilityChangedNative(bool show) override;
59 64
60 // aura::WindowObserver: 65 // aura::WindowObserver:
61 void OnWindowDestroying(aura::Window* window) override; 66 void OnWindowDestroying(aura::Window* window) override;
62 67
63 // ui::EventSource: 68 // ui::EventSource:
64 ui::EventProcessor* GetEventProcessor() override; 69 ui::EventProcessor* GetEventProcessor() override;
65 70
66 std::vector<AshWindowTreeHost*> mirroring_hosts_; 71 std::vector<AshWindowTreeHost*> mirroring_hosts_;
67 72
68 gfx::Rect bounds_; 73 gfx::Rect bounds_;
69 74
75 TransformerHelper transformer_helper_;
76
70 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified); 77 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified);
71 }; 78 };
72 79
73 } // namespace ash 80 } // namespace ash
74 81
75 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_ 82 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698