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

Side by Side Diff: third_party/WebKit/Source/core/events/Event.h

Issue 2579693005: Remove legacy constants on Event (Closed)
Patch Set: update newly imported wpt/dom/historical.html Created 3 years, 12 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 48
49 public: 49 public:
50 enum PhaseType { 50 enum PhaseType {
51 kNone = 0, 51 kNone = 0,
52 kCapturingPhase = 1, 52 kCapturingPhase = 1,
53 kAtTarget = 2, 53 kAtTarget = 2,
54 kBubblingPhase = 3 54 kBubblingPhase = 3
55 }; 55 };
56 56
57 enum EventType {
58 kMousedown = 1,
59 kMouseup = 2,
60 kMouseover = 4,
61 kMouseout = 8,
62 kMousemove = 16,
63 kMousedrag = 32,
64 kClick = 64,
65 kDblclick = 128,
66 kKeydown = 256,
67 kKeyup = 512,
68 kKeypress = 1024,
69 kDragdrop = 2048,
70 kFocus = 4096,
71 kBlur = 8192,
72 kSelect = 16384,
73 kChange = 32768
74 };
75
76 enum RailsMode { 57 enum RailsMode {
77 RailsModeFree = 0, 58 RailsModeFree = 0,
78 RailsModeHorizontal = 1, 59 RailsModeHorizontal = 1,
79 RailsModeVertical = 2 60 RailsModeVertical = 2
80 }; 61 };
81 62
82 enum class ComposedMode { 63 enum class ComposedMode {
83 Composed, 64 Composed,
84 Scoped, 65 Scoped,
85 }; 66 };
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 TimeTicks m_platformTimeStamp; 307 TimeTicks m_platformTimeStamp;
327 }; 308 };
328 309
329 #define DEFINE_EVENT_TYPE_CASTS(typeName) \ 310 #define DEFINE_EVENT_TYPE_CASTS(typeName) \
330 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \ 311 DEFINE_TYPE_CASTS(typeName, Event, event, event->is##typeName(), \
331 event.is##typeName()) 312 event.is##typeName())
332 313
333 } // namespace blink 314 } // namespace blink
334 315
335 #endif // Event_h 316 #endif // Event_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698