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

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

Issue 1991273003: Fire visibilityChange event on out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "WebNavigationType.h" 44 #include "WebNavigationType.h"
45 #include "WebNavigatorContentUtilsClient.h" 45 #include "WebNavigatorContentUtilsClient.h"
46 #include "WebSandboxFlags.h" 46 #include "WebSandboxFlags.h"
47 #include "WebTextDirection.h" 47 #include "WebTextDirection.h"
48 #include "public/platform/BlameContext.h" 48 #include "public/platform/BlameContext.h"
49 #include "public/platform/WebCommon.h" 49 #include "public/platform/WebCommon.h"
50 #include "public/platform/WebEffectiveConnectionType.h" 50 #include "public/platform/WebEffectiveConnectionType.h"
51 #include "public/platform/WebFileSystem.h" 51 #include "public/platform/WebFileSystem.h"
52 #include "public/platform/WebFileSystemType.h" 52 #include "public/platform/WebFileSystemType.h"
53 #include "public/platform/WebLoadingBehaviorFlag.h" 53 #include "public/platform/WebLoadingBehaviorFlag.h"
54 #include "public/platform/WebPageVisibilityState.h"
54 #include "public/platform/WebSecurityOrigin.h" 55 #include "public/platform/WebSecurityOrigin.h"
55 #include "public/platform/WebSetSinkIdCallbacks.h" 56 #include "public/platform/WebSetSinkIdCallbacks.h"
56 #include "public/platform/WebStorageQuotaCallbacks.h" 57 #include "public/platform/WebStorageQuotaCallbacks.h"
57 #include "public/platform/WebStorageQuotaType.h" 58 #include "public/platform/WebStorageQuotaType.h"
58 #include "public/platform/WebURLError.h" 59 #include "public/platform/WebURLError.h"
59 #include "public/platform/WebURLRequest.h" 60 #include "public/platform/WebURLRequest.h"
60 #include "public/web/WebContentSecurityPolicy.h" 61 #include "public/web/WebContentSecurityPolicy.h"
61 #include <v8.h> 62 #include <v8.h>
62 63
63 namespace blink { 64 namespace blink {
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 { 704 {
704 if (callbacks) { 705 if (callbacks) {
705 callbacks->onError(WebSetSinkIdError::NotSupported); 706 callbacks->onError(WebSetSinkIdError::NotSupported);
706 delete callbacks; 707 delete callbacks;
707 } 708 }
708 } 709 }
709 710
710 // Mojo ---------------------------------------------------------------- 711 // Mojo ----------------------------------------------------------------
711 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 712 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
712 713
714 // Visibility -----------------------------------------------------------
kenrb 2016/05/25 20:29:14 Nit: there is one more hyphen in this line than th
lfg 2016/05/31 19:54:01 Done.
715
716 // Returns the current visibility of the WebView.
717 virtual WebPageVisibilityState visibilityState() const
718 {
719 return WebPageVisibilityStateVisible;
720 }
721
713 protected: 722 protected:
714 virtual ~WebFrameClient() { } 723 virtual ~WebFrameClient() { }
715 }; 724 };
716 725
717 } // namespace blink 726 } // namespace blink
718 727
719 #endif 728 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698