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

Unified Diff: ui/views/events/event.h

Issue 7942004: Consolidate/cleanup event cracking code; single out GdkEvents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge removal of compact nav. 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/ui_views.gypi ('k') | ui/views/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/events/event.h
diff --git a/ui/views/events/event.h b/ui/views/events/event.h
index 0eafa837d3ce513c3e8c4a402ee8cb27c5027a38..002608cbc536175bee08ace41f245eda067eb3f6 100644
--- a/ui/views/events/event.h
+++ b/ui/views/events/event.h
@@ -10,7 +10,6 @@
#include "ui/base/events.h"
#include "ui/base/keycodes/keyboard_codes.h"
#include "ui/gfx/point.h"
-#include "ui/views/native_types.h"
class OSExchangeData;
@@ -82,7 +81,7 @@ class LocatedEvent : public Event {
class MouseEvent : public LocatedEvent {
public:
- explicit MouseEvent(NativeEvent native_event);
+ explicit MouseEvent(const ui::NativeEvent& native_event);
MouseEvent(const MouseEvent& other, View* source, View* target);
@@ -115,23 +114,19 @@ class MouseEvent : public LocatedEvent {
class KeyEvent : public Event {
public:
- explicit KeyEvent(NativeEvent native_event);
+ explicit KeyEvent(const ui::NativeEvent& native_event);
KeyboardCode key_code() const { return key_code_; }
- int repeat_count() const { return repeat_count_; }
-
private:
KeyboardCode key_code_;
- int repeat_count_;
- int message_flags_;
DISALLOW_COPY_AND_ASSIGN(KeyEvent);
};
class MouseWheelEvent : public LocatedEvent {
public:
- explicit MouseWheelEvent(NativeEvent native_event);
+ explicit MouseWheelEvent(const ui::NativeEvent& native_event);
int offset() const { return offset_; }
@@ -144,7 +139,7 @@ class MouseWheelEvent : public LocatedEvent {
/*
class DropTargetEvent : public LocatedEvent {
public:
- explicit DropTargetEvent(NativeEvent native_event);
+ explicit DropTargetEvent(const ui::NativeEvent& native_event);
const OSExchangeData& data() const { return data_; }
int source_operations() const { return source_operations_; }
« no previous file with comments | « ui/ui_views.gypi ('k') | ui/views/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698