Use "= delete" for DISALLOW_COPY and DISALLOW_ASSIGN.
[chromium-blink-merge.git] / ash / host / ash_window_tree_host.h
blobfab7afd1f7bbde725f594175eb5ed6a8f45f9cd7
1 // Copyright 2014 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_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_
8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace aura {
12 class Window;
13 class WindowTreeHost;
16 namespace gfx {
17 class Insets;
18 class Rect;
21 namespace ui {
22 class LocatedEvent;
25 namespace ash {
26 struct AshWindowTreeHostInitParams;
27 class RootWindowTransformer;
29 class ASH_EXPORT AshWindowTreeHost {
30 public:
31 virtual ~AshWindowTreeHost() {}
33 // Creates a new AshWindowTreeHost. The caller owns the returned value.
34 static AshWindowTreeHost* Create(
35 const AshWindowTreeHostInitParams& init_params);
37 // Toggles the host's full screen state.
38 virtual void ToggleFullScreen() = 0;
40 // Clips the cursor to the bounds of the root window until UnConfineCursor().
41 // We would like to be able to confine the cursor to that window. However,
42 // currently, we do not have such functionality in X. So we just confine
43 // to the root window. This is ok because this option is currently only
44 // being used in fullscreen mode, so root_window bounds = window bounds.
45 virtual bool ConfineCursorToRootWindow() = 0;
46 virtual void UnConfineCursor() = 0;
48 virtual void SetRootWindowTransformer(
49 scoped_ptr<RootWindowTransformer> transformer) = 0;
51 virtual gfx::Insets GetHostInsets() const = 0;
53 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0;
55 // Stop listening for events in preparation for shutdown.
56 virtual void PrepareForShutdown() {}
58 virtual void RegisterMirroringHost(AshWindowTreeHost* mirroring_ash_host) {}
60 protected:
61 // Translates the native mouse location into screen coordinates.
62 void TranslateLocatedEvent(ui::LocatedEvent* event);
65 } // namespace ash
67 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_