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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: rebase Created 4 years, 2 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 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // Normal LayoutTests should use gc() instead as it would trigger both B link GC and V8 GC. 477 // Normal LayoutTests should use gc() instead as it would trigger both B link GC and V8 GC.
478 void forceBlinkGCWithoutV8GC(); 478 void forceBlinkGCWithoutV8GC();
479 479
480 String selectedHTMLForClipboard(); 480 String selectedHTMLForClipboard();
481 String selectedTextForClipboard(); 481 String selectedTextForClipboard();
482 482
483 void setVisualViewportOffset(int x, int y); 483 void setVisualViewportOffset(int x, int y);
484 int visualViewportHeight(); 484 int visualViewportHeight();
485 int visualViewportWidth(); 485 int visualViewportWidth();
486 // The scroll position of the visual viewport relative to the document origin. 486 // The scroll position of the visual viewport relative to the document origin.
487 double visualViewportScrollX(); 487 float visualViewportScrollX();
488 double visualViewportScrollY(); 488 float visualViewportScrollY();
489 489
490 // Return true if the given use counter exists for the given document. 490 // Return true if the given use counter exists for the given document.
491 // |useCounterId| must be one of the values from the UseCounter::Feature enum. 491 // |useCounterId| must be one of the values from the UseCounter::Feature enum.
492 bool isUseCounted(Document*, int useCounterId); 492 bool isUseCounted(Document*, int useCounterId);
493 bool isCSSPropertyUseCounted(Document*, const String&); 493 bool isCSSPropertyUseCounted(Document*, const String&);
494 494
495 String unscopableAttribute(); 495 String unscopableAttribute();
496 String unscopableMethod(); 496 String unscopableMethod();
497 497
498 ClientRectList* focusRingRects(Element*); 498 ClientRectList* focusRingRects(Element*);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 unsigned index, 537 unsigned index,
538 ExceptionState&); 538 ExceptionState&);
539 Member<InternalRuntimeFlags> m_runtimeFlags; 539 Member<InternalRuntimeFlags> m_runtimeFlags;
540 540
541 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 541 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
542 }; 542 };
543 543
544 } // namespace blink 544 } // namespace blink
545 545
546 #endif // Internals_h 546 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698