| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
| 6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
| 7 | 7 |
| 8 #include "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
| 9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
| 10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
| 11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
| 12 #include "public/platform/WebCachePolicy.h" | 12 #include "public/platform/WebCachePolicy.h" |
| 13 #include "public/platform/WebVector.h" |
| 14 #include "public/web/WebContentSecurityPolicy.h" |
| 13 | 15 |
| 14 namespace blink { | 16 namespace blink { |
| 15 | 17 |
| 16 class WebAutofillClient; | 18 class WebAutofillClient; |
| 17 class WebContentSettingsClient; | 19 class WebContentSettingsClient; |
| 18 class WebDevToolsAgent; | 20 class WebDevToolsAgent; |
| 19 class WebDevToolsAgentClient; | 21 class WebDevToolsAgentClient; |
| 20 class WebFrameClient; | 22 class WebFrameClient; |
| 21 class WebFrameWidget; | 23 class WebFrameWidget; |
| 22 class WebRange; | 24 class WebRange; |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 virtual WebFrameWidget* frameWidget() const = 0; | 421 virtual WebFrameWidget* frameWidget() const = 0; |
| 420 | 422 |
| 421 // Copy to the clipboard the image located at a particular point in visual | 423 // Copy to the clipboard the image located at a particular point in visual |
| 422 // viewport coordinates. | 424 // viewport coordinates. |
| 423 virtual void copyImageAt(const WebPoint&) = 0; | 425 virtual void copyImageAt(const WebPoint&) = 0; |
| 424 | 426 |
| 425 // Save as the image located at a particular point in visual viewport | 427 // Save as the image located at a particular point in visual viewport |
| 426 // coordinates. | 428 // coordinates. |
| 427 virtual void saveImageAt(const WebPoint&) = 0; | 429 virtual void saveImageAt(const WebPoint&) = 0; |
| 428 | 430 |
| 431 // Security --------------------------------------------------------------- |
| 432 |
| 433 // Report a Content Security Policy violation. |
| 434 virtual void reportContentSecurityPolicyViolation( |
| 435 const WebString& directiveText, |
| 436 const WebString& effectiveDirective, |
| 437 const WebString& consoleMessage, |
| 438 const WebURL& blockedURL, |
| 439 const WebVector<WebString>& reportEndpoints, |
| 440 const WebString& header, |
| 441 WebContentSecurityPolicyViolationType, |
| 442 bool followedRedirect, |
| 443 int contextLine) = 0; |
| 444 |
| 429 protected: | 445 protected: |
| 430 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } | 446 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) { } |
| 431 | 447 |
| 432 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 448 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 433 // to call these on a WebLocalFrame. | 449 // to call these on a WebLocalFrame. |
| 434 bool isWebLocalFrame() const override = 0; | 450 bool isWebLocalFrame() const override = 0; |
| 435 WebLocalFrame* toWebLocalFrame() override = 0; | 451 WebLocalFrame* toWebLocalFrame() override = 0; |
| 436 bool isWebRemoteFrame() const override = 0; | 452 bool isWebRemoteFrame() const override = 0; |
| 437 WebRemoteFrame* toWebRemoteFrame() override = 0; | 453 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 438 }; | 454 }; |
| 439 | 455 |
| 440 } // namespace blink | 456 } // namespace blink |
| 441 | 457 |
| 442 #endif // WebLocalFrame_h | 458 #endif // WebLocalFrame_h |
| OLD | NEW |