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

Side by Side Diff: third_party/WebKit/public/platform/WebInputEvent.h

Issue 2683043004: Remove ui/events/blink dependency on blink_minimal. (Closed)
Patch Set: fix win debug 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return isMouseEventType(other.m_type); 261 return isMouseEventType(other.m_type);
262 if (isGestureEventType(m_type)) 262 if (isGestureEventType(m_type))
263 return isGestureEventType(other.m_type); 263 return isGestureEventType(other.m_type);
264 if (isTouchEventType(m_type)) 264 if (isTouchEventType(m_type))
265 return isTouchEventType(other.m_type); 265 return isTouchEventType(other.m_type);
266 if (isKeyboardEventType(m_type)) 266 if (isKeyboardEventType(m_type))
267 return isKeyboardEventType(other.m_type); 267 return isKeyboardEventType(other.m_type);
268 return m_type == other.m_type; 268 return m_type == other.m_type;
269 } 269 }
270 270
271 BLINK_COMMON_EXPORT static const char* GetName(WebInputEvent::Type); 271 static const char* GetName(WebInputEvent::Type type) {
272 #define CASE_TYPE(t) \
273 case WebInputEvent::t: \
274 return #t
275 switch (type) {
276 CASE_TYPE(Undefined);
277 CASE_TYPE(MouseDown);
278 CASE_TYPE(MouseUp);
279 CASE_TYPE(MouseMove);
280 CASE_TYPE(MouseEnter);
281 CASE_TYPE(MouseLeave);
282 CASE_TYPE(ContextMenu);
283 CASE_TYPE(MouseWheel);
284 CASE_TYPE(RawKeyDown);
285 CASE_TYPE(KeyDown);
286 CASE_TYPE(KeyUp);
287 CASE_TYPE(Char);
288 CASE_TYPE(GestureScrollBegin);
289 CASE_TYPE(GestureScrollEnd);
290 CASE_TYPE(GestureScrollUpdate);
291 CASE_TYPE(GestureFlingStart);
292 CASE_TYPE(GestureFlingCancel);
293 CASE_TYPE(GestureShowPress);
294 CASE_TYPE(GestureTap);
295 CASE_TYPE(GestureTapUnconfirmed);
296 CASE_TYPE(GestureTapDown);
297 CASE_TYPE(GestureTapCancel);
298 CASE_TYPE(GestureDoubleTap);
299 CASE_TYPE(GestureTwoFingerTap);
300 CASE_TYPE(GestureLongPress);
301 CASE_TYPE(GestureLongTap);
302 CASE_TYPE(GesturePinchBegin);
303 CASE_TYPE(GesturePinchEnd);
304 CASE_TYPE(GesturePinchUpdate);
305 CASE_TYPE(TouchStart);
306 CASE_TYPE(TouchMove);
307 CASE_TYPE(TouchEnd);
308 CASE_TYPE(TouchCancel);
309 CASE_TYPE(TouchScrollStarted);
310 default:
311 NOTREACHED();
312 return "";
313 }
314 #undef CASE_TYPE
315 }
272 316
273 float frameScale() const { return m_frameScale; } 317 float frameScale() const { return m_frameScale; }
274 void setFrameScale(float scale) { m_frameScale = scale; } 318 void setFrameScale(float scale) { m_frameScale = scale; }
275 319
276 WebFloatPoint frameTranslate() const { return m_frameTranslate; } 320 WebFloatPoint frameTranslate() const { return m_frameTranslate; }
277 void setFrameTranslate(WebFloatPoint translate) { 321 void setFrameTranslate(WebFloatPoint translate) {
278 m_frameTranslate = translate; 322 m_frameTranslate = translate;
279 } 323 }
280 324
281 Type type() const { return m_type; } 325 Type type() const { return m_type; }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 unsigned m_size; // The size of this structure, for serialization. 381 unsigned m_size; // The size of this structure, for serialization.
338 Type m_type; 382 Type m_type;
339 int m_modifiers; 383 int m_modifiers;
340 }; 384 };
341 385
342 #pragma pack(pop) 386 #pragma pack(pop)
343 387
344 } // namespace blink 388 } // namespace blink
345 389
346 #endif 390 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698