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

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

Issue 1558503003: Internals: throw an exception when page height or width is 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 unsigned numberOfLiveNodes() const; 242 unsigned numberOfLiveNodes() const;
243 unsigned numberOfLiveDocuments() const; 243 unsigned numberOfLiveDocuments() const;
244 String dumpRefCountedInstanceCounts() const; 244 String dumpRefCountedInstanceCounts() const;
245 Vector<String> consoleMessageArgumentCounts(Document*) const; 245 Vector<String> consoleMessageArgumentCounts(Document*) const;
246 PassRefPtrWillBeRawPtr<LocalDOMWindow> openDummyInspectorFrontend(const Stri ng& url); 246 PassRefPtrWillBeRawPtr<LocalDOMWindow> openDummyInspectorFrontend(const Stri ng& url);
247 void closeDummyInspectorFrontend(); 247 void closeDummyInspectorFrontend();
248 Vector<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, u nsigned long maxDeadBytes, unsigned long totalBytes); 248 Vector<unsigned long> setMemoryCacheCapacities(unsigned long minDeadBytes, u nsigned long maxDeadBytes, unsigned long totalBytes);
249 249
250 String counterValue(Element*); 250 String counterValue(Element*);
251 251
252 int pageNumber(Element*, float pageWidth = 800, float pageHeight = 600); 252 int pageNumber(Element*, float pageWidth, float pageHeight, ExceptionState&) ;
253 Vector<String> shortcutIconURLs(Document*) const; 253 Vector<String> shortcutIconURLs(Document*) const;
254 Vector<String> allIconURLs(Document*) const; 254 Vector<String> allIconURLs(Document*) const;
255 255
256 int numberOfPages(float pageWidthInPixels = 800, float pageHeightInPixels = 600); 256 int numberOfPages(float pageWidthInPixels, float pageHeightInPixels, Excepti onState&);
257 String pageProperty(String, int, ExceptionState& = ASSERT_NO_EXCEPTION) cons t; 257 String pageProperty(String, int, ExceptionState& = ASSERT_NO_EXCEPTION) cons t;
258 String pageSizeAndMarginsInPixels(int, int, int, int, int, int, int, Excepti onState& = ASSERT_NO_EXCEPTION) const; 258 String pageSizeAndMarginsInPixels(int, int, int, int, int, int, int, Excepti onState& = ASSERT_NO_EXCEPTION) const;
259 259
260 void setDeviceScaleFactor(float scaleFactor, ExceptionState&); 260 void setDeviceScaleFactor(float scaleFactor, ExceptionState&);
261 void setPageScaleFactor(float scaleFactor, ExceptionState&); 261 void setPageScaleFactor(float scaleFactor, ExceptionState&);
262 void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor, Ex ceptionState&); 262 void setPageScaleFactorLimits(float minScaleFactor, float maxScaleFactor, Ex ceptionState&);
263 263
264 bool magnifyScaleAroundAnchor(float factor, float x, float y); 264 bool magnifyScaleAroundAnchor(float factor, float x, float y);
265 265
266 void setIsCursorVisible(Document*, bool, ExceptionState&); 266 void setIsCursorVisible(Document*, bool, ExceptionState&);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 407
408 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 408 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
409 Member<InternalRuntimeFlags> m_runtimeFlags; 409 Member<InternalRuntimeFlags> m_runtimeFlags;
410 410
411 IterationSource* startIteration(ScriptState*, ExceptionState&) override; 411 IterationSource* startIteration(ScriptState*, ExceptionState&) override;
412 }; 412 };
413 413
414 } // namespace blink 414 } // namespace blink
415 415
416 #endif // Internals_h 416 #endif // Internals_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PrintContext.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698