| 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/WebURLError.h" | 13 #include "public/platform/WebURLError.h" |
| 14 #include "public/platform/site_engagement.mojom-shared.h" |
| 14 | 15 |
| 15 namespace blink { | 16 namespace blink { |
| 16 | 17 |
| 17 class WebAutofillClient; | 18 class WebAutofillClient; |
| 18 class WebContentSettingsClient; | 19 class WebContentSettingsClient; |
| 19 class WebDevToolsAgent; | 20 class WebDevToolsAgent; |
| 20 class WebDevToolsAgentClient; | 21 class WebDevToolsAgentClient; |
| 21 class WebDoubleSize; | 22 class WebDoubleSize; |
| 22 class WebFrameClient; | 23 class WebFrameClient; |
| 23 class WebFrameWidget; | 24 class WebFrameWidget; |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 virtual WebFrameWidget* frameWidget() const = 0; | 427 virtual WebFrameWidget* frameWidget() const = 0; |
| 427 | 428 |
| 428 // Copy to the clipboard the image located at a particular point in visual | 429 // Copy to the clipboard the image located at a particular point in visual |
| 429 // viewport coordinates. | 430 // viewport coordinates. |
| 430 virtual void copyImageAt(const WebPoint&) = 0; | 431 virtual void copyImageAt(const WebPoint&) = 0; |
| 431 | 432 |
| 432 // Save as the image located at a particular point in visual viewport | 433 // Save as the image located at a particular point in visual viewport |
| 433 // coordinates. | 434 // coordinates. |
| 434 virtual void saveImageAt(const WebPoint&) = 0; | 435 virtual void saveImageAt(const WebPoint&) = 0; |
| 435 | 436 |
| 437 // Site engagement -------------------------------------------------------- |
| 438 |
| 439 // Sets the site engagement level for this frame's document. |
| 440 virtual void setEngagementLevel(mojom::EngagementLevel) = 0; |
| 441 |
| 436 // TEMP: Usage count for chrome.loadtimes deprecation. | 442 // TEMP: Usage count for chrome.loadtimes deprecation. |
| 437 // This will be removed following the deprecation. | 443 // This will be removed following the deprecation. |
| 438 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; | 444 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; |
| 439 | 445 |
| 440 protected: | 446 protected: |
| 441 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 447 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
| 442 | 448 |
| 443 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 449 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 444 // to call these on a WebLocalFrame. | 450 // to call these on a WebLocalFrame. |
| 445 bool isWebLocalFrame() const override = 0; | 451 bool isWebLocalFrame() const override = 0; |
| 446 WebLocalFrame* toWebLocalFrame() override = 0; | 452 WebLocalFrame* toWebLocalFrame() override = 0; |
| 447 bool isWebRemoteFrame() const override = 0; | 453 bool isWebRemoteFrame() const override = 0; |
| 448 WebRemoteFrame* toWebRemoteFrame() override = 0; | 454 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 449 }; | 455 }; |
| 450 | 456 |
| 451 } // namespace blink | 457 } // namespace blink |
| 452 | 458 |
| 453 #endif // WebLocalFrame_h | 459 #endif // WebLocalFrame_h |
| OLD | NEW |