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