OLD | NEW |
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 29 matching lines...) Expand all Loading... |
40 #include "web/UserMediaClientImpl.h" | 40 #include "web/UserMediaClientImpl.h" |
41 #include "wtf/Compiler.h" | 41 #include "wtf/Compiler.h" |
42 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" |
43 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" |
44 #include "wtf/text/WTFString.h" | 44 #include "wtf/text/WTFString.h" |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
48 class ChromePrintContext; | 48 class ChromePrintContext; |
49 class GeolocationClientProxy; | 49 class GeolocationClientProxy; |
50 class InspectorOverlay; | |
51 class IntSize; | 50 class IntSize; |
52 class KURL; | 51 class KURL; |
53 class Range; | 52 class Range; |
54 class SharedWorkerRepositoryClientImpl; | 53 class SharedWorkerRepositoryClientImpl; |
55 class TextFinder; | 54 class TextFinder; |
56 class WebAutofillClient; | 55 class WebAutofillClient; |
57 class WebDataSourceImpl; | 56 class WebDataSourceImpl; |
58 class WebDevToolsAgentImpl; | 57 class WebDevToolsAgentImpl; |
59 class WebDevToolsFrontendImpl; | 58 class WebDevToolsFrontendImpl; |
60 class WebFrameClient; | 59 class WebFrameClient; |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 277 |
279 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl | 278 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl |
280 // that hosts the plugin. If the provided node is a plugin, then it runs its | 279 // that hosts the plugin. If the provided node is a plugin, then it runs its |
281 // WebPluginContainerImpl. | 280 // WebPluginContainerImpl. |
282 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We
bNode&); | 281 static WebPluginContainerImpl* pluginContainerFromNode(LocalFrame*, const We
bNode&); |
283 | 282 |
284 WebViewImpl* viewImpl() const; | 283 WebViewImpl* viewImpl() const; |
285 | 284 |
286 FrameView* frameView() const { return frame() ? frame()->view() : 0; } | 285 FrameView* frameView() const { return frame() ? frame()->view() : 0; } |
287 | 286 |
288 InspectorOverlay* inspectorOverlay(); | |
289 WebDevToolsAgentImpl* devToolsAgentImpl() const { return m_devToolsAgent.get
(); } | 287 WebDevToolsAgentImpl* devToolsAgentImpl() const { return m_devToolsAgent.get
(); } |
290 | 288 |
291 // Getters for the impls corresponding to Get(Provisional)DataSource. They | 289 // Getters for the impls corresponding to Get(Provisional)DataSource. They |
292 // may return 0 if there is no corresponding data source. | 290 // may return 0 if there is no corresponding data source. |
293 WebDataSourceImpl* dataSourceImpl() const; | 291 WebDataSourceImpl* dataSourceImpl() const; |
294 WebDataSourceImpl* provisionalDataSourceImpl() const; | 292 WebDataSourceImpl* provisionalDataSourceImpl() const; |
295 | 293 |
296 // Returns which frame has an active match. This function should only be | 294 // Returns which frame has an active match. This function should only be |
297 // called on the main frame, as it is the only frame keeping track. Returned | 295 // called on the main frame, as it is the only frame keeping track. Returned |
298 // value can be 0 if no frame has an active match. | 296 // value can be 0 if no frame has an active match. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 WebPlugin* focusedPluginIfInputMethodSupported(); | 357 WebPlugin* focusedPluginIfInputMethodSupported(); |
360 ScrollableArea* layoutViewportScrollableArea() const; | 358 ScrollableArea* layoutViewportScrollableArea() const; |
361 | 359 |
362 OwnPtrWillBeMember<FrameLoaderClientImpl> m_frameLoaderClientImpl; | 360 OwnPtrWillBeMember<FrameLoaderClientImpl> m_frameLoaderClientImpl; |
363 | 361 |
364 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 362 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
365 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 363 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
366 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. | 364 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. |
367 RefPtrWillBeMember<LocalFrame> m_frame; | 365 RefPtrWillBeMember<LocalFrame> m_frame; |
368 | 366 |
369 OwnPtrWillBeMember<InspectorOverlay> m_inspectorOverlay; | |
370 OwnPtrWillBeMember<WebDevToolsAgentImpl> m_devToolsAgent; | 367 OwnPtrWillBeMember<WebDevToolsAgentImpl> m_devToolsAgent; |
371 | 368 |
372 // This is set if the frame is the root of a local frame tree, and requires
a widget for layout. | 369 // This is set if the frame is the root of a local frame tree, and requires
a widget for layout. |
373 WebFrameWidget* m_frameWidget; | 370 WebFrameWidget* m_frameWidget; |
374 | 371 |
375 WebFrameClient* m_client; | 372 WebFrameClient* m_client; |
376 WebAutofillClient* m_autofillClient; | 373 WebAutofillClient* m_autofillClient; |
377 WebContentSettingsClient* m_contentSettingsClient; | 374 WebContentSettingsClient* m_contentSettingsClient; |
378 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; | 375 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; |
379 | 376 |
(...skipping 22 matching lines...) Expand all Loading... |
402 // cleared upon close(). | 399 // cleared upon close(). |
403 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 400 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
404 #endif | 401 #endif |
405 }; | 402 }; |
406 | 403 |
407 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 404 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
408 | 405 |
409 } // namespace blink | 406 } // namespace blink |
410 | 407 |
411 #endif | 408 #endif |
OLD | NEW |