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

Unified Diff: ui/base/event.cc

Issue 10828133: Desktop Aura: Allow tab drags out of window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 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 | « ui/base/event.h ('k') | ui/base/events.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/event.cc
diff --git a/ui/base/event.cc b/ui/base/event.cc
index f8ab8b6c59b009dd93e54d453fbcd28e6a28a748..0294ddd51a8eccac083e73866e9cf2eaff7c281d 100644
--- a/ui/base/event.cc
+++ b/ui/base/event.cc
@@ -100,7 +100,9 @@ LocatedEvent::LocatedEvent(const base::NativeEvent& native_event)
EventTypeFromNative(native_event),
EventFlagsFromNative(native_event)),
location_(EventLocationFromNative(native_event)),
- root_location_(location_) {
+ root_location_(location_),
+ valid_system_location_(true),
+ system_location_(ui::EventSystemLocationFromNative(native_event)) {
}
LocatedEvent::LocatedEvent(EventType type,
@@ -109,13 +111,17 @@ LocatedEvent::LocatedEvent(EventType type,
int flags)
: Event(type, flags),
location_(location),
- root_location_(root_location) {
+ root_location_(root_location),
+ valid_system_location_(false),
+ system_location_(0, 0) {
}
LocatedEvent::LocatedEvent(const LocatedEvent& model)
: Event(model),
location_(model.location_),
- root_location_(model.root_location_) {
+ root_location_(model.root_location_),
+ valid_system_location_(model.valid_system_location_),
+ system_location_(model.system_location_) {
}
void LocatedEvent::UpdateForRootTransform(const Transform& root_transform) {
« no previous file with comments | « ui/base/event.h ('k') | ui/base/events.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698