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

Side by Side Diff: Source/core/loader/FrameLoaderClient.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: re-add TypeChecking 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2012 Google 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 16 matching lines...) Expand all
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef FrameLoaderClient_h 30 #ifndef FrameLoaderClient_h
31 #define FrameLoaderClient_h 31 #define FrameLoaderClient_h
32 32
33 #include "core/dom/IconURL.h" 33 #include "core/dom/IconURL.h"
34 #include "core/frame/FrameClient.h" 34 #include "core/frame/FrameClient.h"
35 #include "core/loader/FrameLoaderTypes.h" 35 #include "core/loader/FrameLoaderTypes.h"
36 #include "core/loader/NavigationPolicy.h" 36 #include "core/loader/NavigationPolicy.h"
37 #include "platform/geometry/IntRect.h"
37 #include "platform/heap/Handle.h" 38 #include "platform/heap/Handle.h"
38 #include "platform/network/ResourceLoadPriority.h" 39 #include "platform/network/ResourceLoadPriority.h"
39 #include "platform/weborigin/Referrer.h" 40 #include "platform/weborigin/Referrer.h"
40 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
41 #include "wtf/Vector.h" 42 #include "wtf/Vector.h"
42 #include <v8.h> 43 #include <v8.h>
43 44
44 namespace blink { 45 namespace blink {
45 class WebCookieJar; 46 class WebCookieJar;
46 class WebRTCPeerConnectionHandler; 47 class WebRTCPeerConnectionHandler;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom mitType) = 0; 94 virtual void dispatchDidCommitLoad(LocalFrame*, HistoryItem*, HistoryCom mitType) = 0;
94 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0; 95 virtual void dispatchDidFailProvisionalLoad(const ResourceError&) = 0;
95 virtual void dispatchDidFailLoad(const ResourceError&) = 0; 96 virtual void dispatchDidFailLoad(const ResourceError&) = 0;
96 virtual void dispatchDidFinishDocumentLoad() = 0; 97 virtual void dispatchDidFinishDocumentLoad() = 0;
97 virtual void dispatchDidFinishLoad() = 0; 98 virtual void dispatchDidFinishLoad() = 0;
98 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0; 99 virtual void dispatchDidFirstVisuallyNonEmptyLayout() = 0;
99 virtual void dispatchDidChangeThemeColor() = 0; 100 virtual void dispatchDidChangeThemeColor() = 0;
100 101
101 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest &, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0; 102 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest &, DocumentLoader*, NavigationPolicy, bool isTransitionNavigation) = 0;
102 103
103 virtual void dispatchAddNavigationTransitionData(const String& origin, c onst String& selector, const String& markup) { } 104 virtual void dispatchAddNavigationTransitionData(
105 const String& origin, const String& selector, const String& markup,
sof 2014/10/24 15:17:14 Let's keep this on one line also?
Zhen Wang 2014/10/27 14:14:45 Using struct now.
106 const Vector<String>& names, const Vector<IntRect>& rects) { }
104 virtual void dispatchWillRequestResource(FetchRequest*) { } 107 virtual void dispatchWillRequestResource(FetchRequest*) { }
105 108
106 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0; 109 virtual void dispatchWillSendSubmitEvent(HTMLFormElement*) = 0;
107 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0; 110 virtual void dispatchWillSubmitForm(HTMLFormElement*) = 0;
108 111
109 virtual void didStartLoading(LoadStartType) = 0; 112 virtual void didStartLoading(LoadStartType) = 0;
110 virtual void progressEstimateChanged(double progressEstimate) = 0; 113 virtual void progressEstimateChanged(double progressEstimate) = 0;
111 virtual void didStopLoading() = 0; 114 virtual void didStopLoading() = 0;
112 115
113 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, const String& suggestedName = String()) = 0; 116 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, const String& suggestedName = String()) = 0;
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 virtual void didStopAllLoaders() { } 223 virtual void didStopAllLoaders() { }
221 224
222 virtual void dispatchDidChangeManifest() { } 225 virtual void dispatchDidChangeManifest() { }
223 226
224 virtual bool isFrameLoaderClientImpl() const { return false; } 227 virtual bool isFrameLoaderClientImpl() const { return false; }
225 }; 228 };
226 229
227 } // namespace blink 230 } // namespace blink
228 231
229 #endif // FrameLoaderClient_h 232 #endif // FrameLoaderClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698