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

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

Powered by Google App Engine
This is Rietveld 408576698