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

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

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Flatten TranslateLocatedEvent() Created 6 years 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
« no previous file with comments | « ash/ash.gyp ('k') | ash/host/ash_window_tree_host.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_H_ 5 #ifndef ASH_HOST_ASH_WINDOW_TREE_HOST_H_
6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 6 #define ASH_HOST_ASH_WINDOW_TREE_HOST_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 class WindowTreeHost; 13 class WindowTreeHost;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Insets; 17 class Insets;
18 class Rect; 18 class Rect;
19 } 19 }
20 20
21 namespace ui {
22 class LocatedEvent;
23 }
24
21 namespace ash { 25 namespace ash {
22 struct AshWindowTreeHostInitParams; 26 struct AshWindowTreeHostInitParams;
23 class RootWindowTransformer; 27 class RootWindowTransformer;
24 28
25 class ASH_EXPORT AshWindowTreeHost { 29 class ASH_EXPORT AshWindowTreeHost {
26 public: 30 public:
27 virtual ~AshWindowTreeHost() {} 31 virtual ~AshWindowTreeHost() {}
28 32
29 // Creates a new AshWindowTreeHost. The caller owns the returned value. 33 // Creates a new AshWindowTreeHost. The caller owns the returned value.
30 static AshWindowTreeHost* Create( 34 static AshWindowTreeHost* Create(
(...skipping 19 matching lines...) Expand all
50 54
51 // Updates the display IDs associated with this root window. 55 // Updates the display IDs associated with this root window.
52 // A root window can be associated with up to 2 display IDs (e.g. in mirror 56 // A root window can be associated with up to 2 display IDs (e.g. in mirror
53 // mode dual monitors case). If the root window is only associated with one 57 // mode dual monitors case). If the root window is only associated with one
54 // display id, then the other id should be set to 58 // display id, then the other id should be set to
55 // gfx::Display::kInvalidDisplayID. 59 // gfx::Display::kInvalidDisplayID.
56 virtual void UpdateDisplayID(int64 id1, int64 id2) {} 60 virtual void UpdateDisplayID(int64 id1, int64 id2) {}
57 61
58 // Stop listening for events in preparation for shutdown. 62 // Stop listening for events in preparation for shutdown.
59 virtual void PrepareForShutdown() {} 63 virtual void PrepareForShutdown() {}
64
65 protected:
66 // Translates the native mouse location into screen coordinates.
67 void TranslateLocatedEvent(ui::LocatedEvent* event);
60 }; 68 };
61 69
62 } // namespace ash 70 } // namespace ash
63 71
64 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_ 72 #endif // ASH_HOST_ASH_WINDOW_TREE_HOST_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/host/ash_window_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698