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

Side by Side Diff: Source/bindings/v8/custom/V8DocumentCustom.cpp

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007-2009 Google Inc. All rights reserved. 2 * Copyright (C) 2007-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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 v8::Handle<v8::Object> wrapper = V8Document::createWrapper(impl, creationCon text, isolate); 99 v8::Handle<v8::Object> wrapper = V8Document::createWrapper(impl, creationCon text, isolate);
100 if (wrapper.IsEmpty()) 100 if (wrapper.IsEmpty())
101 return wrapper; 101 return wrapper;
102 if (!isolatedWorldForEnteredContext()) { 102 if (!isolatedWorldForEnteredContext()) {
103 if (Frame* frame = impl->frame()) 103 if (Frame* frame = impl->frame())
104 frame->script()->windowShell(mainThreadNormalWorld())->updateDocumen tWrapper(wrapper); 104 frame->script()->windowShell(mainThreadNormalWorld())->updateDocumen tWrapper(wrapper);
105 } 105 }
106 return wrapper; 106 return wrapper;
107 } 107 }
108 108
109 #if ENABLE(TOUCH_EVENTS)
110 v8::Handle<v8::Value> V8Document::createTouchListMethodCustom(const v8::Argument s& args) 109 v8::Handle<v8::Value> V8Document::createTouchListMethodCustom(const v8::Argument s& args)
111 { 110 {
112 RefPtr<TouchList> touchList = TouchList::create(); 111 RefPtr<TouchList> touchList = TouchList::create();
113 112
114 for (int i = 0; i < args.Length(); i++) { 113 for (int i = 0; i < args.Length(); i++) {
115 Touch* touch = V8DOMWrapper::isWrapperOfType(args[i], &V8Touch::info) ? V8Touch::toNative(args[i]->ToObject()) : 0; 114 Touch* touch = V8DOMWrapper::isWrapperOfType(args[i], &V8Touch::info) ? V8Touch::toNative(args[i]->ToObject()) : 0;
116 touchList->append(touch); 115 touchList->append(touch);
117 } 116 }
118 117
119 return toV8(touchList.release(), args.Holder(), args.GetIsolate()); 118 return toV8(touchList.release(), args.Holder(), args.GetIsolate());
120 } 119 }
121 #endif
122 120
123 } // namespace WebCore 121 } // namespace WebCore
OLDNEW
« Source/WebCore/dom/TouchEvent.idl ('K') | « Source/bindings/v8/RuntimeEnabledFeatures.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698