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

Side by Side Diff: sky/engine/web/FrameLoaderClientImpl.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/FrameLoaderClientImpl.cpp » ('j') | 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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public: 45 public:
46 explicit FrameLoaderClientImpl(WebLocalFrameImpl* webFrame); 46 explicit FrameLoaderClientImpl(WebLocalFrameImpl* webFrame);
47 virtual ~FrameLoaderClientImpl(); 47 virtual ~FrameLoaderClientImpl();
48 48
49 WebLocalFrameImpl* webFrame() const { return m_webFrame; } 49 WebLocalFrameImpl* webFrame() const { return m_webFrame; }
50 50
51 // FrameLoaderClient ---------------------------------------------- 51 // FrameLoaderClient ----------------------------------------------
52 52
53 virtual void documentElementAvailable() override; 53 virtual void documentElementAvailable() override;
54 54
55 virtual void didCreateScriptContext(v8::Handle<v8::Context>) override;
56 virtual void willReleaseScriptContext(v8::Handle<v8::Context>) override;
57
58 virtual void detachedFromParent() override; 55 virtual void detachedFromParent() override;
59 virtual void dispatchWillSendRequest(Document*, unsigned long identifier, Re sourceRequest&, const ResourceResponse& redirectResponse) override; 56 virtual void dispatchWillSendRequest(Document*, unsigned long identifier, Re sourceRequest&, const ResourceResponse& redirectResponse) override;
60 virtual void dispatchDidReceiveResponse(Document*, unsigned long identifier, const ResourceResponse&) override; 57 virtual void dispatchDidReceiveResponse(Document*, unsigned long identifier, const ResourceResponse&) override;
61 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue) override; 58 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res ourceLoadPriority, int intraPriorityValue) override;
62 virtual void dispatchDidFinishLoading(Document*, unsigned long identifier) o verride; 59 virtual void dispatchDidFinishLoading(Document*, unsigned long identifier) o verride;
63 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) override; 60 virtual void dispatchDidLoadResourceFromMemoryCache(const ResourceRequest&, const ResourceResponse&) override;
64 virtual void dispatchDidHandleOnloadEvents() override; 61 virtual void dispatchDidHandleOnloadEvents() override;
65 virtual void dispatchWillClose() override; 62 virtual void dispatchWillClose() override;
66 virtual void dispatchDidReceiveTitle(const String&) override; 63 virtual void dispatchDidReceiveTitle(const String&) override;
67 virtual void dispatchDidFailLoad(const ResourceError&) override; 64 virtual void dispatchDidFailLoad(const ResourceError&) override;
68 65
69 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D ocument*, NavigationPolicy, bool isTransitionNavigation) override; 66 virtual NavigationPolicy decidePolicyForNavigation(const ResourceRequest&, D ocument*, NavigationPolicy, bool isTransitionNavigation) override;
70 virtual void dispatchAddNavigationTransitionData(const String& allowedDestin ationOrigin, const String& selector, const String& markup) override; 67 virtual void dispatchAddNavigationTransitionData(const String& allowedDestin ationOrigin, const String& selector, const String& markup) override;
71 virtual void dispatchWillRequestResource(FetchRequest*) override; 68 virtual void dispatchWillRequestResource(FetchRequest*) override;
72 virtual void didStartLoading(LoadStartType) override; 69 virtual void didStartLoading(LoadStartType) override;
73 virtual void didStopLoading() override; 70 virtual void didStopLoading() override;
74 virtual void progressEstimateChanged(double progressEstimate) override; 71 virtual void progressEstimateChanged(double progressEstimate) override;
75 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con st String& suggestedName = String()) override; 72 virtual void loadURLExternally(const ResourceRequest&, NavigationPolicy, con st String& suggestedName = String()) override;
76 virtual mojo::View* createChildFrame() override; 73 virtual mojo::View* createChildFrame() override;
77 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons t Vector<String>& removedSelectors) override; 74 virtual void selectorMatchChanged(const Vector<String>& addedSelectors, cons t Vector<String>& removedSelectors) override;
78 virtual void transitionToCommittedForNewPage() override; 75 virtual void transitionToCommittedForNewPage() override;
79 76
80 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) overrid e; 77 virtual void didLoseWebGLContext(int arbRobustnessContextLostReason) overrid e;
81 78
82 virtual void dispatchDidChangeManifest() override; 79 virtual void dispatchDidChangeManifest() override;
80 virtual void didCreateIsolate(Dart_Isolate isolate) override;
83 81
84 private: 82 private:
85 virtual bool isFrameLoaderClientImpl() const override { return true; } 83 virtual bool isFrameLoaderClientImpl() const override { return true; }
86 84
87 // The WebFrame that owns this object and manages its lifetime. Therefore, 85 // The WebFrame that owns this object and manages its lifetime. Therefore,
88 // the web frame object is guaranteed to exist. 86 // the web frame object is guaranteed to exist.
89 WebLocalFrameImpl* m_webFrame; 87 WebLocalFrameImpl* m_webFrame;
90 }; 88 };
91 89
92 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl()); 90 DEFINE_TYPE_CASTS(FrameLoaderClientImpl, FrameLoaderClient, client, client->isFr ameLoaderClientImpl(), client.isFrameLoaderClientImpl());
93 91
94 } // namespace blink 92 } // namespace blink
95 93
96 #endif // SKY_ENGINE_WEB_FRAMELOADERCLIENTIMPL_H_ 94 #endif // SKY_ENGINE_WEB_FRAMELOADERCLIENTIMPL_H_
OLDNEW
« no previous file with comments | « sky/engine/web/ChromeClientImpl.cpp ('k') | sky/engine/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698