| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 struct WebAssociatedURLLoaderOptions; | 63 struct WebAssociatedURLLoaderOptions; |
| 64 class WebAutofillClient; | 64 class WebAutofillClient; |
| 65 class WebDataSourceImpl; | 65 class WebDataSourceImpl; |
| 66 class WebDevToolsAgentImpl; | 66 class WebDevToolsAgentImpl; |
| 67 class WebDevToolsFrontendImpl; | 67 class WebDevToolsFrontendImpl; |
| 68 class WebFrameClient; | 68 class WebFrameClient; |
| 69 class WebInputMethodControllerImpl; | 69 class WebInputMethodControllerImpl; |
| 70 class WebNode; | 70 class WebNode; |
| 71 class WebPerformance; | 71 class WebPerformance; |
| 72 class WebPlugin; | 72 class WebPlugin; |
| 73 class WebPluginContainerBase; | |
| 74 class WebScriptExecutionCallback; | 73 class WebScriptExecutionCallback; |
| 75 class WebView; | 74 class WebView; |
| 76 class WebViewBase; | 75 class WebViewBase; |
| 77 enum class WebFrameLoadType; | 76 enum class WebFrameLoadType; |
| 78 struct FrameLoadRequest; | 77 struct FrameLoadRequest; |
| 79 struct WebContentSecurityPolicyViolation; | 78 struct WebContentSecurityPolicyViolation; |
| 80 struct WebPrintParams; | 79 struct WebPrintParams; |
| 81 | 80 |
| 82 template <typename T> | 81 template <typename T> |
| 83 class WebVector; | 82 class WebVector; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 HTMLFrameOwnerElement*) override; | 343 HTMLFrameOwnerElement*) override; |
| 345 | 344 |
| 346 void DidChangeContentsSize(const IntSize&); | 345 void DidChangeContentsSize(const IntSize&); |
| 347 | 346 |
| 348 void CreateFrameView() override; | 347 void CreateFrameView() override; |
| 349 | 348 |
| 350 static WebLocalFrameImpl* FromFrame(LocalFrame*); | 349 static WebLocalFrameImpl* FromFrame(LocalFrame*); |
| 351 static WebLocalFrameImpl* FromFrame(LocalFrame&); | 350 static WebLocalFrameImpl* FromFrame(LocalFrame&); |
| 352 static WebLocalFrameImpl* FromFrameOwnerElement(Element*); | 351 static WebLocalFrameImpl* FromFrameOwnerElement(Element*); |
| 353 | 352 |
| 354 // If the frame hosts a PluginDocument, this method returns the | |
| 355 // WebPluginContainerBase that hosts the plugin. | |
| 356 static WebPluginContainerBase* PluginContainerFromFrame(LocalFrame*); | |
| 357 | |
| 358 // If the frame hosts a PluginDocument, this method returns the | |
| 359 // WebPluginContainerBase that hosts the plugin. If the provided node is a | |
| 360 // plugin, then it runs its WebPluginContainerBase. Otherwise, uses the | |
| 361 // currently focused element (if any). | |
| 362 static WebPluginContainerBase* CurrentPluginContainer(LocalFrame*, | |
| 363 Node* = nullptr); | |
| 364 | |
| 365 WebViewBase* ViewImpl() const override; | 353 WebViewBase* ViewImpl() const override; |
| 366 | 354 |
| 367 FrameView* GetFrameView() const override { | 355 FrameView* GetFrameView() const override { |
| 368 return GetFrame() ? GetFrame()->View() : 0; | 356 return GetFrame() ? GetFrame()->View() : 0; |
| 369 } | 357 } |
| 370 | 358 |
| 371 WebDevToolsAgentImpl* DevToolsAgentImpl() const override { | 359 WebDevToolsAgentImpl* DevToolsAgentImpl() const override { |
| 372 return dev_tools_agent_.Get(); | 360 return dev_tools_agent_.Get(); |
| 373 } | 361 } |
| 374 | 362 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 | 516 |
| 529 DEFINE_TYPE_CASTS(WebLocalFrameImpl, | 517 DEFINE_TYPE_CASTS(WebLocalFrameImpl, |
| 530 WebFrame, | 518 WebFrame, |
| 531 frame, | 519 frame, |
| 532 frame->IsWebLocalFrame(), | 520 frame->IsWebLocalFrame(), |
| 533 frame.IsWebLocalFrame()); | 521 frame.IsWebLocalFrame()); |
| 534 | 522 |
| 535 } // namespace blink | 523 } // namespace blink |
| 536 | 524 |
| 537 #endif | 525 #endif |
| OLD | NEW |