| 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" |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 virtual void copyImageAt(const WebPoint&) = 0; | 426 virtual void copyImageAt(const WebPoint&) = 0; |
| 427 | 427 |
| 428 // Save as the image located at a particular point in visual viewport | 428 // Save as the image located at a particular point in visual viewport |
| 429 // coordinates. | 429 // coordinates. |
| 430 virtual void saveImageAt(const WebPoint&) = 0; | 430 virtual void saveImageAt(const WebPoint&) = 0; |
| 431 | 431 |
| 432 // TEMP: Usage count for chrome.loadtimes deprecation. | 432 // TEMP: Usage count for chrome.loadtimes deprecation. |
| 433 // This will be removed following the deprecation. | 433 // This will be removed following the deprecation. |
| 434 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; | 434 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; |
| 435 | 435 |
| 436 // Audio -------------------------------------------------------------------- |
| 437 |
| 438 // Notifies WebFrame when audio is started or stopped. |
| 439 virtual void audioStateChanged(bool isAudioPlaying) = 0; |
| 440 |
| 436 protected: | 441 protected: |
| 437 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 442 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
| 438 | 443 |
| 439 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 444 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 440 // to call these on a WebLocalFrame. | 445 // to call these on a WebLocalFrame. |
| 441 bool isWebLocalFrame() const override = 0; | 446 bool isWebLocalFrame() const override = 0; |
| 442 WebLocalFrame* toWebLocalFrame() override = 0; | 447 WebLocalFrame* toWebLocalFrame() override = 0; |
| 443 bool isWebRemoteFrame() const override = 0; | 448 bool isWebRemoteFrame() const override = 0; |
| 444 WebRemoteFrame* toWebRemoteFrame() override = 0; | 449 WebRemoteFrame* toWebRemoteFrame() override = 0; |
| 445 }; | 450 }; |
| 446 | 451 |
| 447 } // namespace blink | 452 } // namespace blink |
| 448 | 453 |
| 449 #endif // WebLocalFrame_h | 454 #endif // WebLocalFrame_h |
| OLD | NEW |