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

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

Issue 1307013004: Propagate scrolling/marginwidth/marginheight property values to child frame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_unittests compile fix Created 5 years, 1 month 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 /* 1 /*
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebFrameClient_h 31 #ifndef WebFrameClient_h
32 #define WebFrameClient_h 32 #define WebFrameClient_h
33 33
34 #include "../platform/WebColor.h" 34 #include "../platform/WebColor.h"
35 #include "WebAXObject.h" 35 #include "WebAXObject.h"
36 #include "WebDOMMessageEvent.h" 36 #include "WebDOMMessageEvent.h"
37 #include "WebDataSource.h" 37 #include "WebDataSource.h"
38 #include "WebFrame.h" 38 #include "WebFrame.h"
39 #include "WebFrameOwnerProperties.h"
39 #include "WebHistoryCommitType.h" 40 #include "WebHistoryCommitType.h"
40 #include "WebHistoryItem.h" 41 #include "WebHistoryItem.h"
41 #include "WebIconURL.h" 42 #include "WebIconURL.h"
42 #include "WebNavigationPolicy.h" 43 #include "WebNavigationPolicy.h"
43 #include "WebNavigationType.h" 44 #include "WebNavigationType.h"
44 #include "WebNavigatorContentUtilsClient.h" 45 #include "WebNavigatorContentUtilsClient.h"
45 #include "WebSandboxFlags.h" 46 #include "WebSandboxFlags.h"
46 #include "WebTextDirection.h" 47 #include "WebTextDirection.h"
47 #include "public/platform/WebCommon.h" 48 #include "public/platform/WebCommon.h"
48 #include "public/platform/WebFileSystem.h" 49 #include "public/platform/WebFileSystem.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 // document of a main frame. After this, it is no longer safe to show a 147 // document of a main frame. After this, it is no longer safe to show a
147 // pending navigation's URL, because a URL spoof is possible. 148 // pending navigation's URL, because a URL spoof is possible.
148 virtual void didAccessInitialDocument(WebLocalFrame*) { } 149 virtual void didAccessInitialDocument(WebLocalFrame*) { }
149 150
150 // A child frame was created in this frame. This is called when the frame 151 // A child frame was created in this frame. This is called when the frame
151 // is created and initialized. Takes the name of the new frame, the parent 152 // is created and initialized. Takes the name of the new frame, the parent
152 // frame and returns a new WebFrame. The WebFrame is considered in-use 153 // frame and returns a new WebFrame. The WebFrame is considered in-use
153 // until frameDetached() is called on it. 154 // until frameDetached() is called on it.
154 // Note: If you override this, you should almost certainly be overriding 155 // Note: If you override this, you should almost certainly be overriding
155 // frameDetached(). 156 // frameDetached().
156 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags) { return nullptr; } 157 virtual WebFrame* createChildFrame(WebLocalFrame* parent, WebTreeScopeType, const WebString& frameName, WebSandboxFlags sandboxFlags, const WebFrameOwnerPro perties&) { return nullptr; }
157 158
158 // This frame has set its opener to another frame, or disowned the opener 159 // This frame has set its opener to another frame, or disowned the opener
159 // if opener is null. See http://html.spec.whatwg.org/#dom-opener. 160 // if opener is null. See http://html.spec.whatwg.org/#dom-opener.
160 virtual void didChangeOpener(WebFrame*) { } 161 virtual void didChangeOpener(WebFrame*) { }
161 162
162 // Specifies the reason for the detachment. 163 // Specifies the reason for the detachment.
163 enum class DetachType { Remove, Swap }; 164 enum class DetachType { Remove, Swap };
164 165
165 // This frame has been detached from the view, but has not been closed yet. 166 // This frame has been detached from the view, but has not been closed yet.
166 virtual void frameDetached(WebFrame*, DetachType) { } 167 virtual void frameDetached(WebFrame*, DetachType) { }
167 168
168 // This frame has become focused.. 169 // This frame has become focused..
169 virtual void frameFocused() { } 170 virtual void frameFocused() { }
170 171
171 // This frame is about to be closed. This is called after frameDetached, 172 // This frame is about to be closed. This is called after frameDetached,
172 // when the document is being unloaded, due to new one committing. 173 // when the document is being unloaded, due to new one committing.
173 virtual void willClose(WebFrame*) { } 174 virtual void willClose(WebFrame*) { }
174 175
175 // This frame's name has changed. 176 // This frame's name has changed.
176 virtual void didChangeName(WebLocalFrame*, const WebString&) { } 177 virtual void didChangeName(WebLocalFrame*, const WebString&) { }
177 178
178 // The sandbox flags have changed for a child frame of this frame. 179 // The sandbox flags have changed for a child frame of this frame.
179 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { } 180 virtual void didChangeSandboxFlags(WebFrame* childFrame, WebSandboxFlags fla gs) { }
180 181
182 // Some frame owner properties have changed for a child frame of this frame.
183 // Frame owner properties currently include: scrolling, marginwidth and
184 // marginheight.
185 virtual void didChangeFrameOwnerProperties(WebFrame* childFrame, const WebFr ameOwnerProperties&) { }
186
181 // Called when a watched CSS selector matches or stops matching. 187 // Called when a watched CSS selector matches or stops matching.
182 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } 188 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { }
183 189
184 190
185 // Console messages ---------------------------------------------------- 191 // Console messages ----------------------------------------------------
186 192
187 // Whether or not we should report a detailed message for the given source. 193 // Whether or not we should report a detailed message for the given source.
188 virtual bool shouldReportDetailedMessageForSource(const WebString& source) { return false; } 194 virtual bool shouldReportDetailedMessageForSource(const WebString& source) { return false; }
189 195
190 // A new message was added to the console. 196 // A new message was added to the console.
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 // WebUSB -------------------------------------------------------------- 680 // WebUSB --------------------------------------------------------------
675 virtual WebUSBClient* usbClient() { return nullptr; } 681 virtual WebUSBClient* usbClient() { return nullptr; }
676 682
677 protected: 683 protected:
678 virtual ~WebFrameClient() { } 684 virtual ~WebFrameClient() { }
679 }; 685 };
680 686
681 } // namespace blink 687 } // namespace blink
682 688
683 #endif 689 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrame.h ('k') | third_party/WebKit/public/web/WebFrameOwnerProperties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698