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

Unified Diff: ui/aura/window.h

Issue 7976020: Wires up mouse capture code for aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix aura build Created 9 years, 3 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 | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 15573f412bdcbace9d99980d51b9d8e860c49486..17971d78ea8b3e20e0998f7c6ab9e2deab79b515 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -25,14 +25,15 @@ class Layer;
namespace aura {
class Desktop;
+class EventFilter;
class KeyEvent;
class LayoutManager;
class MouseEvent;
class WindowDelegate;
-class EventFilter;
namespace internal {
class FocusManager;
+class RootWindow;
}
// Aura window implementation. Interesting events are sent to the
@@ -140,10 +141,21 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void set_user_data(void* user_data) { user_data_ = user_data; }
void* user_data() const { return user_data_; }
- private:
- // If SchedulePaint has been invoked on the Window the delegate is notified.
- void UpdateLayerCanvas();
+ // Does a mouse capture on the window. This does nothing if the window isn't
+ // showing (VISIBILITY_SHOWN) or isn't contained in a valid window hierarchy.
+ void SetCapture();
+
+ // Releases a mouse capture.
+ void ReleaseCapture();
+ // Returns true if this window has a mouse capture.
+ bool HasCapture();
+
+ protected:
+ // Returns the RootWindow or NULL if we don't yet have a RootWindow.
+ virtual internal::RootWindow* GetRoot();
+
+ private:
// Schedules a paint for the Window's entire bounds.
void SchedulePaint();
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698