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

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

Issue 2154233003: Rewrite YouTube Flash embeds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 5 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 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 720 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
721 721
722 // Visibility ---------------------------------------------------------- 722 // Visibility ----------------------------------------------------------
723 723
724 // Returns the current visibility of the WebFrame. 724 // Returns the current visibility of the WebFrame.
725 virtual WebPageVisibilityState visibilityState() const 725 virtual WebPageVisibilityState visibilityState() const
726 { 726 {
727 return WebPageVisibilityStateVisible; 727 return WebPageVisibilityStateVisible;
728 } 728 }
729 729
730 // Overwrites the given URL to use an HTML5 video player if possible.
731 virtual WebString overrideFlashEmbedWithHTML(const WebString& url)
732 {
733 return url;
mlamouri (slow - plz ping) 2016/07/21 15:55:08 Shouldn't it be the empty string?
kdsilva 2016/07/22 13:55:58 Done.
734 }
735
730 protected: 736 protected:
731 virtual ~WebFrameClient() { } 737 virtual ~WebFrameClient() { }
732 }; 738 };
733 739
734 } // namespace blink 740 } // namespace blink
735 741
736 #endif 742 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698