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

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

Issue 2394653003: reflow comments in core/events,core/fileapi (Closed)
Patch Set: Created 4 years, 2 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 2008, The Android Open Source Project 2 * Copyright 2008, The Android Open Source Project
3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved. 3 * Copyright (C) 2012 Research In Motion Limited. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 copyright 10 * * Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "core/events/TouchEventInit.h" 34 #include "core/events/TouchEventInit.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class CORE_EXPORT TouchEvent final : public UIEventWithKeyState { 38 class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 40
41 public: 41 public:
42 ~TouchEvent() override; 42 ~TouchEvent() override;
43 43
44 // We only initialize sourceCapabilities when we create TouchEvent from EventH andler, null if it is from JavaScript. 44 // We only initialize sourceCapabilities when we create TouchEvent from
45 // EventHandler, null if it is from JavaScript.
45 static TouchEvent* create() { return new TouchEvent; } 46 static TouchEvent* create() { return new TouchEvent; }
46 static TouchEvent* create(TouchList* touches, 47 static TouchEvent* create(TouchList* touches,
47 TouchList* targetTouches, 48 TouchList* targetTouches,
48 TouchList* changedTouches, 49 TouchList* changedTouches,
49 const AtomicString& type, 50 const AtomicString& type,
50 AbstractView* view, 51 AbstractView* view,
51 PlatformEvent::Modifiers modifiers, 52 PlatformEvent::Modifiers modifiers,
52 bool cancelable, 53 bool cancelable,
53 bool causesScrollingIfUncanceled, 54 bool causesScrollingIfUncanceled,
54 bool firstTouchMoveOrStart, 55 bool firstTouchMoveOrStart,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 explicit TouchEventDispatchMediator(TouchEvent*); 122 explicit TouchEventDispatchMediator(TouchEvent*);
122 TouchEvent& event() const; 123 TouchEvent& event() const;
123 DispatchEventResult dispatchEvent(EventDispatcher&) const override; 124 DispatchEventResult dispatchEvent(EventDispatcher&) const override;
124 }; 125 };
125 126
126 DEFINE_EVENT_TYPE_CASTS(TouchEvent); 127 DEFINE_EVENT_TYPE_CASTS(TouchEvent);
127 128
128 } // namespace blink 129 } // namespace blink
129 130
130 #endif // TouchEvent_h 131 #endif // TouchEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/TextEventInputType.h ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698