OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 3750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3761 plugin->plugin()->rotateView( | 3761 plugin->plugin()->rotateView( |
3762 WebPlugin::RotationType90Counterclockwise); | 3762 WebPlugin::RotationType90Counterclockwise); |
3763 break; | 3763 break; |
3764 default: | 3764 default: |
3765 NOTREACHED(); | 3765 NOTREACHED(); |
3766 } | 3766 } |
3767 } | 3767 } |
3768 } | 3768 } |
3769 } | 3769 } |
3770 | 3770 |
| 3771 void WebViewImpl::audioStateChanged(bool isAudioPlaying) { |
| 3772 m_scheduler->audioStateChanged(isAudioPlaying); |
| 3773 } |
| 3774 |
3771 WebHitTestResult WebViewImpl::hitTestResultAt(const WebPoint& point) { | 3775 WebHitTestResult WebViewImpl::hitTestResultAt(const WebPoint& point) { |
3772 return coreHitTestResultAt(point); | 3776 return coreHitTestResultAt(point); |
3773 } | 3777 } |
3774 | 3778 |
3775 HitTestResult WebViewImpl::coreHitTestResultAt( | 3779 HitTestResult WebViewImpl::coreHitTestResultAt( |
3776 const WebPoint& pointInViewport) { | 3780 const WebPoint& pointInViewport) { |
3777 DocumentLifecycle::AllowThrottlingScope throttlingScope( | 3781 DocumentLifecycle::AllowThrottlingScope throttlingScope( |
3778 mainFrameImpl()->frame()->document()->lifecycle()); | 3782 mainFrameImpl()->frame()->document()->lifecycle()); |
3779 FrameView* view = mainFrameImpl()->frameView(); | 3783 FrameView* view = mainFrameImpl()->frameView(); |
3780 IntPoint pointInRootFrame = | 3784 IntPoint pointInRootFrame = |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4725 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4729 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
4726 return nullptr; | 4730 return nullptr; |
4727 return focusedFrame; | 4731 return focusedFrame; |
4728 } | 4732 } |
4729 | 4733 |
4730 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4734 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
4731 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4735 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
4732 } | 4736 } |
4733 | 4737 |
4734 } // namespace blink | 4738 } // namespace blink |
OLD | NEW |