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

Side by Side Diff: Source/core/dom/TouchEvent.cpp

Issue 24253004: Cleanup: Start using toFoo methods as part of newly adopted coding guideline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 | « Source/core/dom/Position.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('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 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 return adoptRef(new TouchEventDispatchMediator(touchEvent)); 95 return adoptRef(new TouchEventDispatchMediator(touchEvent));
96 } 96 }
97 97
98 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to uchEvent) 98 TouchEventDispatchMediator::TouchEventDispatchMediator(PassRefPtr<TouchEvent> to uchEvent)
99 : EventDispatchMediator(touchEvent) 99 : EventDispatchMediator(touchEvent)
100 { 100 {
101 } 101 }
102 102
103 TouchEvent* TouchEventDispatchMediator::event() const 103 TouchEvent* TouchEventDispatchMediator::event() const
104 { 104 {
105 return static_cast<TouchEvent*>(EventDispatchMediator::event()); 105 return toTouchEvent(EventDispatchMediator::event());
106 } 106 }
107 107
108 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons t 108 bool TouchEventDispatchMediator::dispatchEvent(EventDispatcher* dispatcher) cons t
109 { 109 {
110 EventRetargeter::adjustForTouchEvent(dispatcher->node(), *event()); 110 EventRetargeter::adjustForTouchEvent(dispatcher->node(), *event());
111 return dispatcher->dispatch(); 111 return dispatcher->dispatch();
112 } 112 }
113 113
114 } // namespace WebCore 114 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Position.cpp ('k') | Source/core/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698