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

Unified Diff: public/web/WebScopedWindowFocusAllowedIndicator.h

Issue 777483004: Bind Window focus ability to the ExecutionContext instead of the process. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sw_client_focus
Patch Set: rebase Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebScopedWindowFocusAllowedIndicator.h
diff --git a/public/web/WebScopedWindowFocusAllowedIndicator.h b/public/web/WebScopedWindowFocusAllowedIndicator.h
index ccb80b156819327527d48e469e0fd5385c451209..36cbe9439e6ae87c83e11df1fd27641df0d2e58c 100644
--- a/public/web/WebScopedWindowFocusAllowedIndicator.h
+++ b/public/web/WebScopedWindowFocusAllowedIndicator.h
@@ -35,18 +35,27 @@
namespace blink {
+class ScopedWindowFocusAllowedIndicator;
+class WebDocument;
class WindowFocusAllowedIndicator;
class WebScopedWindowFocusAllowedIndicator {
public:
+ explicit WebScopedWindowFocusAllowedIndicator(WebDocument* document) { initialize(document); }
+ // FIXME: this constructor is now deprecated. It will be removed as part of
+ // https://crbug.com/440740
WebScopedWindowFocusAllowedIndicator() { initialize(); }
~WebScopedWindowFocusAllowedIndicator() { reset(); }
private:
+ BLINK_EXPORT void initialize(WebDocument*);
BLINK_EXPORT void initialize();
BLINK_EXPORT void reset();
+ // FIXME: m_indicator is now deprecated. It will be removed as part of
+ // https://crbug.com/440740
WebPrivateOwnPtr<WindowFocusAllowedIndicator> m_indicator;
+ WebPrivateOwnPtr<ScopedWindowFocusAllowedIndicator> m_private;
};
}
« no previous file with comments | « Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698