summaryrefslogtreecommitdiffstats
path: root/ui/base/event.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/base/event.h')
-rw-r--r--ui/base/event.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/base/event.h b/ui/base/event.h
index 1e20fa1..86d5488 100644
--- a/ui/base/event.h
+++ b/ui/base/event.h
@@ -132,12 +132,11 @@ class UI_EXPORT LocatedEvent : public Event {
const gfx::Point& root_location,
int flags);
+ LocatedEvent(const LocatedEvent& model);
+
gfx::Point location_;
gfx::Point root_location_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(LocatedEvent);
};
class UI_EXPORT MouseEvent : public LocatedEvent {
@@ -183,14 +182,14 @@ class UI_EXPORT MouseEvent : public LocatedEvent {
void SetClickCount(int click_count);
private:
+ explicit MouseEvent(const MouseEvent& model);
+
gfx::Point root_location_;
static MouseEvent* last_click_event_;
// Returns the repeat count based on the previous mouse click, if it is
// recent enough and within a small enough distance.
static int GetRepeatCount(const MouseEvent& click_event);
-
- DISALLOW_COPY_AND_ASSIGN(MouseEvent);
};
// TODO(beng): rename to TouchEvent after conversion is complete.