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

Side by Side Diff: Source/core/loader/EmptyClients.h

Issue 1132133009: Plumb whether or not a frame is in shadow DOM to the embedder. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/FrameClient.h ('k') | Source/web/FrameLoaderClientImpl.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 /* 1 /*
2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 }; 156 };
157 157
158 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient { 158 class CORE_EXPORT EmptyFrameLoaderClient : public FrameLoaderClient {
159 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED(EmptyF rameLoaderClient); 159 WTF_MAKE_NONCOPYABLE(EmptyFrameLoaderClient); WTF_MAKE_FAST_ALLOCATED(EmptyF rameLoaderClient);
160 public: 160 public:
161 EmptyFrameLoaderClient() { } 161 EmptyFrameLoaderClient() { }
162 virtual ~EmptyFrameLoaderClient() { } 162 virtual ~EmptyFrameLoaderClient() { }
163 163
164 virtual bool hasWebView() const override { return true; } // mainly for asse rtions 164 virtual bool hasWebView() const override { return true; } // mainly for asse rtions
165 165
166 virtual bool inShadowTree() const override { return false; }
167
166 virtual Frame* opener() const override { return 0; } 168 virtual Frame* opener() const override { return 0; }
167 virtual void setOpener(Frame*) override { } 169 virtual void setOpener(Frame*) override { }
168 170
169 virtual Frame* parent() const override { return 0; } 171 virtual Frame* parent() const override { return 0; }
170 virtual Frame* top() const override { return 0; } 172 virtual Frame* top() const override { return 0; }
171 virtual Frame* previousSibling() const override { return 0; } 173 virtual Frame* previousSibling() const override { return 0; }
172 virtual Frame* nextSibling() const override { return 0; } 174 virtual Frame* nextSibling() const override { return 0; }
173 virtual Frame* firstChild() const override { return 0; } 175 virtual Frame* firstChild() const override { return 0; }
174 virtual Frame* lastChild() const override { return 0; } 176 virtual Frame* lastChild() const override { return 0; }
175 virtual void willBeDetached() override { } 177 virtual void willBeDetached() override { }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 virtual ~EmptyDragClient() {} 309 virtual ~EmptyDragClient() {}
308 virtual DragDestinationAction actionMaskForDrag(DragData*) override { return DragDestinationActionNone; } 310 virtual DragDestinationAction actionMaskForDrag(DragData*) override { return DragDestinationActionNone; }
309 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra nsfer*, LocalFrame*, bool) override { } 311 virtual void startDrag(DragImage*, const IntPoint&, const IntPoint&, DataTra nsfer*, LocalFrame*, bool) override { }
310 }; 312 };
311 313
312 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 314 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
313 315
314 } // namespace blink 316 } // namespace blink
315 317
316 #endif // EmptyClients_h 318 #endif // EmptyClients_h
OLDNEW
« no previous file with comments | « Source/core/frame/FrameClient.h ('k') | Source/web/FrameLoaderClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698