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

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

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove internals.setPageScaleFactor, rename eventSender.scalePageBy. Created 7 years, 5 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 | Annotate | Revision Log
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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 int pageNumber(Element*, float pageWidth = 800, float pageHeight = 600); 239 int pageNumber(Element*, float pageWidth = 800, float pageHeight = 600);
240 Vector<String> shortcutIconURLs(Document*) const; 240 Vector<String> shortcutIconURLs(Document*) const;
241 Vector<String> allIconURLs(Document*) const; 241 Vector<String> allIconURLs(Document*) const;
242 242
243 int numberOfPages(float pageWidthInPixels = 800, float pageHeightInPixels = 600); 243 int numberOfPages(float pageWidthInPixels = 800, float pageHeightInPixels = 600);
244 String pageProperty(String, int, ExceptionCode& = ASSERT_NO_EXCEPTION) const ; 244 String pageProperty(String, int, ExceptionCode& = ASSERT_NO_EXCEPTION) const ;
245 String pageSizeAndMarginsInPixels(int, int, int, int, int, int, int, Excepti onCode& = ASSERT_NO_EXCEPTION) const; 245 String pageSizeAndMarginsInPixels(int, int, int, int, int, int, int, Excepti onCode& = ASSERT_NO_EXCEPTION) const;
246 246
247 void setDeviceScaleFactor(float scaleFactor, ExceptionCode&); 247 void setDeviceScaleFactor(float scaleFactor, ExceptionCode&);
248 void setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCode&);
249 248
250 void setIsCursorVisible(Document*, bool, ExceptionCode&); 249 void setIsCursorVisible(Document*, bool, ExceptionCode&);
251 250
252 void webkitWillEnterFullScreenForElement(Document*, Element*); 251 void webkitWillEnterFullScreenForElement(Document*, Element*);
253 void webkitDidEnterFullScreenForElement(Document*, Element*); 252 void webkitDidEnterFullScreenForElement(Document*, Element*);
254 void webkitWillExitFullScreenForElement(Document*, Element*); 253 void webkitWillExitFullScreenForElement(Document*, Element*);
255 void webkitDidExitFullScreenForElement(Document*, Element*); 254 void webkitDidExitFullScreenForElement(Document*, Element*);
256 255
257 void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) ; 256 void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) ;
258 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme); 257 void removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionCode&); 293 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionCode&);
295 RefPtr<DOMWindow> m_frontendWindow; 294 RefPtr<DOMWindow> m_frontendWindow;
296 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; 295 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel;
297 RefPtr<InternalRuntimeFlags> m_runtimeFlags; 296 RefPtr<InternalRuntimeFlags> m_runtimeFlags;
298 RefPtr<InternalProfilers> m_profilers; 297 RefPtr<InternalProfilers> m_profilers;
299 }; 298 };
300 299
301 } // namespace WebCore 300 } // namespace WebCore
302 301
303 #endif 302 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698