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

Side by Side Diff: third_party/WebKit/Source/platform/PlatformEvent.h

Issue 2650403006: Remove PlatformMouseEvent and use WebMouseEvent instead (Closed)
Patch Set: Fix nits Created 3 years, 10 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 #include "wtf/Allocator.h" 29 #include "wtf/Allocator.h"
30 #include "wtf/Noncopyable.h" 30 #include "wtf/Noncopyable.h"
31 #include "wtf/Time.h" 31 #include "wtf/Time.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class PlatformEvent { 35 class PlatformEvent {
36 public: 36 public:
37 enum EventType { 37 enum EventType {
38 NoType = 0, 38 NoType = 0,
39
40 // PlatformMouseEvent
41 MouseMoved,
42 MousePressed,
43 MouseReleased,
44 MouseScroll,
45 }; 39 };
46 40
47 // These values are direct mappings of the values in WebInputEvent so the 41 // These values are direct mappings of the values in WebInputEvent so the
48 // values can be cast between the enumerations. static_asserts checking this 42 // values can be cast between the enumerations. static_asserts checking this
49 // are in web/WebInputEventConversion.cpp. 43 // are in web/WebInputEventConversion.cpp.
50 enum Modifiers { 44 enum Modifiers {
51 NoModifiers = 0, 45 NoModifiers = 0,
52 ShiftKey = 1 << 0, 46 ShiftKey = 1 << 0,
53 CtrlKey = 1 << 1, 47 CtrlKey = 1 << 1,
54 AltKey = 1 << 2, 48 AltKey = 1 << 2,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 ~PlatformEvent() {} 103 ~PlatformEvent() {}
110 104
111 unsigned m_type; 105 unsigned m_type;
112 unsigned m_modifiers; 106 unsigned m_modifiers;
113 TimeTicks m_timestamp; 107 TimeTicks m_timestamp;
114 }; 108 };
115 109
116 } // namespace blink 110 } // namespace blink
117 111
118 #endif // PlatformEvent_h 112 #endif // PlatformEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/PlatformMouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698