diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 17:29:58 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 17:29:58 +0000 |
commit | e0f17f93cccfac2cf1be254628bbee70d27e2773 (patch) | |
tree | 8139e4f14146b0e2a150e2a20667e194f83ba957 /ui/views/events | |
parent | a1127f8b9d0102ca41437b7927f36e89268a80c2 (diff) | |
download | chromium_src-e0f17f93cccfac2cf1be254628bbee70d27e2773.zip chromium_src-e0f17f93cccfac2cf1be254628bbee70d27e2773.tar.gz chromium_src-e0f17f93cccfac2cf1be254628bbee70d27e2773.tar.bz2 |
Remove EventType, EventFlags, MouseEventFlags enum re-definitions.
Remove unnecessary includes from ui/base/models/accelerator.h.
BUG=93945
TEST=none
Review URL: http://codereview.chromium.org/7848011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/events')
-rw-r--r-- | ui/views/events/accelerator.h | 4 | ||||
-rw-r--r-- | ui/views/events/event.h | 35 |
2 files changed, 1 insertions, 38 deletions
diff --git a/ui/views/events/accelerator.h b/ui/views/events/accelerator.h index c75d73d..965c447 100644 --- a/ui/views/events/accelerator.h +++ b/ui/views/events/accelerator.h @@ -6,11 +6,7 @@ #define UI_VIEWS_EVENTS_ACCELERATOR_H_ #pragma once -#include <string> - -#include "base/string16.h" #include "ui/base/models/accelerator.h" -#include "ui/views/events/event.h" namespace ui { diff --git a/ui/views/events/event.h b/ui/views/events/event.h index 65d31f6..0eafa83 100644 --- a/ui/views/events/event.h +++ b/ui/views/events/event.h @@ -7,6 +7,7 @@ #pragma once #include "base/basictypes.h" +#include "ui/base/events.h" #include "ui/base/keycodes/keyboard_codes.h" #include "ui/gfx/point.h" #include "ui/views/native_types.h" @@ -19,34 +20,6 @@ class View; class Event { public: - // Event types. - enum EventType { ET_UNKNOWN = 0, - ET_MOUSE_PRESSED, - ET_MOUSE_DRAGGED, - ET_MOUSE_RELEASED, - ET_MOUSE_MOVED, - ET_MOUSE_ENTERED, - ET_MOUSE_EXITED, - ET_KEY_PRESSED, - ET_KEY_RELEASED, - ET_MOUSEWHEEL, - ET_DROP_TARGET_EVENT, - ET_FOCUS_CHANGE }; - - // Event flags currently supported. Although this is a "views" - // file, this header is used on non-views platforms (e.g. OSX). For - // example, these EventFlags are used by the automation provider for - // all platforms. - enum EventFlags { EF_CAPS_LOCK_DOWN = 1 << 0, - EF_SHIFT_DOWN = 1 << 1, - EF_CONTROL_DOWN = 1 << 2, - EF_ALT_DOWN = 1 << 3, - EF_LEFT_BUTTON_DOWN = 1 << 4, - EF_MIDDLE_BUTTON_DOWN = 1 << 5, - EF_RIGHT_BUTTON_DOWN = 1 << 6, - EF_COMMAND_DOWN = 1 << 7, // Only useful on OSX - }; - EventType type() const { return type_; } int flags() const { return flags_; } void set_flags(int flags) { flags_ = flags; } @@ -109,12 +82,6 @@ class LocatedEvent : public Event { class MouseEvent : public LocatedEvent { public: - // Flags specific to mouse events - enum MouseEventFlags { - EF_IS_DOUBLE_CLICK = 1 << 16, - EF_IS_NON_CLIENT = 1 << 17 - }; - explicit MouseEvent(NativeEvent native_event); MouseEvent(const MouseEvent& other, View* source, View* target); |