Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 3553 matching lines...) Expand 10 before | Expand all | Expand 10 after
3564 plugin->plugin()->rotateView( 3564 plugin->plugin()->rotateView(
3565 WebPlugin::RotationType90Counterclockwise); 3565 WebPlugin::RotationType90Counterclockwise);
3566 break; 3566 break;
3567 default: 3567 default:
3568 NOTREACHED(); 3568 NOTREACHED();
3569 } 3569 }
3570 } 3570 }
3571 } 3571 }
3572 } 3572 }
3573 3573
3574 void WebViewImpl::audioStateChanged(bool isAudioPlaying) {
3575 m_scheduler->audioStateChanged(isAudioPlaying);
3576 }
3577
3574 WebHitTestResult WebViewImpl::hitTestResultAt(const WebPoint& point) { 3578 WebHitTestResult WebViewImpl::hitTestResultAt(const WebPoint& point) {
3575 return coreHitTestResultAt(point); 3579 return coreHitTestResultAt(point);
3576 } 3580 }
3577 3581
3578 HitTestResult WebViewImpl::coreHitTestResultAt( 3582 HitTestResult WebViewImpl::coreHitTestResultAt(
3579 const WebPoint& pointInViewport) { 3583 const WebPoint& pointInViewport) {
3580 DocumentLifecycle::AllowThrottlingScope throttlingScope( 3584 DocumentLifecycle::AllowThrottlingScope throttlingScope(
3581 mainFrameImpl()->frame()->document()->lifecycle()); 3585 mainFrameImpl()->frame()->document()->lifecycle());
3582 FrameView* view = mainFrameImpl()->frameView(); 3586 FrameView* view = mainFrameImpl()->frameView();
3583 IntPoint pointInRootFrame = 3587 IntPoint pointInRootFrame =
(...skipping 964 matching lines...) Expand 10 before | Expand all | Expand 10 after
4548 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4552 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4549 return nullptr; 4553 return nullptr;
4550 return focusedFrame; 4554 return focusedFrame;
4551 } 4555 }
4552 4556
4553 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4557 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4554 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4558 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4555 } 4559 }
4556 4560
4557 } // namespace blink 4561 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698