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

Side by Side Diff: Source/core/testing/Internals.h

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class LocalDOMWindow; 63 class LocalDOMWindow;
64 class LocalFrame; 64 class LocalFrame;
65 class Node; 65 class Node;
66 class Page; 66 class Page;
67 class PluginPlaceholderOptions; 67 class PluginPlaceholderOptions;
68 class PrivateScriptTest; 68 class PrivateScriptTest;
69 class Range; 69 class Range;
70 class SerializedScriptValue; 70 class SerializedScriptValue;
71 class ShadowRoot; 71 class ShadowRoot;
72 class TypeConversions; 72 class TypeConversions;
73 class UIEvent;
73 class UnionTypesTest; 74 class UnionTypesTest;
74 template <typename NodeType> class StaticNodeTypeList; 75 template <typename NodeType> class StaticNodeTypeList;
75 typedef StaticNodeTypeList<Node> StaticNodeList; 76 typedef StaticNodeTypeList<Node> StaticNodeList;
76 77
77 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> { 78 class Internals final : public GarbageCollectedFinalized<Internals>, public Scri ptWrappable, public ContextLifecycleObserver, public ValueIterable<int> {
78 DEFINE_WRAPPERTYPEINFO(); 79 DEFINE_WRAPPERTYPEINFO();
79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Internals); 80 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Internals);
80 public: 81 public:
81 static Internals* create(Document*); 82 static Internals* create(Document*);
82 virtual ~Internals(); 83 virtual ~Internals();
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 348
348 // Return true if the given use counter exists for the given document. 349 // Return true if the given use counter exists for the given document.
349 // |useCounterId| must be one of the values from the UseCounter::Feature enu m. 350 // |useCounterId| must be one of the values from the UseCounter::Feature enu m.
350 bool isUseCounted(Document*, int useCounterId); 351 bool isUseCounted(Document*, int useCounterId);
351 352
352 String unscopeableAttribute(); 353 String unscopeableAttribute();
353 String unscopeableMethod(); 354 String unscopeableMethod();
354 355
355 ClientRectList* focusRingRects(Element*); 356 ClientRectList* focusRingRects(Element*);
356 357
358 void setFiresTouchEvents(UIEvent*, bool);
tdresser 2015/06/02 14:43:55 bool firesTouchEvents
359
357 private: 360 private:
358 explicit Internals(Document*); 361 explicit Internals(Document*);
359 Document* contextDocument() const; 362 Document* contextDocument() const;
360 LocalFrame* frame() const; 363 LocalFrame* frame() const;
361 Vector<String> iconURLs(Document*, int iconTypesMask) const; 364 Vector<String> iconURLs(Document*, int iconTypesMask) const;
362 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ; 365 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&) ;
363 366
364 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 367 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
365 Member<InternalRuntimeFlags> m_runtimeFlags; 368 Member<InternalRuntimeFlags> m_runtimeFlags;
366 369
367 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 370 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
368 }; 371 };
369 372
370 } // namespace blink 373 } // namespace blink
371 374
372 #endif // Internals_h 375 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698