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

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

Issue 1107733006: Unified Desktop: hook up ash to allow 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_VIRTUAL_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_VIRTUAL_H_
7
8 #include <vector>
9
10 #include "ash/host/ash_window_tree_host.h"
11 #include "ui/aura/window_observer.h"
12 #include "ui/aura/window_tree_host.h"
13 #include "ui/events/event_source.h"
14 #include "ui/gfx/geometry/rect.h"
15
16 namespace ui {
17 class Reflector;
18 }
19
20 namespace ash {
21 class DisplayInfo;
22
23 class AshWindowTreeHostVirtual : public AshWindowTreeHost,
24 public aura::WindowTreeHost,
25 public aura::WindowObserver,
26 public ui::EventSource {
27 public:
28 explicit AshWindowTreeHostVirtual(const gfx::Rect& initial_bounds);
29 ~AshWindowTreeHostVirtual() override;
30
31 // void RegisterWindowTreeHost(const ash::DisplayInfo& info);
32 // void RemoveWindowTreeHost(int64 display_id);
33
34 private:
35 struct PerDisplayData;
36
37 // AshWindowTreeHost:
38 void ToggleFullScreen() override;
39 bool ConfineCursorToRootWindow() override;
40 void UnConfineCursor() override;
41 void SetRootWindowTransformer(
42 scoped_ptr<RootWindowTransformer> transformer) override;
43 gfx::Insets GetHostInsets() const override;
44 aura::WindowTreeHost* AsWindowTreeHost() override;
45 void PrepareForShutdown() override;
46 void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) override;
47
48 // aura::WindowTreeHost:
49 ui::EventSource* GetEventSource() override;
50 gfx::AcceleratedWidget GetAcceleratedWidget() override;
51 void Show() override;
52 void Hide() override;
53 gfx::Rect GetBounds() const override;
54 void SetBounds(const gfx::Rect& bounds) override;
55 void SetCapture() override;
56 void ReleaseCapture() override;
57 gfx::Point GetLocationOnNativeScreen() const override;
58 void SetCursorNative(gfx::NativeCursor cursor) override;
59 void MoveCursorToNative(const gfx::Point& location) override;
60 void OnCursorVisibilityChangedNative(bool show) override;
61
62 // aura::WindowObserver:
63 void OnWindowDestroying(aura::Window* window) override;
64
65 // ui::EventSource:
66 ui::EventProcessor* GetEventProcessor() override;
67
68 std::vector<AshWindowTreeHost*> mirroring_hosts_;
69
70 gfx::Rect bounds_;
71
72 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostVirtual);
73 };
74
75 } // namespace ash
76
77 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_VIRTUAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698