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

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

Issue 2475293003: [RemotePlayback] No monitoring on low-end devices (Closed)
Patch Set: Moved to Platform::initialize() Created 4 years 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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not 523 // ScrollAnimatorCompositorCoordinater::RunState), or -1 if the node does not
524 // have a scrollable area. 524 // have a scrollable area.
525 String getProgrammaticScrollAnimationState(Node*) const; 525 String getProgrammaticScrollAnimationState(Node*) const;
526 526
527 // Returns the visual rect of a node's LayoutObject. 527 // Returns the visual rect of a node's LayoutObject.
528 ClientRect* visualRect(Node*); 528 ClientRect* visualRect(Node*);
529 529
530 // Intentional crash. 530 // Intentional crash.
531 void crash(); 531 void crash();
532 532
533 // Overrides if the device is low-end (low on memory).
534 void setIsLowEndDevice(bool);
535
533 private: 536 private:
534 explicit Internals(ExecutionContext*); 537 explicit Internals(ExecutionContext*);
535 Document* contextDocument() const; 538 Document* contextDocument() const;
536 LocalFrame* frame() const; 539 LocalFrame* frame() const;
537 Vector<String> iconURLs(Document*, int iconTypesMask) const; 540 Vector<String> iconURLs(Document*, int iconTypesMask) const;
538 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&); 541 ClientRectList* annotatedRegions(Document*, bool draggable, ExceptionState&);
539 542
540 DocumentMarker* markerAt(Node*, 543 DocumentMarker* markerAt(Node*,
541 const String& markerType, 544 const String& markerType,
542 unsigned index, 545 unsigned index,
543 ExceptionState&); 546 ExceptionState&);
544 Member<InternalRuntimeFlags> m_runtimeFlags; 547 Member<InternalRuntimeFlags> m_runtimeFlags;
545 548
546 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 549 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
547 }; 550 };
548 551
549 } // namespace blink 552 } // namespace blink
550 553
551 #endif // Internals_h 554 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698