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

Side by Side Diff: public/web/WebDocument.h

Issue 653223002: Navigation transitions (web to native app): Revert exit transition (Blink side) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 6 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
« Source/web/WebDocument.cpp ('K') | « Source/web/WebDocument.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; 114 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const;
115 BLINK_EXPORT WebElement createElement(const WebString& tagName); 115 BLINK_EXPORT WebElement createElement(const WebString& tagName);
116 // Shorthand of frame()->scrollOffset(). 116 // Shorthand of frame()->scrollOffset().
117 BLINK_EXPORT WebSize scrollOffset() const; 117 BLINK_EXPORT WebSize scrollOffset() const;
118 // Shorthand of frame()->minimumScrollOffset(). 118 // Shorthand of frame()->minimumScrollOffset().
119 BLINK_EXPORT WebSize minimumScrollOffset() const; 119 BLINK_EXPORT WebSize minimumScrollOffset() const;
120 // Shorthand of frame()->maximumScrollOffset(). 120 // Shorthand of frame()->maximumScrollOffset().
121 BLINK_EXPORT WebSize maximumScrollOffset() const; 121 BLINK_EXPORT WebSize maximumScrollOffset() const;
122 BLINK_EXPORT void setIsTransitionDocument(); 122 BLINK_EXPORT void setIsTransitionDocument();
123 BLINK_EXPORT void beginExitTransition(const WebString& cssSelector); 123 BLINK_EXPORT void beginExitTransition(const WebString& cssSelector);
124 BLINK_EXPORT void beginExitTransition(const WebString& cssSelector, const bo ol exitToActivity);
esprehn 2014/10/15 18:01:26 const bool doesn't make any sense, also lets just
Zhen Wang 2014/10/15 19:50:58 Why not const bool? Are we encouraged to use defa
esprehn 2014/10/15 20:19:07 Default values are fine in blink, and const bool a
Zhen Wang 2014/10/15 23:04:41 The const here has nothing to do with the caller.
125 BLINK_EXPORT void revertExitTransition();
126 BLINK_EXPORT void onTransitionElementOpacity(
esprehn 2014/10/15 18:01:26 This seems like a super weird thing to expose. I d
Zhen Wang 2014/10/15 19:50:58 The renderer side will call this function to hide/
esprehn 2014/10/15 20:19:07 It's not an okay API to expose.
Zhen Wang 2014/10/15 23:04:41 What API shall I use so that the renderer can call
127 const WebString& cssSelector, const double opacity);
esprehn 2014/10/15 18:01:26 no const double
Zhen Wang 2014/10/15 19:50:58 Why not?
esprehn 2014/10/15 20:19:07 You're passing by value, it doesn't make sense. Wh
Zhen Wang 2014/10/15 23:04:41 ditto
124 128
125 // Accessibility support. These methods should only be called on the 129 // Accessibility support. These methods should only be called on the
126 // top-level document, because one accessibility cache spans all of 130 // top-level document, because one accessibility cache spans all of
127 // the documents on the page. 131 // the documents on the page.
128 132
129 // Gets the accessibility object for this document. 133 // Gets the accessibility object for this document.
130 BLINK_EXPORT WebAXObject accessibilityObject() const; 134 BLINK_EXPORT WebAXObject accessibilityObject() const;
131 135
132 // Gets the accessibility object for an object on this page by ID. 136 // Gets the accessibility object for an object on this page by ID.
133 BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const; 137 BLINK_EXPORT WebAXObject accessibilityObjectFromID(int axID) const;
(...skipping 14 matching lines...) Expand all
148 #if BLINK_IMPLEMENTATION 152 #if BLINK_IMPLEMENTATION
149 WebDocument(const PassRefPtrWillBeRawPtr<Document>&); 153 WebDocument(const PassRefPtrWillBeRawPtr<Document>&);
150 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&); 154 WebDocument& operator=(const PassRefPtrWillBeRawPtr<Document>&);
151 operator PassRefPtrWillBeRawPtr<Document>() const; 155 operator PassRefPtrWillBeRawPtr<Document>() const;
152 #endif 156 #endif
153 }; 157 };
154 158
155 } // namespace blink 159 } // namespace blink
156 160
157 #endif 161 #endif
OLDNEW
« Source/web/WebDocument.cpp ('K') | « Source/web/WebDocument.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698