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

Side by Side Diff: Source/web/WebLocalFrameImpl.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 /* 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual void setScrollOffset(const WebSize&) OVERRIDE; 96 virtual void setScrollOffset(const WebSize&) OVERRIDE;
97 virtual WebSize minimumScrollOffset() const OVERRIDE; 97 virtual WebSize minimumScrollOffset() const OVERRIDE;
98 virtual WebSize maximumScrollOffset() const OVERRIDE; 98 virtual WebSize maximumScrollOffset() const OVERRIDE;
99 virtual WebSize contentsSize() const OVERRIDE; 99 virtual WebSize contentsSize() const OVERRIDE;
100 virtual bool hasVisibleContent() const OVERRIDE; 100 virtual bool hasVisibleContent() const OVERRIDE;
101 virtual WebRect visibleContentRect() const OVERRIDE; 101 virtual WebRect visibleContentRect() const OVERRIDE;
102 virtual bool hasHorizontalScrollbar() const OVERRIDE; 102 virtual bool hasHorizontalScrollbar() const OVERRIDE;
103 virtual bool hasVerticalScrollbar() const OVERRIDE; 103 virtual bool hasVerticalScrollbar() const OVERRIDE;
104 virtual WebView* view() const OVERRIDE; 104 virtual WebView* view() const OVERRIDE;
105 virtual void setOpener(WebFrame*) OVERRIDE; 105 virtual void setOpener(WebFrame*) OVERRIDE;
106 virtual void initializeAsMainFrame(WebView*) OVERRIDE;
106 virtual void appendChild(WebFrame*) OVERRIDE; 107 virtual void appendChild(WebFrame*) OVERRIDE;
107 virtual void removeChild(WebFrame*) OVERRIDE; 108 virtual void removeChild(WebFrame*) OVERRIDE;
108 virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE; 109 virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE;
109 virtual WebFrame* traverseNext(bool wrap) const OVERRIDE; 110 virtual WebFrame* traverseNext(bool wrap) const OVERRIDE;
110 virtual WebFrame* findChildByName(const WebString&) const OVERRIDE; 111 virtual WebFrame* findChildByName(const WebString&) const OVERRIDE;
111 virtual WebDocument document() const OVERRIDE; 112 virtual WebDocument document() const OVERRIDE;
112 virtual WebPerformance performance() const OVERRIDE; 113 virtual WebPerformance performance() const OVERRIDE;
113 virtual bool dispatchBeforeUnloadEvent() OVERRIDE; 114 virtual bool dispatchBeforeUnloadEvent() OVERRIDE;
114 virtual void dispatchUnloadEvent() OVERRIDE; 115 virtual void dispatchUnloadEvent() OVERRIDE;
115 virtual NPObject* windowObject() const OVERRIDE; 116 virtual NPObject* windowObject() const OVERRIDE;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 virtual WebRect selectionBoundsRect() const OVERRIDE; 231 virtual WebRect selectionBoundsRect() const OVERRIDE;
231 232
232 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const OVERRIDE; 233 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const OVERRIDE;
233 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE ; 234 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE ;
234 235
235 void willDetachParent(); 236 void willDetachParent();
236 237
237 static WebLocalFrameImpl* create(WebFrameClient*); 238 static WebLocalFrameImpl* create(WebFrameClient*);
238 virtual ~WebLocalFrameImpl(); 239 virtual ~WebLocalFrameImpl();
239 240
240 // Called by the WebViewImpl to initialize the main frame for the page.
241 void initializeAsMainFrame(WebCore::Page*);
242
243 PassRefPtr<WebCore::LocalFrame> createChildFrame( 241 PassRefPtr<WebCore::LocalFrame> createChildFrame(
244 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*); 242 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*);
245 243
246 void didChangeContentsSize(const WebCore::IntSize&); 244 void didChangeContentsSize(const WebCore::IntSize&);
247 245
248 void createFrameView(); 246 void createFrameView();
249 247
250 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*); 248 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*);
251 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*); 249 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*);
252 250
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // Returns the text finder object if it already exists. 304 // Returns the text finder object if it already exists.
307 // Otherwise creates it and then returns. 305 // Otherwise creates it and then returns.
308 TextFinder& ensureTextFinder(); 306 TextFinder& ensureTextFinder();
309 307
310 // Invalidates vertical scrollbar only. 308 // Invalidates vertical scrollbar only.
311 void invalidateScrollbar() const; 309 void invalidateScrollbar() const;
312 310
313 // Invalidates both content area and the scrollbar. 311 // Invalidates both content area and the scrollbar.
314 void invalidateAll() const; 312 void invalidateAll() const;
315 313
314 void initializeAsChildFrame(WebCore::FrameHost*, WebCore::FrameOwner*, const AtomicString& name, const AtomicString& fallbackName);
315
316 private: 316 private:
317 friend class FrameLoaderClientImpl; 317 friend class FrameLoaderClientImpl;
318 318
319 explicit WebLocalFrameImpl(WebFrameClient*); 319 explicit WebLocalFrameImpl(WebFrameClient*);
320 320
321 // Sets the local WebCore frame and registers destruction observers. 321 // Sets the local WebCore frame and registers destruction observers.
322 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>); 322 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>);
323 323
324 void loadJavaScriptURL(const WebCore::KURL&); 324 void loadJavaScriptURL(const WebCore::KURL&);
325 325
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 UserMediaClientImpl m_userMediaClientImpl; 357 UserMediaClientImpl m_userMediaClientImpl;
358 358
359 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 359 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy;
360 }; 360 };
361 361
362 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 362 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
363 363
364 } // namespace blink 364 } // namespace blink
365 365
366 #endif 366 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698