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

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

Issue 1311233004: Cleanup IsKeyPad and IsAutoRepeat in PlatformKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/platform/PlatformKeyboardEvent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 TouchEnd, 71 TouchEnd,
72 TouchCancel, 72 TouchCancel,
73 }; 73 };
74 74
75 enum Modifiers { 75 enum Modifiers {
76 AltKey = 1 << 0, 76 AltKey = 1 << 0,
77 CtrlKey = 1 << 1, 77 CtrlKey = 1 << 1,
78 MetaKey = 1 << 2, 78 MetaKey = 1 << 2,
79 ShiftKey = 1 << 3, 79 ShiftKey = 1 << 3,
80 80
81 IsKeyPad = 1 << 4,
82 IsAutoRepeat = 1 << 5,
83
81 LeftButtonDown = 1 << 6, 84 LeftButtonDown = 1 << 6,
82 MiddleButtonDown = 1 << 7, 85 MiddleButtonDown = 1 << 7,
83 RightButtonDown = 1 << 8, 86 RightButtonDown = 1 << 8,
84 }; 87 };
85 88
86 enum RailsMode { 89 enum RailsMode {
87 RailsModeFree = 0, 90 RailsModeFree = 0,
88 RailsModeHorizontal = 1, 91 RailsModeHorizontal = 1,
89 RailsModeVertical = 2, 92 RailsModeVertical = 2,
90 }; 93 };
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 } 147 }
145 148
146 unsigned m_type; 149 unsigned m_type;
147 unsigned m_modifiers; 150 unsigned m_modifiers;
148 double m_timestamp; 151 double m_timestamp;
149 }; 152 };
150 153
151 } // namespace blink 154 } // namespace blink
152 155
153 #endif // PlatformEvent_h 156 #endif // PlatformEvent_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/PlatformKeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698