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

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

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Switched approach to use WebContentsImpl::WasRecentlyAudible 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void enableAutoResizeMode( 221 void enableAutoResizeMode(
222 const WebSize& minSize, 222 const WebSize& minSize,
223 const WebSize& maxSize) override; 223 const WebSize& maxSize) override;
224 void disableAutoResizeMode() override; 224 void disableAutoResizeMode() override;
225 void performMediaPlayerAction( 225 void performMediaPlayerAction(
226 const WebMediaPlayerAction& action, 226 const WebMediaPlayerAction& action,
227 const WebPoint& location) override; 227 const WebPoint& location) override;
228 void performPluginAction( 228 void performPluginAction(
229 const WebPluginAction&, 229 const WebPluginAction&,
230 const WebPoint&) override; 230 const WebPoint&) override;
231 void audioStateChanged(bool isAudioPlaying) override;
231 WebHitTestResult hitTestResultAt(const WebPoint&) override; 232 WebHitTestResult hitTestResultAt(const WebPoint&) override;
232 WebHitTestResult hitTestResultForTap(const WebPoint&, const WebSize&) overri de; 233 WebHitTestResult hitTestResultForTap(const WebPoint&, const WebSize&) overri de;
233 void dragSourceEndedAt( 234 void dragSourceEndedAt(
234 const WebPoint& clientPoint, 235 const WebPoint& clientPoint,
235 const WebPoint& screenPoint, 236 const WebPoint& screenPoint,
236 WebDragOperation) override; 237 WebDragOperation) override;
237 void dragSourceSystemDragEnded() override; 238 void dragSourceSystemDragEnded() override;
238 WebDragOperation dragTargetDragEnter( 239 WebDragOperation dragTargetDragEnter(
239 const WebDragData&, 240 const WebDragData&,
240 const WebPoint& clientPoint, 241 const WebPoint& clientPoint,
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; 764 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor;
764 }; 765 };
765 766
766 // We have no ways to check if the specified WebView is an instance of 767 // We have no ways to check if the specified WebView is an instance of
767 // WebViewImpl because WebViewImpl is the only implementation of WebView. 768 // WebViewImpl because WebViewImpl is the only implementation of WebView.
768 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 769 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
769 770
770 } // namespace blink 771 } // namespace blink
771 772
772 #endif 773 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698