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

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

Issue 10543174: Aura: Add Window::MoveCursorTo() taking relative location to the window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test. Created 8 years, 6 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
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_H_ 5 #ifndef UI_AURA_WINDOW_H_
6 #define UI_AURA_WINDOW_H_ 6 #define UI_AURA_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 Window* GetChildById(int id); 206 Window* GetChildById(int id);
207 const Window* GetChildById(int id) const; 207 const Window* GetChildById(int id) const;
208 208
209 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is 209 // Converts |point| from |source|'s coordinates to |target|'s. If |source| is
210 // NULL, the function returns without modifying |point|. |target| cannot be 210 // NULL, the function returns without modifying |point|. |target| cannot be
211 // NULL. 211 // NULL.
212 static void ConvertPointToWindow(const Window* source, 212 static void ConvertPointToWindow(const Window* source,
213 const Window* target, 213 const Window* target,
214 gfx::Point* point); 214 gfx::Point* point);
215 215
216 // Moves the cursor to the specified location relative to the window.
217 virtual void MoveCursorTo(const gfx::Point& point_in_window);
218
216 // Returns the cursor for the specified point, in window coordinates. 219 // Returns the cursor for the specified point, in window coordinates.
217 gfx::NativeCursor GetCursor(const gfx::Point& point) const; 220 gfx::NativeCursor GetCursor(const gfx::Point& point) const;
218 221
219 // Window takes ownership of the EventFilter. 222 // Window takes ownership of the EventFilter.
220 void SetEventFilter(EventFilter* event_filter); 223 void SetEventFilter(EventFilter* event_filter);
221 EventFilter* event_filter() { return event_filter_.get(); } 224 EventFilter* event_filter() { return event_filter_.get(); }
222 225
223 // Add/remove observer. 226 // Add/remove observer.
224 void AddObserver(WindowObserver* observer); 227 void AddObserver(WindowObserver* observer);
225 void RemoveObserver(WindowObserver* observer); 228 void RemoveObserver(WindowObserver* observer);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 }; 473 };
471 474
472 std::map<const void*, Value> prop_map_; 475 std::map<const void*, Value> prop_map_;
473 476
474 DISALLOW_COPY_AND_ASSIGN(Window); 477 DISALLOW_COPY_AND_ASSIGN(Window);
475 }; 478 };
476 479
477 } // namespace aura 480 } // namespace aura
478 481
479 #endif // UI_AURA_WINDOW_H_ 482 #endif // UI_AURA_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | ui/aura/window_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698