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

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

Issue 2021513002: Move willEnterFullscreen to WebRemoteFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment about user gestures Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebRemoteFrame_h 5 #ifndef WebRemoteFrame_h
6 #define WebRemoteFrame_h 6 #define WebRemoteFrame_h
7 7
8 #include "public/web/WebContentSecurityPolicy.h" 8 #include "public/web/WebContentSecurityPolicy.h"
9 #include "public/web/WebFrame.h" 9 #include "public/web/WebFrame.h"
10 #include "public/web/WebSandboxFlags.h" 10 #include "public/web/WebSandboxFlags.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0 ; 55 virtual void setReplicatedPotentiallyTrustworthyUniqueOrigin(bool) const = 0 ;
56 56
57 virtual void DispatchLoadEventForFrameOwner() const = 0; 57 virtual void DispatchLoadEventForFrameOwner() const = 0;
58 58
59 virtual void didStartLoading() = 0; 59 virtual void didStartLoading() = 0;
60 virtual void didStopLoading() = 0; 60 virtual void didStopLoading() = 0;
61 61
62 // Returns true if this frame should be ignored during hittesting. 62 // Returns true if this frame should be ignored during hittesting.
63 virtual bool isIgnoredForHitTest() const = 0; 63 virtual bool isIgnoredForHitTest() const = 0;
64 64
65 // This is called in OOPIF scenarios when an element contained in this
66 // frame is about to enter fullscreen. This frame's owner
67 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
68 // this prepares FullscreenController to enter fullscreen for that frame
69 // owner.
70 virtual void willEnterFullScreen() = 0;
71
65 // Temporary method to allow embedders to get the script context of a 72 // Temporary method to allow embedders to get the script context of a
66 // remote frame. This should only be used by legacy code that has not yet 73 // remote frame. This should only be used by legacy code that has not yet
67 // migrated over to the new OOPI infrastructure. 74 // migrated over to the new OOPI infrastructure.
68 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; 75 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0;
69 76
70 protected: 77 protected:
71 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } 78 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { }
72 79
73 // Inherited from WebFrame, but intentionally hidden: it never makes sense 80 // Inherited from WebFrame, but intentionally hidden: it never makes sense
74 // to call these on a WebRemoteFrame. 81 // to call these on a WebRemoteFrame.
75 bool isWebLocalFrame() const override = 0; 82 bool isWebLocalFrame() const override = 0;
76 WebLocalFrame* toWebLocalFrame() override = 0; 83 WebLocalFrame* toWebLocalFrame() override = 0;
77 bool isWebRemoteFrame() const override = 0; 84 bool isWebRemoteFrame() const override = 0;
78 WebRemoteFrame* toWebRemoteFrame() override = 0; 85 WebRemoteFrame* toWebRemoteFrame() override = 0;
79 }; 86 };
80 87
81 } // namespace blink 88 } // namespace blink
82 89
83 #endif // WebRemoteFrame_h 90 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698