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

Side by Side Diff: ui/aura/window_tree_host.h

Issue 191223007: Move touch CTM from X into Chrome (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: move CTM update code into a separate file ash/touch/touch_ctm_controller.cc Created 6 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_AURA_WINDOW_TREE_HOST_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_
6 #define UI_AURA_WINDOW_TREE_HOST_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/event_types.h" 10 #include "base/event_types.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void OnCursorVisibilityChanged(bool visible); 107 void OnCursorVisibilityChanged(bool visible);
108 108
109 // Moves the cursor to the specified location relative to the root window. 109 // Moves the cursor to the specified location relative to the root window.
110 void MoveCursorTo(const gfx::Point& location); 110 void MoveCursorTo(const gfx::Point& location);
111 111
112 // Moves the cursor to the |host_location| given in host coordinates. 112 // Moves the cursor to the |host_location| given in host coordinates.
113 void MoveCursorToHostLocation(const gfx::Point& host_location); 113 void MoveCursorToHostLocation(const gfx::Point& host_location);
114 114
115 gfx::NativeCursor last_cursor() const { return last_cursor_; } 115 gfx::NativeCursor last_cursor() const { return last_cursor_; }
116 116
117 void UpdateDisplayID(int64 id1, int64 id2) {
118 display_ids_.first = id1;
119 display_ids_.second = id2;
120 }
121
122 const std::pair<int64, int64>& display_ids() const {
123 return display_ids_;
124 }
125
117 // Returns the accelerated widget. 126 // Returns the accelerated widget.
118 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0; 127 virtual gfx::AcceleratedWidget GetAcceleratedWidget() = 0;
119 128
120 // Shows the WindowTreeHost. 129 // Shows the WindowTreeHost.
121 virtual void Show() = 0; 130 virtual void Show() = 0;
122 131
123 // Hides the WindowTreeHost. 132 // Hides the WindowTreeHost.
124 virtual void Hide() = 0; 133 virtual void Hide() = 0;
125 134
126 // Toggles the host's full screen state. 135 // Toggles the host's full screen state.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 220
212 scoped_ptr<ui::Compositor> compositor_; 221 scoped_ptr<ui::Compositor> compositor_;
213 222
214 scoped_ptr<RootWindowTransformer> transformer_; 223 scoped_ptr<RootWindowTransformer> transformer_;
215 224
216 // Last cursor set. Used for testing. 225 // Last cursor set. Used for testing.
217 gfx::NativeCursor last_cursor_; 226 gfx::NativeCursor last_cursor_;
218 227
219 scoped_ptr<ui::ViewProp> prop_; 228 scoped_ptr<ui::ViewProp> prop_;
220 229
230 // The display IDs associated with this root window.
231 // In single monitor or extended mode dual monitor case, the root window
232 // is associated with one display.
233 // In mirror mode dual monitors case, the root window is associated with
234 // both displays.
235 std::pair<int64, int64> display_ids_;
oshima 2014/03/14 21:53:53 Instead of adding these information and code in th
Ben Goodger (Google) 2014/03/24 19:36:55 And if this code is only used from ash, some code
oshima 2014/03/24 20:00:10 Sorry I probably wasn't clear. This is used from a
236
221 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); 237 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost);
222 }; 238 };
223 239
224 } // namespace aura 240 } // namespace aura
225 241
226 #endif // UI_AURA_WINDOW_TREE_HOST_H_ 242 #endif // UI_AURA_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698