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

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: 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "WebNavigatorContentUtilsClient.h" 46 #include "WebNavigatorContentUtilsClient.h"
47 #include "WebSandboxFlags.h" 47 #include "WebSandboxFlags.h"
48 #include "WebTextDirection.h" 48 #include "WebTextDirection.h"
49 #include "public/platform/BlameContext.h" 49 #include "public/platform/BlameContext.h"
50 #include "public/platform/WebCommon.h" 50 #include "public/platform/WebCommon.h"
51 #include "public/platform/WebEffectiveConnectionType.h" 51 #include "public/platform/WebEffectiveConnectionType.h"
52 #include "public/platform/WebFileSystem.h" 52 #include "public/platform/WebFileSystem.h"
53 #include "public/platform/WebFileSystemType.h" 53 #include "public/platform/WebFileSystemType.h"
54 #include "public/platform/WebInsecureRequestPolicy.h" 54 #include "public/platform/WebInsecureRequestPolicy.h"
55 #include "public/platform/WebLoadingBehaviorFlag.h" 55 #include "public/platform/WebLoadingBehaviorFlag.h"
56 #include "public/platform/WebPageVisibilityState.h"
56 #include "public/platform/WebSecurityOrigin.h" 57 #include "public/platform/WebSecurityOrigin.h"
57 #include "public/platform/WebSetSinkIdCallbacks.h" 58 #include "public/platform/WebSetSinkIdCallbacks.h"
58 #include "public/platform/WebStorageQuotaCallbacks.h" 59 #include "public/platform/WebStorageQuotaCallbacks.h"
59 #include "public/platform/WebStorageQuotaType.h" 60 #include "public/platform/WebStorageQuotaType.h"
60 #include "public/platform/WebURLError.h" 61 #include "public/platform/WebURLError.h"
61 #include "public/platform/WebURLRequest.h" 62 #include "public/platform/WebURLRequest.h"
62 #include "public/web/WebContentSecurityPolicy.h" 63 #include "public/web/WebContentSecurityPolicy.h"
63 #include <v8.h> 64 #include <v8.h>
64 65
65 namespace blink { 66 namespace blink {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 { 712 {
712 if (callbacks) { 713 if (callbacks) {
713 callbacks->onError(WebSetSinkIdError::NotSupported); 714 callbacks->onError(WebSetSinkIdError::NotSupported);
714 delete callbacks; 715 delete callbacks;
715 } 716 }
716 } 717 }
717 718
718 // Mojo ---------------------------------------------------------------- 719 // Mojo ----------------------------------------------------------------
719 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 720 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
720 721
722 // Visibility ----------------------------------------------------------
723
724 // Returns the current visibility of the WebFrame.
725 virtual WebPageVisibilityState visibilityState() const
726 {
727 return WebPageVisibilityStateVisible;
728 }
729
721 protected: 730 protected:
722 virtual ~WebFrameClient() { } 731 virtual ~WebFrameClient() { }
723 }; 732 };
724 733
725 } // namespace blink 734 } // namespace blink
726 735
727 #endif 736 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebViewTest.cpp ('k') | third_party/WebKit/public/web/WebFrameWidget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698