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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameOwner.h

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 // 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 FrameOwner_h 5 #ifndef FrameOwner_h
6 #define FrameOwner_h 6 #define FrameOwner_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/dom/SandboxFlags.h" 9 #include "core/dom/SandboxFlags.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 20 matching lines...) Expand all
31 virtual SandboxFlags getSandboxFlags() const = 0; 31 virtual SandboxFlags getSandboxFlags() const = 0;
32 virtual void dispatchLoad() = 0; 32 virtual void dispatchLoad() = 0;
33 33
34 // On load failure, a frame can ask its owner to render fallback content 34 // On load failure, a frame can ask its owner to render fallback content
35 // which replaces the frame contents. 35 // which replaces the frame contents.
36 virtual void renderFallbackContent() = 0; 36 virtual void renderFallbackContent() = 0;
37 37
38 virtual ScrollbarMode scrollingMode() const = 0; 38 virtual ScrollbarMode scrollingMode() const = 0;
39 virtual int marginWidth() const = 0; 39 virtual int marginWidth() const = 0;
40 virtual int marginHeight() const = 0; 40 virtual int marginHeight() const = 0;
41 virtual bool allowFullscreen() const = 0;
41 }; 42 };
42 43
43 class CORE_EXPORT DummyFrameOwner : public GarbageCollectedFinalized<DummyFrameO wner>, public FrameOwner { 44 class CORE_EXPORT DummyFrameOwner : public GarbageCollectedFinalized<DummyFrameO wner>, public FrameOwner {
44 USING_GARBAGE_COLLECTED_MIXIN(DummyFrameOwner); 45 USING_GARBAGE_COLLECTED_MIXIN(DummyFrameOwner);
45 public: 46 public:
46 static DummyFrameOwner* create() 47 static DummyFrameOwner* create()
47 { 48 {
48 return new DummyFrameOwner; 49 return new DummyFrameOwner;
49 } 50 }
50 51
51 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); } 52 DEFINE_INLINE_VIRTUAL_TRACE() { FrameOwner::trace(visitor); }
52 53
53 // FrameOwner overrides: 54 // FrameOwner overrides:
54 bool isLocal() const override { return false; } 55 bool isLocal() const override { return false; }
55 bool isRemote() const override { return false; } 56 bool isRemote() const override { return false; }
56 void setContentFrame(Frame&) override { } 57 void setContentFrame(Frame&) override { }
57 void clearContentFrame() override { } 58 void clearContentFrame() override { }
58 SandboxFlags getSandboxFlags() const override { return SandboxNone; } 59 SandboxFlags getSandboxFlags() const override { return SandboxNone; }
59 void dispatchLoad() override { } 60 void dispatchLoad() override { }
60 void renderFallbackContent() override { } 61 void renderFallbackContent() override { }
61 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; } 62 ScrollbarMode scrollingMode() const override { return ScrollbarAuto; }
62 int marginWidth() const override { return -1; } 63 int marginWidth() const override { return -1; }
63 int marginHeight() const override { return -1; } 64 int marginHeight() const override { return -1; }
65 bool allowFullscreen() const override { return false; }
64 }; 66 };
65 67
66 } // namespace blink 68 } // namespace blink
67 69
68 #endif // FrameOwner_h 70 #endif // FrameOwner_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/html/HTMLFrameElementBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698