Use native radiobutton for Default Search Engine picker dialog.
[chromium-blink-merge.git] / ash / host / ash_window_tree_host_unified.h
blobaa9ab4c36b207d333848ef298faa7b7d1c081386
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.
5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_
8 #include <vector>
10 #include "ash/host/ash_window_tree_host.h"
11 #include "ash/host/transformer_helper.h"
12 #include "ui/aura/window_observer.h"
13 #include "ui/aura/window_tree_host.h"
14 #include "ui/events/event_source.h"
15 #include "ui/gfx/geometry/rect.h"
17 namespace ui {
18 class Reflector;
21 namespace ash {
22 class DisplayInfo;
24 // A WTH used for unified desktop mode. This creates an offscreen
25 // compositor whose texture will be copied into each displays'
26 // compositor.
27 class AshWindowTreeHostUnified : public AshWindowTreeHost,
28 public aura::WindowTreeHost,
29 public aura::WindowObserver,
30 public ui::EventSource {
31 public:
32 explicit AshWindowTreeHostUnified(const gfx::Rect& initial_bounds);
33 ~AshWindowTreeHostUnified() override;
35 private:
36 // AshWindowTreeHost:
37 void ToggleFullScreen() override;
38 bool ConfineCursorToRootWindow() override;
39 void UnConfineCursor() override;
40 void SetRootWindowTransformer(
41 scoped_ptr<RootWindowTransformer> transformer) override;
42 gfx::Insets GetHostInsets() const override;
43 aura::WindowTreeHost* AsWindowTreeHost() override;
44 void PrepareForShutdown() override;
45 void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) override;
47 // aura::WindowTreeHost:
48 ui::EventSource* GetEventSource() override;
49 gfx::AcceleratedWidget GetAcceleratedWidget() override;
50 void Show() override;
51 void Hide() override;
52 gfx::Rect GetBounds() const 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;
58 void SetCapture() override;
59 void ReleaseCapture() override;
60 gfx::Point GetLocationOnNativeScreen() const override;
61 void SetCursorNative(gfx::NativeCursor cursor) override;
62 void MoveCursorToNative(const gfx::Point& location) override;
63 void OnCursorVisibilityChangedNative(bool show) override;
65 // aura::WindowObserver:
66 void OnWindowDestroying(aura::Window* window) override;
68 // ui::EventSource:
69 ui::EventProcessor* GetEventProcessor() override;
71 std::vector<AshWindowTreeHost*> mirroring_hosts_;
73 gfx::Rect bounds_;
75 TransformerHelper transformer_helper_;
77 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostUnified);
80 } // namespace ash
82 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_UNIFIED_H_