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

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

Issue 638003004: Introduce WebFrameWidget to Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moar review comments addressed Created 5 years, 11 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class GeolocationClientProxy; 48 class GeolocationClientProxy;
49 class IntSize; 49 class IntSize;
50 class KURL; 50 class KURL;
51 class Range; 51 class Range;
52 class ScriptSourceCode; 52 class ScriptSourceCode;
53 class SharedWorkerRepositoryClientImpl; 53 class SharedWorkerRepositoryClientImpl;
54 class TextFinder; 54 class TextFinder;
55 class WebAutofillClient; 55 class WebAutofillClient;
56 class WebDataSourceImpl; 56 class WebDataSourceImpl;
57 class WebFrameClient; 57 class WebFrameClient;
58 class WebFrameWidgetImpl;
58 class WebPerformance; 59 class WebPerformance;
59 class WebPlugin; 60 class WebPlugin;
60 class WebPluginContainerImpl; 61 class WebPluginContainerImpl;
61 class WebScriptExecutionCallback; 62 class WebScriptExecutionCallback;
62 class WebView; 63 class WebView;
63 class WebViewImpl; 64 class WebViewImpl;
64 struct FrameLoadRequest; 65 struct FrameLoadRequest;
65 struct WebPrintParams; 66 struct WebPrintParams;
66 67
67 template <typename T> class WebVector; 68 template <typename T> class WebVector;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 311
311 // Invalidates vertical scrollbar only. 312 // Invalidates vertical scrollbar only.
312 void invalidateScrollbar() const; 313 void invalidateScrollbar() const;
313 314
314 // Invalidates both content area and the scrollbar. 315 // Invalidates both content area and the scrollbar.
315 void invalidateAll() const; 316 void invalidateAll() const;
316 317
317 // Returns a hit-tested VisiblePosition for the given point 318 // Returns a hit-tested VisiblePosition for the given point
318 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); 319 VisiblePosition visiblePositionForWindowPoint(const WebPoint&);
319 320
321 void setFrameWidget(WebFrameWidgetImpl*);
322 WebFrameWidgetImpl* frameWidget() const;
323
320 #if ENABLE(OILPAN) 324 #if ENABLE(OILPAN)
321 void trace(Visitor*); 325 void trace(Visitor*);
322 #endif 326 #endif
323 327
324 private: 328 private:
325 friend class FrameLoaderClientImpl; 329 friend class FrameLoaderClientImpl;
326 330
327 explicit WebLocalFrameImpl(WebFrameClient*); 331 explicit WebLocalFrameImpl(WebFrameClient*);
328 332
329 // Sets the local core frame and registers destruction observers. 333 // Sets the local core frame and registers destruction observers.
330 void setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame>); 334 void setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame>);
331 335
332 void loadJavaScriptURL(const KURL&); 336 void loadJavaScriptURL(const KURL&);
333 337
334 WebPlugin* focusedPluginIfInputMethodSupported(); 338 WebPlugin* focusedPluginIfInputMethodSupported();
335 339
336 FrameLoaderClientImpl m_frameLoaderClientImpl; 340 FrameLoaderClientImpl m_frameLoaderClientImpl;
337 341
338 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This 342 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This
339 // reference is released when the frame is removed from the DOM or the entir e page is closed. 343 // reference is released when the frame is removed from the DOM or the entir e page is closed.
340 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy. 344 // FIXME: These will need to change to WebFrame when we introduce WebFramePr oxy.
341 RefPtrWillBeMember<LocalFrame> m_frame; 345 RefPtrWillBeMember<LocalFrame> m_frame;
342 346
347 // This is set if the frame is the root of a local frame tree, and requires a widget for rendering.
348 WebFrameWidgetImpl* m_frameWidget;
349
343 WebFrameClient* m_client; 350 WebFrameClient* m_client;
344 WebAutofillClient* m_autofillClient; 351 WebAutofillClient* m_autofillClient;
345 WebPermissionClient* m_permissionClient; 352 WebPermissionClient* m_permissionClient;
346 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; 353 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient;
347 354
348 // Will be initialized after first call to find() or scopeStringMatches(). 355 // Will be initialized after first call to find() or scopeStringMatches().
349 OwnPtrWillBeMember<TextFinder> m_textFinder; 356 OwnPtrWillBeMember<TextFinder> m_textFinder;
350 357
351 // Valid between calls to BeginPrint() and EndPrint(). Containts the print 358 // Valid between calls to BeginPrint() and EndPrint(). Containts the print
352 // information. Is used by PrintPage(). 359 // information. Is used by PrintPage().
(...skipping 17 matching lines...) Expand all
370 GC_PLUGIN_IGNORE("340522") 377 GC_PLUGIN_IGNORE("340522")
371 Persistent<WebLocalFrameImpl> m_selfKeepAlive; 378 Persistent<WebLocalFrameImpl> m_selfKeepAlive;
372 #endif 379 #endif
373 }; 380 };
374 381
375 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 382 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
376 383
377 } // namespace blink 384 } // namespace blink
378 385
379 #endif 386 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698