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

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: lowercase 'f' 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 24 matching lines...) Expand all
35 #include "core/dom/NodeList.h" 35 #include "core/dom/NodeList.h"
36 #include "core/page/scrolling/ScrollingCoordinator.h" 36 #include "core/page/scrolling/ScrollingCoordinator.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 #include "wtf/ArrayBuffer.h" 38 #include "wtf/ArrayBuffer.h"
39 #include "wtf/PassRefPtr.h" 39 #include "wtf/PassRefPtr.h"
40 #include "wtf/RefCounted.h" 40 #include "wtf/RefCounted.h"
41 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 class CanvasRenderingContext2D;
45 class ClientRect; 46 class ClientRect;
46 class ClientRectList; 47 class ClientRectList;
47 class DOMPoint; 48 class DOMPoint;
48 class DOMStringList; 49 class DOMStringList;
49 class DOMWindow; 50 class DOMWindow;
50 class Document; 51 class Document;
51 class DocumentMarker; 52 class DocumentMarker;
52 class Element; 53 class Element;
53 class ExceptionState; 54 class ExceptionState;
54 class ExecutionContext; 55 class ExecutionContext;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 void setValueForUser(Element*, const String&); 317 void setValueForUser(Element*, const String&);
317 318
318 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 319 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
319 320
320 void setFocused(bool); 321 void setFocused(bool);
321 322
322 void setNetworkStateNotifierTestOnly(bool); 323 void setNetworkStateNotifierTestOnly(bool);
323 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 324 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
324 void setNetworkConnectionInfo(const String&, ExceptionState&); 325 void setNetworkConnectionInfo(const String&, ExceptionState&);
325 326
327 unsigned countHitRegions(CanvasRenderingContext2D*);
328
326 private: 329 private:
327 explicit Internals(Document*); 330 explicit Internals(Document*);
328 Document* contextDocument() const; 331 Document* contextDocument() const;
329 LocalFrame* frame() const; 332 LocalFrame* frame() const;
330 Vector<String> iconURLs(Document*, int iconTypesMask) const; 333 Vector<String> iconURLs(Document*, int iconTypesMask) const;
331 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 334 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
332 335
333 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 336 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
334 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags; 337 RefPtrWillBeMember<InternalRuntimeFlags> m_runtimeFlags;
335 RefPtrWillBeMember<InternalProfilers> m_profilers; 338 RefPtrWillBeMember<InternalProfilers> m_profilers;
336 }; 339 };
337 340
338 } // namespace WebCore 341 } // namespace WebCore
339 342
340 #endif 343 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698