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

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

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: exclude clipping region part Created 6 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 23 matching lines...) Expand all
34 #include "core/dom/ContextLifecycleObserver.h" 34 #include "core/dom/ContextLifecycleObserver.h"
35 #include "core/page/scrolling/ScrollingCoordinator.h" 35 #include "core/page/scrolling/ScrollingCoordinator.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/ArrayBuffer.h" 37 #include "wtf/ArrayBuffer.h"
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 class CanvasRenderingContext2D;
44 class ClientRect; 45 class ClientRect;
45 class ClientRectList; 46 class ClientRectList;
46 class DOMPoint; 47 class DOMPoint;
47 class DOMStringList; 48 class DOMStringList;
48 class LocalDOMWindow; 49 class LocalDOMWindow;
49 class Document; 50 class Document;
50 class DocumentMarker; 51 class DocumentMarker;
51 class Element; 52 class Element;
52 class ExceptionState; 53 class ExceptionState;
53 class ExecutionContext; 54 class ExecutionContext;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 315 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
315 316
316 void setFocused(bool); 317 void setFocused(bool);
317 318
318 bool ignoreLayoutWithPendingStylesheets(Document*, ExceptionState&); 319 bool ignoreLayoutWithPendingStylesheets(Document*, ExceptionState&);
319 320
320 void setNetworkStateNotifierTestOnly(bool); 321 void setNetworkStateNotifierTestOnly(bool);
321 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 322 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
322 void setNetworkConnectionInfo(const String&, ExceptionState&); 323 void setNetworkConnectionInfo(const String&, ExceptionState&);
323 324
325 unsigned countHitRegions(CanvasRenderingContext2D*);
326
324 private: 327 private:
325 explicit Internals(Document*); 328 explicit Internals(Document*);
326 Document* contextDocument() const; 329 Document* contextDocument() const;
327 LocalFrame* frame() const; 330 LocalFrame* frame() const;
328 Vector<String> iconURLs(Document*, int iconTypesMask) const; 331 Vector<String> iconURLs(Document*, int iconTypesMask) const;
329 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 332 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
330 333
331 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 334 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
332 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 335 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
333 RefPtrWillBeMember<InternalProfilers> m_profilers; 336 RefPtrWillBeMember<InternalProfilers> m_profilers;
334 }; 337 };
335 338
336 } // namespace WebCore 339 } // namespace WebCore
337 340
338 #endif 341 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698