| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class ChromePrintContext; | 48 class ChromePrintContext; |
| 49 class GeolocationClientProxy; | 49 class GeolocationClientProxy; |
| 50 class IntSize; | 50 class IntSize; |
| 51 class KURL; | 51 class KURL; |
| 52 class Range; | 52 class Range; |
| 53 class ScriptSourceCode; | 53 class ScriptSourceCode; |
| 54 class SharedWorkerRepositoryClientImpl; | 54 class SharedWorkerRepositoryClientImpl; |
| 55 class TextFinder; | 55 class TextFinder; |
| 56 class WebAutofillClient; |
| 56 class WebDataSourceImpl; | 57 class WebDataSourceImpl; |
| 57 class WebFrameClient; | 58 class WebFrameClient; |
| 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; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 virtual WebString contentAsMarkup() const override; | 217 virtual WebString contentAsMarkup() const override; |
| 217 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; | 218 virtual WebString renderTreeAsText(RenderAsTextControls toShow = RenderAsTex
tNormal) const override; |
| 218 virtual WebString markerTextForListItem(const WebElement&) const override; | 219 virtual WebString markerTextForListItem(const WebElement&) const override; |
| 219 virtual WebRect selectionBoundsRect() const override; | 220 virtual WebRect selectionBoundsRect() const override; |
| 220 | 221 |
| 221 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; | 222 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const
override; |
| 222 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; | 223 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override
; |
| 223 | 224 |
| 224 // WebLocalFrame methods: | 225 // WebLocalFrame methods: |
| 225 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) override; | 226 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*) override; |
| 227 virtual void setAutofillClient(WebAutofillClient*) override; |
| 226 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) override; | 228 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL
) override; |
| 227 virtual bool isLoading() const override; | 229 virtual bool isLoading() const override; |
| 228 virtual bool isResourceLoadInProgress() const override; | 230 virtual bool isResourceLoadInProgress() const override; |
| 229 virtual void addStyleSheetByURL(const WebString& url) override; | 231 virtual void addStyleSheetByURL(const WebString& url) override; |
| 230 virtual void navigateToSandboxedMarkup(const WebData& markup) override; | 232 virtual void navigateToSandboxedMarkup(const WebData& markup) override; |
| 231 virtual void sendOrientationChangeEvent() override; | 233 virtual void sendOrientationChangeEvent() override; |
| 232 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests( | 234 virtual v8::Handle<v8::Value> executeScriptAndReturnValueForTests( |
| 233 const WebScriptSource&) override; | 235 const WebScriptSource&) override; |
| 234 | 236 |
| 235 void willDetachParent(); | 237 void willDetachParent(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 290 |
| 289 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. | 291 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. |
| 290 // If the parameter is true, allow the document to be scrolled. | 292 // If the parameter is true, allow the document to be scrolled. |
| 291 // Otherwise, disallow scrolling. | 293 // Otherwise, disallow scrolling. |
| 292 virtual void setCanHaveScrollbars(bool) override; | 294 virtual void setCanHaveScrollbars(bool) override; |
| 293 | 295 |
| 294 LocalFrame* frame() const { return m_frame.get(); } | 296 LocalFrame* frame() const { return m_frame.get(); } |
| 295 WebFrameClient* client() const { return m_client; } | 297 WebFrameClient* client() const { return m_client; } |
| 296 void setClient(WebFrameClient* client) { m_client = client; } | 298 void setClient(WebFrameClient* client) { m_client = client; } |
| 297 | 299 |
| 300 WebAutofillClient* autofillClient() { return m_autofillClient; } |
| 298 WebPermissionClient* permissionClient() { return m_permissionClient; } | 301 WebPermissionClient* permissionClient() { return m_permissionClient; } |
| 299 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { ret
urn m_sharedWorkerRepositoryClient.get(); } | 302 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { ret
urn m_sharedWorkerRepositoryClient.get(); } |
| 300 | 303 |
| 301 void setInputEventsTransformForEmulation(const IntSize&, float); | 304 void setInputEventsTransformForEmulation(const IntSize&, float); |
| 302 | 305 |
| 303 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); | 306 static void selectWordAroundPosition(LocalFrame*, VisiblePosition); |
| 304 | 307 |
| 305 // Returns the text finder object if it already exists. | 308 // Returns the text finder object if it already exists. |
| 306 // Otherwise creates it and then returns. | 309 // Otherwise creates it and then returns. |
| 307 TextFinder& ensureTextFinder(); | 310 TextFinder& ensureTextFinder(); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 332 WebPlugin* focusedPluginIfInputMethodSupported(); | 335 WebPlugin* focusedPluginIfInputMethodSupported(); |
| 333 | 336 |
| 334 FrameLoaderClientImpl m_frameLoaderClientImpl; | 337 FrameLoaderClientImpl m_frameLoaderClientImpl; |
| 335 | 338 |
| 336 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 339 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
| 337 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 340 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
| 338 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. | 341 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. |
| 339 RefPtrWillBeMember<LocalFrame> m_frame; | 342 RefPtrWillBeMember<LocalFrame> m_frame; |
| 340 | 343 |
| 341 WebFrameClient* m_client; | 344 WebFrameClient* m_client; |
| 345 WebAutofillClient* m_autofillClient; |
| 342 WebPermissionClient* m_permissionClient; | 346 WebPermissionClient* m_permissionClient; |
| 343 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; | 347 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; |
| 344 | 348 |
| 345 // Will be initialized after first call to find() or scopeStringMatches(). | 349 // Will be initialized after first call to find() or scopeStringMatches(). |
| 346 OwnPtrWillBeMember<TextFinder> m_textFinder; | 350 OwnPtrWillBeMember<TextFinder> m_textFinder; |
| 347 | 351 |
| 348 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 352 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
| 349 // information. Is used by PrintPage(). | 353 // information. Is used by PrintPage(). |
| 350 OwnPtrWillBeMember<ChromePrintContext> m_printContext; | 354 OwnPtrWillBeMember<ChromePrintContext> m_printContext; |
| 351 | 355 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 367 GC_PLUGIN_IGNORE("340522") | 371 GC_PLUGIN_IGNORE("340522") |
| 368 Persistent<WebLocalFrameImpl> m_selfKeepAlive; | 372 Persistent<WebLocalFrameImpl> m_selfKeepAlive; |
| 369 #endif | 373 #endif |
| 370 }; | 374 }; |
| 371 | 375 |
| 372 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 376 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 373 | 377 |
| 374 } // namespace blink | 378 } // namespace blink |
| 375 | 379 |
| 376 #endif | 380 #endif |
| OLD | NEW |