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

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

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: Rebase Created 5 years 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<To uchEvent> touchEvent) 132 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtrWillBeRawPtr<To uchEvent> touchEvent)
133 : EventDispatchMediator(touchEvent) 133 : EventDispatchMediator(touchEvent)
134 { 134 {
135 } 135 }
136 136
137 TouchEvent& TouchEventDispatchMediator::event() const 137 TouchEvent& TouchEventDispatchMediator::event() const
138 { 138 {
139 return toTouchEvent(EventDispatchMediator::event()); 139 return toTouchEvent(EventDispatchMediator::event());
140 } 140 }
141 141
142 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher& dispatcher) cons t 142 WebInputEventResult TouchEventDispatchMediator::dispatchEvent(EventDispatcher& d ispatcher) const
143 { 143 {
144 event().eventPath().adjustForTouchEvent(event()); 144 event().eventPath().adjustForTouchEvent(event());
145 return dispatcher.dispatch(); 145 return dispatcher.dispatch();
146 } 146 }
147 147
148 } // namespace blink 148 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698