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

Unified Diff: pointer_position_watcher.h

Issue 6902072: wm: Update a lot of code to use structs from geometry.h. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: move override-redirect stacking and visibility into Window Created 9 years, 8 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 | « panels/panel_test.cc ('k') | pointer_position_watcher.cc » ('j') | window.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pointer_position_watcher.h
diff --git a/pointer_position_watcher.h b/pointer_position_watcher.h
index d1fd7e72f5aef667bf41eab1d9b18cfb8f7c31a6..8b4959a8f0dad2e1d2ebb70a3eb0c9969d24dcdc 100644
--- a/pointer_position_watcher.h
+++ b/pointer_position_watcher.h
@@ -7,6 +7,7 @@
#include "base/scoped_ptr.h"
#include "window_manager/callback.h"
+#include "window_manager/geometry.h"
namespace window_manager {
@@ -36,7 +37,7 @@ class PointerPositionWatcher {
XConnection* xconn,
Closure* cb,
bool watch_for_entering_target, // as opposed to leaving it
- int target_x, int target_y, int target_width, int target_height);
+ const Rect& target_bounds);
~PointerPositionWatcher();
// Useful for testing.
@@ -66,10 +67,7 @@ class PointerPositionWatcher {
bool watch_for_entering_target_;
// Target rectangle.
- int target_x_;
- int target_y_;
- int target_width_;
- int target_height_;
+ Rect target_bounds_;
// Timeout ID, or -1 if the timeout isn't active.
int timeout_id_;
« no previous file with comments | « panels/panel_test.cc ('k') | pointer_position_watcher.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698