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

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

Issue 49383004: Ensure on Windows AURA that the cursor stays within the bounds of the window during a LockMouse ope… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month 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 | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/root_window.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 (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_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Moves the cursor to the specified location relative to the root window. 130 // Moves the cursor to the specified location relative to the root window.
131 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE; 131 virtual void MoveCursorTo(const gfx::Point& location) OVERRIDE;
132 132
133 // Moves the cursor to the |host_location| given in host coordinates. 133 // Moves the cursor to the |host_location| given in host coordinates.
134 void MoveCursorToHostLocation(const gfx::Point& host_location); 134 void MoveCursorToHostLocation(const gfx::Point& host_location);
135 135
136 // Clips the cursor movement to the root_window. 136 // Clips the cursor movement to the root_window.
137 bool ConfineCursorToWindow(); 137 bool ConfineCursorToWindow();
138 138
139 // Restores the cursor movement beyond the root window.
140 void UnConfineCursor();
141
139 // Draw the damage_rect. 142 // Draw the damage_rect.
140 void ScheduleRedrawRect(const gfx::Rect& damage_rect); 143 void ScheduleRedrawRect(const gfx::Rect& damage_rect);
141 144
142 // Returns a target window for the given gesture event. 145 // Returns a target window for the given gesture event.
143 Window* GetGestureTarget(ui::GestureEvent* event); 146 Window* GetGestureTarget(ui::GestureEvent* event);
144 147
145 // Handles a gesture event. Returns true if handled. Unlike the other 148 // Handles a gesture event. Returns true if handled. Unlike the other
146 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture 149 // event-dispatching function (e.g. for touch/mouse/keyboard events), gesture
147 // events are dispatched from GestureRecognizer instead of RootWindowHost. 150 // events are dispatched from GestureRecognizer instead of RootWindowHost.
148 bool DispatchGestureEvent(ui::GestureEvent* event); 151 bool DispatchGestureEvent(ui::GestureEvent* event);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 base::WeakPtrFactory<RootWindow> held_event_factory_; 412 base::WeakPtrFactory<RootWindow> held_event_factory_;
410 413
411 base::WeakPtrFactory<RootWindow> repostable_event_factory_; 414 base::WeakPtrFactory<RootWindow> repostable_event_factory_;
412 415
413 DISALLOW_COPY_AND_ASSIGN(RootWindow); 416 DISALLOW_COPY_AND_ASSIGN(RootWindow);
414 }; 417 };
415 418
416 } // namespace aura 419 } // namespace aura
417 420
418 #endif // UI_AURA_ROOT_WINDOW_H_ 421 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | ui/aura/root_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698