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

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

Issue 654953002: Navigation transitions (web to native app): Get names and rects of transition elements (Step 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use struct for transition element Created 6 years, 1 month 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 312
313 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength); 313 String textSurroundingNode(Node*, int x, int y, unsigned long maxLength);
314 314
315 void setFocused(bool); 315 void setFocused(bool);
316 316
317 bool ignoreLayoutWithPendingStylesheets(Document*); 317 bool ignoreLayoutWithPendingStylesheets(Document*);
318 318
319 void setNetworkStateNotifierTestOnly(bool); 319 void setNetworkStateNotifierTestOnly(bool);
320 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo. 320 // Test must call setNetworkStateNotifierTestOnly(true) before calling setNe tworkConnectionInfo.
321 void setNetworkConnectionInfo(const String&, ExceptionState&); 321 void setNetworkConnectionInfo(const String&, ExceptionState&);
322
323 PassRefPtrWillBeRawPtr<ClientRect> boundsInRootViewSpace(Element*);
322 String serializeNavigationMarkup(); 324 String serializeNavigationMarkup();
325 Vector<String> getTransitionElementNames();
326 PassRefPtrWillBeRawPtr<ClientRectList> getTransitionElementRects();
323 void hideAllTransitionElements(); 327 void hideAllTransitionElements();
324 328
325 unsigned countHitRegions(CanvasRenderingContext2D*); 329 unsigned countHitRegions(CanvasRenderingContext2D*);
326 330
327 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu mentFragment>, ExceptionState&); 331 void forcePluginPlaceholder(HTMLElement* plugin, PassRefPtrWillBeRawPtr<Docu mentFragment>, ExceptionState&);
328 void forcePluginPlaceholder(HTMLElement* plugin, const Dictionary& options, ExceptionState&); 332 void forcePluginPlaceholder(HTMLElement* plugin, const Dictionary& options, ExceptionState&);
329 333
330 Iterator* iterator(ScriptState*, ExceptionState&); 334 Iterator* iterator(ScriptState*, ExceptionState&);
331 335
332 private: 336 private:
333 explicit Internals(Document*); 337 explicit Internals(Document*);
334 Document* contextDocument() const; 338 Document* contextDocument() const;
335 LocalFrame* frame() const; 339 LocalFrame* frame() const;
336 Vector<String> iconURLs(Document*, int iconTypesMask) const; 340 Vector<String> iconURLs(Document*, int iconTypesMask) const;
337 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&); 341 PassRefPtrWillBeRawPtr<ClientRectList> annotatedRegions(Document*, bool drag gable, ExceptionState&);
338 342
339 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&); 343 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex ceptionState&);
340 Member<InternalRuntimeFlags> m_runtimeFlags; 344 Member<InternalRuntimeFlags> m_runtimeFlags;
341 Member<InternalProfilers> m_profilers; 345 Member<InternalProfilers> m_profilers;
342 }; 346 };
343 347
344 } // namespace blink 348 } // namespace blink
345 349
346 #endif // Internals_h 350 #endif // Internals_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698