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

Unified Diff: aura/window.h

Issue 7739002: Revert 98850 - Proper MouseEvent targeting. Adds a Window method that locates a Window for a give... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « aura/test_suite.cc ('k') | aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: aura/window.h
===================================================================
--- aura/window.h (revision 98850)
+++ aura/window.h (working copy)
@@ -27,7 +27,6 @@
// Aura window implementation. Interesting events are sent to the
// WindowDelegate.
-// TODO(beng): resolve ownership.
class Window {
public:
enum Visibility {
@@ -81,26 +80,9 @@
void AddChild(Window* child);
void RemoveChild(Window* child);
- static void ConvertPointToWindow(Window* source,
- Window* target,
- gfx::Point* point);
-
// Handles a mouse event. Returns true if handled.
bool OnMouseEvent(const MouseEvent& event);
- WindowDelegate* delegate() { return delegate_; }
-
- // Returns true if the mouse pointer at the specified |point| can trigger an
- // event for this Window.
- // TODO(beng):
- // A Window can supply a hit-test mask to cause some portions of itself to not
- // trigger events, causing the events to fall through to the Window behind.
- bool HitTest(const gfx::Point& point);
-
- // Returns the Window that most closely encloses |point| for the purposes of
- // event targeting.
- Window* GetEventHandlerForPoint(const gfx::Point& point);
-
private:
typedef std::vector<Window*> Windows;
« no previous file with comments | « aura/test_suite.cc ('k') | aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698