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

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

Issue 201573015: Introdcue AshWindowTreeHost and move ash/chrome specific code in WTH to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
7
8 #include "ash/ash_export.h"
9 #include "ash/host/ash_window_tree_host.h"
10 #include "ash/host/transformer_helper.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/env_observer.h"
13 #include "ui/aura/window_tree_host_x11.h"
14
15 namespace ash {
16 class RootWindowTransformer;
17
18 class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost,
19 public aura::WindowTreeHostX11,
20 public aura::EnvObserver {
21 public:
22 explicit AshWindowTreeHostX11(const gfx::Rect& initial_bounds);
23 virtual ~AshWindowTreeHostX11();
24
25 // AshWindowTreeHost:
Ben Goodger (Google) 2014/04/09 22:41:49 since you never refer to this type directly, these
oshima 2014/04/09 23:52:15 Done.
26 virtual void ToggleFullScreen() OVERRIDE;
27 virtual bool ConfineCursorToRootWindow() OVERRIDE;
28 virtual void UnConfineCursor() OVERRIDE;
29 virtual void SetRootWindowTransformer(
30 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE;
31 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
32
33 // aura::WindowTreehost:
34 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
35 virtual gfx::Transform GetRootTransform() const OVERRIDE;
36 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE;
37 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE;
38 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE;
39 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
40
41 // aura::WindowTreeHostX11:
42 virtual void OnConfigureNotify() OVERRIDE;
43 virtual void TranslateAndDispatchLocatedEvent(ui::LocatedEvent* event)
44 OVERRIDE;
45
46 // EnvObserver overrides.
47 virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
48 virtual void OnHostInitialized(aura::WindowTreeHost* host) OVERRIDE;
49
50 private:
51 class TouchEventCalibrate;
52
53 // Update is_internal_display_ based on the current state.
54 void UpdateIsInternalDisplay();
55
56 // Set the CrOS touchpad "tap paused" property. It is used to temporarily
57 // turn off the Tap-to-click feature when the mouse pointer is invisible.
58 void SetCrOSTapPaused(bool state);
59
60 // True if the root host resides on the internal display
61 bool is_internal_display_;
62
63 scoped_ptr<XID[]> pointer_barriers_;
64
65 scoped_ptr<TouchEventCalibrate> touch_calibrate_;
66
67 TransformerHelper transformer_helper_;
68
69 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11);
70 };
71
72 } // namespace ash
73
74 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698