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

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

Issue 2139303002: Clean up around methods to enter/exit fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('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/platform/WebInsecureRequestPolicy.h" 8 #include "public/platform/WebInsecureRequestPolicy.h"
9 #include "public/web/WebContentSecurityPolicy.h" 9 #include "public/web/WebContentSecurityPolicy.h"
10 #include "public/web/WebFrame.h" 10 #include "public/web/WebFrame.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void didStopLoading() = 0; 61 virtual void didStopLoading() = 0;
62 62
63 // Returns true if this frame should be ignored during hittesting. 63 // Returns true if this frame should be ignored during hittesting.
64 virtual bool isIgnoredForHitTest() const = 0; 64 virtual bool isIgnoredForHitTest() const = 0;
65 65
66 // This is called in OOPIF scenarios when an element contained in this 66 // This is called in OOPIF scenarios when an element contained in this
67 // frame is about to enter fullscreen. This frame's owner 67 // frame is about to enter fullscreen. This frame's owner
68 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling 68 // corresponds to the HTMLFrameOwnerElement to be fullscreened. Calling
69 // this prepares FullscreenController to enter fullscreen for that frame 69 // this prepares FullscreenController to enter fullscreen for that frame
70 // owner. 70 // owner.
71 virtual void willEnterFullScreen() = 0; 71 virtual void willEnterFullscreen() = 0;
72 72
73 // Temporary method to allow embedders to get the script context of a 73 // Temporary method to allow embedders to get the script context of a
74 // remote frame. This should only be used by legacy code that has not yet 74 // remote frame. This should only be used by legacy code that has not yet
75 // migrated over to the new OOPI infrastructure. 75 // migrated over to the new OOPI infrastructure.
76 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0; 76 virtual v8::Local<v8::Context> deprecatedMainWorldScriptContext() const = 0;
77 77
78 protected: 78 protected:
79 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { } 79 explicit WebRemoteFrame(WebTreeScopeType scope) : WebFrame(scope) { }
80 80
81 // Inherited from WebFrame, but intentionally hidden: it never makes sense 81 // Inherited from WebFrame, but intentionally hidden: it never makes sense
82 // to call these on a WebRemoteFrame. 82 // to call these on a WebRemoteFrame.
83 bool isWebLocalFrame() const override = 0; 83 bool isWebLocalFrame() const override = 0;
84 WebLocalFrame* toWebLocalFrame() override = 0; 84 WebLocalFrame* toWebLocalFrame() override = 0;
85 bool isWebRemoteFrame() const override = 0; 85 bool isWebRemoteFrame() const override = 0;
86 WebRemoteFrame* toWebRemoteFrame() override = 0; 86 WebRemoteFrame* toWebRemoteFrame() override = 0;
87 }; 87 };
88 88
89 } // namespace blink 89 } // namespace blink
90 90
91 #endif // WebRemoteFrame_h 91 #endif // WebRemoteFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698