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

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

Issue 270863005: Use native coordinates to warp the cursor to another display. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/host/ash_window_tree_host_win.cc ('k') | ash/host/ash_window_tree_host_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_X11_H_ 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/host/ash_window_tree_host.h" 9 #include "ash/host/ash_window_tree_host.h"
10 #include "ash/host/transformer_helper.h" 10 #include "ash/host/transformer_helper.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "ui/aura/env_observer.h" 12 #include "ui/aura/env_observer.h"
13 #include "ui/aura/window_tree_host_x11.h" 13 #include "ui/aura/window_tree_host_x11.h"
14 14
15 namespace ash { 15 namespace ash {
16 class RootWindowTransformer; 16 class RootWindowTransformer;
17 class MouseCursorEventFilter;
17 18
18 class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost, 19 class ASH_EXPORT AshWindowTreeHostX11 : public AshWindowTreeHost,
19 public aura::WindowTreeHostX11, 20 public aura::WindowTreeHostX11,
20 public aura::EnvObserver { 21 public aura::EnvObserver {
21 public: 22 public:
22 explicit AshWindowTreeHostX11(const gfx::Rect& initial_bounds); 23 explicit AshWindowTreeHostX11(const gfx::Rect& initial_bounds);
23 virtual ~AshWindowTreeHostX11(); 24 virtual ~AshWindowTreeHostX11();
24 25
25 private: 26 private:
26 // AshWindowTreeHost: 27 // AshWindowTreeHost:
27 virtual void ToggleFullScreen() OVERRIDE; 28 virtual void ToggleFullScreen() OVERRIDE;
28 virtual bool ConfineCursorToRootWindow() OVERRIDE; 29 virtual bool ConfineCursorToRootWindow() OVERRIDE;
29 virtual void UnConfineCursor() OVERRIDE; 30 virtual void UnConfineCursor() OVERRIDE;
30 virtual void SetRootWindowTransformer( 31 virtual void SetRootWindowTransformer(
31 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE; 32 scoped_ptr<RootWindowTransformer> transformer) OVERRIDE;
33 virtual gfx::Insets GetHostInsets() const OVERRIDE;
32 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE; 34 virtual aura::WindowTreeHost* AsWindowTreeHost() OVERRIDE;
33 35
34 // aura::WindowTreehost: 36 // aura::WindowTreehost:
35 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 37 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
36 virtual gfx::Transform GetRootTransform() const OVERRIDE; 38 virtual gfx::Transform GetRootTransform() const OVERRIDE;
37 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE; 39 virtual void SetRootTransform(const gfx::Transform& transform) OVERRIDE;
38 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE; 40 virtual gfx::Transform GetInverseRootTransform() const OVERRIDE;
39 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE; 41 virtual void UpdateRootWindowSize(const gfx::Size& host_size) OVERRIDE;
40 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE; 42 virtual void OnCursorVisibilityChangedNative(bool show) OVERRIDE;
41 43
(...skipping 23 matching lines...) Expand all
65 scoped_ptr<TouchEventCalibrate> touch_calibrate_; 67 scoped_ptr<TouchEventCalibrate> touch_calibrate_;
66 68
67 TransformerHelper transformer_helper_; 69 TransformerHelper transformer_helper_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11); 71 DISALLOW_COPY_AND_ASSIGN(AshWindowTreeHostX11);
70 }; 72 };
71 73
72 } // namespace ash 74 } // namespace ash
73 75
74 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_ 76 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_X11_H_
OLDNEW
« no previous file with comments | « ash/host/ash_window_tree_host_win.cc ('k') | ash/host/ash_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698