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

Side by Side Diff: Source/web/WebRemoteFrameImpl.h

Issue 334483002: Add Blink APIs for frame tree mirroring. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix some more crashes, etc. Created 6 years, 6 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrameImpl_h 5 #ifndef WebRemoteFrameImpl_h
6 #define WebRemoteFrameImpl_h 6 #define WebRemoteFrameImpl_h
7 7
8 #include "public/web/WebRemoteFrame.h" 8 #include "public/web/WebRemoteFrame.h"
9 #include "web/RemoteFrameClient.h" 9 #include "web/RemoteFrameClient.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.h"
(...skipping 25 matching lines...) Expand all
36 virtual WebSize scrollOffset() const OVERRIDE; 36 virtual WebSize scrollOffset() const OVERRIDE;
37 virtual void setScrollOffset(const WebSize&) OVERRIDE; 37 virtual void setScrollOffset(const WebSize&) OVERRIDE;
38 virtual WebSize minimumScrollOffset() const OVERRIDE; 38 virtual WebSize minimumScrollOffset() const OVERRIDE;
39 virtual WebSize maximumScrollOffset() const OVERRIDE; 39 virtual WebSize maximumScrollOffset() const OVERRIDE;
40 virtual WebSize contentsSize() const OVERRIDE; 40 virtual WebSize contentsSize() const OVERRIDE;
41 virtual bool hasVisibleContent() const OVERRIDE; 41 virtual bool hasVisibleContent() const OVERRIDE;
42 virtual WebRect visibleContentRect() const OVERRIDE; 42 virtual WebRect visibleContentRect() const OVERRIDE;
43 virtual bool hasHorizontalScrollbar() const OVERRIDE; 43 virtual bool hasHorizontalScrollbar() const OVERRIDE;
44 virtual bool hasVerticalScrollbar() const OVERRIDE; 44 virtual bool hasVerticalScrollbar() const OVERRIDE;
45 virtual WebView* view() const OVERRIDE; 45 virtual WebView* view() const OVERRIDE;
46 virtual void initializeAsMainFrame(WebView*) OVERRIDE;
46 virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE; 47 virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE;
47 virtual WebFrame* traverseNext(bool wrap) const OVERRIDE; 48 virtual WebFrame* traverseNext(bool wrap) const OVERRIDE;
48 virtual WebFrame* findChildByName(const WebString&) const OVERRIDE; 49 virtual WebFrame* findChildByName(const WebString&) const OVERRIDE;
49 virtual WebDocument document() const OVERRIDE; 50 virtual WebDocument document() const OVERRIDE;
50 virtual WebPerformance performance() const OVERRIDE; 51 virtual WebPerformance performance() const OVERRIDE;
51 virtual bool dispatchBeforeUnloadEvent() OVERRIDE; 52 virtual bool dispatchBeforeUnloadEvent() OVERRIDE;
52 virtual void dispatchUnloadEvent() OVERRIDE; 53 virtual void dispatchUnloadEvent() OVERRIDE;
53 virtual NPObject* windowObject() const OVERRIDE; 54 virtual NPObject* windowObject() const OVERRIDE;
54 virtual void bindToWindowObject(const WebString& name, NPObject*) OVERRIDE; 55 virtual void bindToWindowObject(const WebString& name, NPObject*) OVERRIDE;
55 virtual void bindToWindowObject(const WebString& name, NPObject*, void*) OVE RRIDE; 56 virtual void bindToWindowObject(const WebString& name, NPObject*, void*) OVE RRIDE;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 164
164 virtual WebString contentAsText(size_t maxChars) const OVERRIDE; 165 virtual WebString contentAsText(size_t maxChars) const OVERRIDE;
165 virtual WebString contentAsMarkup() const OVERRIDE; 166 virtual WebString contentAsMarkup() const OVERRIDE;
166 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const OVERRIDE; 167 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex tNormal) const OVERRIDE;
167 virtual WebString markerTextForListItem(const WebElement&) const OVERRIDE; 168 virtual WebString markerTextForListItem(const WebElement&) const OVERRIDE;
168 virtual WebRect selectionBoundsRect() const OVERRIDE; 169 virtual WebRect selectionBoundsRect() const OVERRIDE;
169 170
170 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const OVERRIDE; 171 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const OVERRIDE;
171 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE ; 172 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE ;
172 173
174 virtual WebLocalFrame* createLocalChild(const WebString& name, WebFrameClien t*) OVERRIDE;
175 virtual WebRemoteFrame* createRemoteChild(const WebString& name, WebFrameCli ent*) OVERRIDE;
176
177 void setWebCoreFrame(PassRefPtr<WebCore::RemoteFrame>);
173 WebCore::RemoteFrame* frame() const { return m_frame.get(); } 178 WebCore::RemoteFrame* frame() const { return m_frame.get(); }
174 179
175 private: 180 private:
176 RemoteFrameClient m_frameClient; 181 RemoteFrameClient m_frameClient;
177 RefPtr<WebCore::RemoteFrame> m_frame; 182 RefPtr<WebCore::RemoteFrame> m_frame;
178 }; 183 };
179 184
180 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame()); 185 DEFINE_TYPE_CASTS(WebRemoteFrameImpl, WebFrame, frame, frame->isWebRemoteFrame() , frame.isWebRemoteFrame());
181 186
182 187
183 } // namespace blink 188 } // namespace blink
184 189
185 #endif // WebRemoteFrameImpl_h 190 #endif // WebRemoteFrameImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698