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

Side by Side Diff: third_party/WebKit/public/web/WebView.h

Issue 2383473002: [scheduler] Teach scheduler about audio state (Closed)
Patch Set: Support out-of-process frames 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) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 // Performs the specified media player action on the node at the given 353 // Performs the specified media player action on the node at the given
354 // location. 354 // location.
355 virtual void performMediaPlayerAction(const WebMediaPlayerAction&, 355 virtual void performMediaPlayerAction(const WebMediaPlayerAction&,
356 const WebPoint& location) = 0; 356 const WebPoint& location) = 0;
357 357
358 // Performs the specified plugin action on the node at the given location. 358 // Performs the specified plugin action on the node at the given location.
359 virtual void performPluginAction(const WebPluginAction&, 359 virtual void performPluginAction(const WebPluginAction&,
360 const WebPoint& location) = 0; 360 const WebPoint& location) = 0;
361 361
362 // Notifies WebView when audio is started or stopped.
363 virtual void audioStateChanged(bool isAudioPlaying) = 0;
364
362 // Data exchange ------------------------------------------------------- 365 // Data exchange -------------------------------------------------------
363 366
364 // Do a hit test at given point and return the HitTestResult. 367 // Do a hit test at given point and return the HitTestResult.
365 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0; 368 virtual WebHitTestResult hitTestResultAt(const WebPoint&) = 0;
366 369
367 // Do a hit test equivalent to what would be done for a GestureTap event 370 // Do a hit test equivalent to what would be done for a GestureTap event
368 // that has width/height corresponding to the supplied |tapArea|. 371 // that has width/height corresponding to the supplied |tapArea|.
369 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint, 372 virtual WebHitTestResult hitTestResultForTap(const WebPoint& tapPoint,
370 const WebSize& tapArea) = 0; 373 const WebSize& tapArea) = 0;
371 374
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // completed. 534 // completed.
532 WebWidget* widget() { return this; } 535 WebWidget* widget() { return this; }
533 536
534 protected: 537 protected:
535 ~WebView() {} 538 ~WebView() {}
536 }; 539 };
537 540
538 } // namespace blink 541 } // namespace blink
539 542
540 #endif 543 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698