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

Side by Side Diff: Source/web/WebLocalFrameImpl.h

Issue 1230533002: Fix virtual/override/final usage in Source/web/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebLeakDetector.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 class WebViewImpl; 68 class WebViewImpl;
69 struct FrameLoadRequest; 69 struct FrameLoadRequest;
70 struct WebPrintParams; 70 struct WebPrintParams;
71 71
72 template <typename T> class WebVector; 72 template <typename T> class WebVector;
73 73
74 // Implementation of WebFrame, note that this is a reference counted object. 74 // Implementation of WebFrame, note that this is a reference counted object.
75 class WebLocalFrameImpl final : public RefCountedWillBeGarbageCollectedFinalized <WebLocalFrameImpl>, public WebLocalFrame { 75 class WebLocalFrameImpl final : public RefCountedWillBeGarbageCollectedFinalized <WebLocalFrameImpl>, public WebLocalFrame {
76 public: 76 public:
77 // WebFrame methods: 77 // WebFrame methods:
78 virtual bool isWebLocalFrame() const override; 78 bool isWebLocalFrame() const override;
79 virtual WebLocalFrame* toWebLocalFrame() override; 79 WebLocalFrame* toWebLocalFrame() override;
80 virtual bool isWebRemoteFrame() const override; 80 bool isWebRemoteFrame() const override;
81 virtual WebRemoteFrame* toWebRemoteFrame() override; 81 WebRemoteFrame* toWebRemoteFrame() override;
82 virtual void close() override; 82 void close() override;
83 virtual WebString uniqueName() const override; 83 WebString uniqueName() const override;
84 virtual WebString assignedName() const override; 84 WebString assignedName() const override;
85 virtual void setName(const WebString&) override; 85 void setName(const WebString&) override;
86 virtual WebVector<WebIconURL> iconURLs(int iconTypesMask) const override; 86 WebVector<WebIconURL> iconURLs(int iconTypesMask) const override;
87 virtual void setRemoteWebLayer(WebLayer*) override; 87 void setRemoteWebLayer(WebLayer*) override;
88 virtual void setContentSettingsClient(WebContentSettingsClient*) override; 88 void setContentSettingsClient(WebContentSettingsClient*) override;
89 virtual void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient *) override; 89 void setSharedWorkerRepositoryClient(WebSharedWorkerRepositoryClient*) overr ide;
90 virtual WebSize scrollOffset() const override; 90 WebSize scrollOffset() const override;
91 virtual void setScrollOffset(const WebSize&) override; 91 void setScrollOffset(const WebSize&) override;
92 virtual WebSize minimumScrollOffset() const override; 92 WebSize minimumScrollOffset() const override;
93 virtual WebSize maximumScrollOffset() const override; 93 WebSize maximumScrollOffset() const override;
94 virtual WebSize contentsSize() const override; 94 WebSize contentsSize() const override;
95 virtual bool hasVisibleContent() const override; 95 bool hasVisibleContent() const override;
96 virtual WebRect visibleContentRect() const override; 96 WebRect visibleContentRect() const override;
97 virtual bool hasHorizontalScrollbar() const override; 97 bool hasHorizontalScrollbar() const override;
98 virtual bool hasVerticalScrollbar() const override; 98 bool hasVerticalScrollbar() const override;
99 virtual WebView* view() const override; 99 WebView* view() const override;
100 virtual void setOpener(WebFrame*) override; 100 void setOpener(WebFrame*) override;
101 virtual WebDocument document() const override; 101 WebDocument document() const override;
102 virtual WebPerformance performance() const override; 102 WebPerformance performance() const override;
103 virtual bool dispatchBeforeUnloadEvent() override; 103 bool dispatchBeforeUnloadEvent() override;
104 virtual void dispatchUnloadEvent() override; 104 void dispatchUnloadEvent() override;
105 virtual NPObject* windowObject() const override; 105 NPObject* windowObject() const override;
106 virtual void bindToWindowObject(const WebString& name, NPObject*) override; 106 void bindToWindowObject(const WebString& name, NPObject*) override;
107 virtual void bindToWindowObject(const WebString& name, NPObject*, void*) ove rride; 107 void bindToWindowObject(const WebString& name, NPObject*, void*) override;
108 virtual void executeScript(const WebScriptSource&) override; 108 void executeScript(const WebScriptSource&) override;
109 virtual void executeScriptInIsolatedWorld( 109 void executeScriptInIsolatedWorld(
110 int worldID, const WebScriptSource* sources, unsigned numSources, 110 int worldID, const WebScriptSource* sources, unsigned numSources,
111 int extensionGroup) override; 111 int extensionGroup) override;
112 virtual void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOr igin&) override; 112 void setIsolatedWorldSecurityOrigin(int worldID, const WebSecurityOrigin&) o verride;
113 virtual void setIsolatedWorldContentSecurityPolicy(int worldID, const WebStr ing&) override; 113 void setIsolatedWorldContentSecurityPolicy(int worldID, const WebString&) ov erride;
114 virtual void setIsolatedWorldHumanReadableName(int worldID, const WebString& ) override; 114 void setIsolatedWorldHumanReadableName(int worldID, const WebString&) overri de;
115 virtual void addMessageToConsole(const WebConsoleMessage&) override; 115 void addMessageToConsole(const WebConsoleMessage&) override;
116 virtual void collectGarbage() override; 116 void collectGarbage() override;
117 virtual bool checkIfRunInsecureContent(const WebURL&) const override; 117 bool checkIfRunInsecureContent(const WebURL&) const override;
118 virtual v8::Local<v8::Value> executeScriptAndReturnValue( 118 v8::Local<v8::Value> executeScriptAndReturnValue(
119 const WebScriptSource&) override; 119 const WebScriptSource&) override;
120 virtual void requestExecuteScriptAndReturnValue( 120 void requestExecuteScriptAndReturnValue(
121 const WebScriptSource&, bool userGesture, WebScriptExecutionCallback*) o verride; 121 const WebScriptSource&, bool userGesture, WebScriptExecutionCallback*) o verride;
122 virtual void executeScriptInIsolatedWorld( 122 void executeScriptInIsolatedWorld(
123 int worldID, const WebScriptSource* sourcesIn, unsigned numSources, 123 int worldID, const WebScriptSource* sourcesIn, unsigned numSources,
124 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override; 124 int extensionGroup, WebVector<v8::Local<v8::Value>>* results) override;
125 virtual void requestExecuteScriptInIsolatedWorld( 125 void requestExecuteScriptInIsolatedWorld(
126 int worldID, const WebScriptSource* sourceIn, unsigned numSources, 126 int worldID, const WebScriptSource* sourceIn, unsigned numSources,
127 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) overr ide; 127 int extensionGroup, bool userGesture, WebScriptExecutionCallback*) overr ide;
128 virtual v8::Local<v8::Value> callFunctionEvenIfScriptDisabled( 128 v8::Local<v8::Value> callFunctionEvenIfScriptDisabled(
129 v8::Local<v8::Function>, 129 v8::Local<v8::Function>,
130 v8::Local<v8::Value>, 130 v8::Local<v8::Value>,
131 int argc, 131 int argc,
132 v8::Local<v8::Value> argv[]) override; 132 v8::Local<v8::Value> argv[]) override;
133 virtual v8::Local<v8::Context> mainWorldScriptContext() const override; 133 v8::Local<v8::Context> mainWorldScriptContext() const override;
134 virtual void reload(bool ignoreCache) override; 134 void reload(bool ignoreCache) override;
135 virtual void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCac he) override; 135 void reloadWithOverrideURL(const WebURL& overrideUrl, bool ignoreCache) over ride;
136 virtual void reloadImage(const WebNode&) override; 136 void reloadImage(const WebNode&) override;
137 virtual void loadRequest(const WebURLRequest&) override; 137 void loadRequest(const WebURLRequest&) override;
138 virtual void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebU RLRequest::CachePolicy) override; 138 void loadHistoryItem(const WebHistoryItem&, WebHistoryLoadType, WebURLReques t::CachePolicy) override;
139 virtual void loadData( 139 void loadData(
140 const WebData&, const WebString& mimeType, const WebString& textEncoding , 140 const WebData&, const WebString& mimeType, const WebString& textEncoding ,
141 const WebURL& baseURL, const WebURL& unreachableURL, bool replace) overr ide; 141 const WebURL& baseURL, const WebURL& unreachableURL, bool replace) overr ide;
142 virtual void loadHTMLString( 142 void loadHTMLString(
143 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL , 143 const WebData& html, const WebURL& baseURL, const WebURL& unreachableURL ,
144 bool replace) override; 144 bool replace) override;
145 virtual void stopLoading() override; 145 void stopLoading() override;
146 virtual WebDataSource* provisionalDataSource() const override; 146 WebDataSource* provisionalDataSource() const override;
147 virtual WebDataSource* dataSource() const override; 147 WebDataSource* dataSource() const override;
148 virtual void enableViewSourceMode(bool enable) override; 148 void enableViewSourceMode(bool enable) override;
149 virtual bool isViewSourceModeEnabled() const override; 149 bool isViewSourceModeEnabled() const override;
150 virtual void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) o verride; 150 void setReferrerForRequest(WebURLRequest&, const WebURL& referrer) override;
151 virtual void dispatchWillSendRequest(WebURLRequest&) override; 151 void dispatchWillSendRequest(WebURLRequest&) override;
152 virtual WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override; 152 WebURLLoader* createAssociatedURLLoader(const WebURLLoaderOptions&) override ;
153 virtual unsigned unloadListenerCount() const override; 153 unsigned unloadListenerCount() const override;
154 virtual void replaceSelection(const WebString&) override; 154 void replaceSelection(const WebString&) override;
155 virtual void insertText(const WebString&) override; 155 void insertText(const WebString&) override;
156 virtual void setMarkedText(const WebString&, unsigned location, unsigned len gth) override; 156 void setMarkedText(const WebString&, unsigned location, unsigned length) ove rride;
157 virtual void unmarkText() override; 157 void unmarkText() override;
158 virtual bool hasMarkedText() const override; 158 bool hasMarkedText() const override;
159 virtual WebRange markedRange() const override; 159 WebRange markedRange() const override;
160 virtual bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect&) const override; 160 bool firstRectForCharacterRange(unsigned location, unsigned length, WebRect& ) const override;
161 virtual size_t characterIndexForPoint(const WebPoint&) const override; 161 size_t characterIndexForPoint(const WebPoint&) const override;
162 virtual bool executeCommand(const WebString&, const WebNode& = WebNode()) ov erride; 162 bool executeCommand(const WebString&, const WebNode& = WebNode()) override;
163 virtual bool executeCommand(const WebString&, const WebString& value, const WebNode& = WebNode()) override; 163 bool executeCommand(const WebString&, const WebString& value, const WebNode& = WebNode()) override;
164 virtual bool isCommandEnabled(const WebString&) const override; 164 bool isCommandEnabled(const WebString&) const override;
165 virtual void enableContinuousSpellChecking(bool) override; 165 void enableContinuousSpellChecking(bool) override;
166 virtual bool isContinuousSpellCheckingEnabled() const override; 166 bool isContinuousSpellCheckingEnabled() const override;
167 virtual void requestTextChecking(const WebElement&) override; 167 void requestTextChecking(const WebElement&) override;
168 virtual void replaceMisspelledRange(const WebString&) override; 168 void replaceMisspelledRange(const WebString&) override;
169 virtual void removeSpellingMarkers() override; 169 void removeSpellingMarkers() override;
170 virtual bool hasSelection() const override; 170 bool hasSelection() const override;
171 virtual WebRange selectionRange() const override; 171 WebRange selectionRange() const override;
172 virtual WebString selectionAsText() const override; 172 WebString selectionAsText() const override;
173 virtual WebString selectionAsMarkup() const override; 173 WebString selectionAsMarkup() const override;
174 virtual bool selectWordAroundCaret() override; 174 bool selectWordAroundCaret() override;
175 virtual void selectRange(const WebPoint& base, const WebPoint& extent) overr ide; 175 void selectRange(const WebPoint& base, const WebPoint& extent) override;
176 virtual void selectRange(const WebRange&) override; 176 void selectRange(const WebRange&) override;
177 virtual void moveRangeSelectionExtent(const WebPoint&) override; 177 void moveRangeSelectionExtent(const WebPoint&) override;
178 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent , WebFrame::TextGranularity = CharacterGranularity) override; 178 void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFra me::TextGranularity = CharacterGranularity) override;
179 virtual void moveCaretSelection(const WebPoint&) override; 179 void moveCaretSelection(const WebPoint&) override;
180 virtual bool setEditableSelectionOffsets(int start, int end) override; 180 bool setEditableSelectionOffsets(int start, int end) override;
181 virtual bool setCompositionFromExistingText(int compositionStart, int compos itionEnd, const WebVector<WebCompositionUnderline>& underlines) override; 181 bool setCompositionFromExistingText(int compositionStart, int compositionEnd , const WebVector<WebCompositionUnderline>& underlines) override;
182 virtual void extendSelectionAndDelete(int before, int after) override; 182 void extendSelectionAndDelete(int before, int after) override;
183 virtual void setCaretVisible(bool) override; 183 void setCaretVisible(bool) override;
184 virtual int printBegin(const WebPrintParams&, const WebNode& constrainToNode ) override; 184 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de;
185 virtual float printPage(int pageToPrint, WebCanvas*) override; 185 float printPage(int pageToPrint, WebCanvas*) override;
186 virtual float getPrintPageShrink(int page) override; 186 float getPrintPageShrink(int page) override;
187 virtual void printEnd() override; 187 void printEnd() override;
188 virtual bool isPrintScalingDisabledForPlugin(const WebNode&) override; 188 bool isPrintScalingDisabledForPlugin(const WebNode&) override;
189 virtual bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOp tions*) override; 189 bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) override;
190 virtual bool hasCustomPageSizeStyle(int pageIndex) override; 190 bool hasCustomPageSizeStyle(int pageIndex) override;
191 virtual bool isPageBoxVisible(int pageIndex) override; 191 bool isPageBoxVisible(int pageIndex) override;
192 virtual void pageSizeAndMarginsInPixels( 192 void pageSizeAndMarginsInPixels(
193 int pageIndex, 193 int pageIndex,
194 WebSize& pageSize, 194 WebSize& pageSize,
195 int& marginTop, 195 int& marginTop,
196 int& marginRight, 196 int& marginRight,
197 int& marginBottom, 197 int& marginBottom,
198 int& marginLeft) override; 198 int& marginLeft) override;
199 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) override; 199 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e;
200 virtual void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; 200 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override;
201 virtual bool find( 201 bool find(
202 int identifier, const WebString& searchText, const WebFindOptions&, 202 int identifier, const WebString& searchText, const WebFindOptions&,
203 bool wrapWithinFrame, WebRect* selectionRect) override; 203 bool wrapWithinFrame, WebRect* selectionRect) override;
204 virtual void stopFinding(bool clearSelection) override; 204 void stopFinding(bool clearSelection) override;
205 virtual void scopeStringMatches( 205 void scopeStringMatches(
206 int identifier, const WebString& searchText, const WebFindOptions&, 206 int identifier, const WebString& searchText, const WebFindOptions&,
207 bool reset) override; 207 bool reset) override;
208 virtual void cancelPendingScopingEffort() override; 208 void cancelPendingScopingEffort() override;
209 virtual void increaseMatchCount(int count, int identifier) override; 209 void increaseMatchCount(int count, int identifier) override;
210 virtual void resetMatchCount() override; 210 void resetMatchCount() override;
211 virtual int findMatchMarkersVersion() const override; 211 int findMatchMarkersVersion() const override;
212 virtual WebFloatRect activeFindMatchRect() override; 212 WebFloatRect activeFindMatchRect() override;
213 virtual void findMatchRects(WebVector<WebFloatRect>&) override; 213 void findMatchRects(WebVector<WebFloatRect>&) override;
214 virtual int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionR ect) override; 214 int selectNearestFindMatch(const WebFloatPoint&, WebRect* selectionRect) ove rride;
215 virtual void setTickmarks(const WebVector<WebRect>&) override; 215 void setTickmarks(const WebVector<WebRect>&) override;
216 216
217 virtual void dispatchMessageEventWithOriginCheck( 217 void dispatchMessageEventWithOriginCheck(
218 const WebSecurityOrigin& intendedTargetOrigin, 218 const WebSecurityOrigin& intendedTargetOrigin,
219 const WebDOMEvent&) override; 219 const WebDOMEvent&) override;
220 220
221 virtual WebString contentAsText(size_t maxChars) const override; 221 WebString contentAsText(size_t maxChars) const override;
222 virtual WebString contentAsMarkup() const override; 222 WebString contentAsMarkup() const override;
223 virtual WebString layoutTreeAsText(LayoutAsTextControls toShow = LayoutAsTex tNormal) const override; 223 WebString layoutTreeAsText(LayoutAsTextControls toShow = LayoutAsTextNormal) const override;
224 224
225 virtual WebString markerTextForListItem(const WebElement&) const override; 225 WebString markerTextForListItem(const WebElement&) const override;
226 virtual WebRect selectionBoundsRect() const override; 226 WebRect selectionBoundsRect() const override;
227 227
228 virtual bool selectionStartHasSpellingMarkerFor(int from, int length) const override; 228 bool selectionStartHasSpellingMarkerFor(int from, int length) const override ;
229 virtual WebString layerTreeAsText(bool showDebugInfo = false) const override ; 229 WebString layerTreeAsText(bool showDebugInfo = false) const override;
230 230
231 virtual void registerTestInterface(const WebString& name, WebTestInterfaceFa ctory*) override; 231 void registerTestInterface(const WebString& name, WebTestInterfaceFactory*) override;
232 232
233 // Creates a test interface by name if available, returns an empty handle 233 // Creates a test interface by name if available, returns an empty handle
234 // for unknown names. 234 // for unknown names.
235 v8::Local<v8::Value> createTestInterface(const AtomicString& name); 235 v8::Local<v8::Value> createTestInterface(const AtomicString& name);
236 236
237 // WebLocalFrame methods: 237 // WebLocalFrame methods:
238 virtual void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString & name, WebSandboxFlags) override; 238 void initializeToReplaceRemoteFrame(WebRemoteFrame*, const WebString& name, WebSandboxFlags) override;
239 virtual void setAutofillClient(WebAutofillClient*) override; 239 void setAutofillClient(WebAutofillClient*) override;
240 virtual WebAutofillClient* autofillClient() override; 240 WebAutofillClient* autofillClient() override;
241 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) override; 241 void setDevToolsAgentClient(WebDevToolsAgentClient*) override;
242 virtual WebDevToolsAgent* devToolsAgent() override; 242 WebDevToolsAgent* devToolsAgent() override;
243 virtual void sendPings(const WebNode& linkNode, const WebURL& destinationURL ) override; 243 void sendPings(const WebNode& linkNode, const WebURL& destinationURL) overri de;
244 virtual WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRe quest::CachePolicy) 244 WebURLRequest requestFromHistoryItem(const WebHistoryItem&, WebURLRequest::C achePolicy)
245 const override; 245 const override;
246 virtual WebURLRequest requestForReload(WebFrameLoadType, const WebURL&) cons t override; 246 WebURLRequest requestForReload(WebFrameLoadType, const WebURL&) const overri de;
247 virtual void load(const WebURLRequest&, WebFrameLoadType, const WebHistoryIt em&, 247 void load(const WebURLRequest&, WebFrameLoadType, const WebHistoryItem&,
248 WebHistoryLoadType) override; 248 WebHistoryLoadType) override;
249 virtual bool isLoading() const override; 249 bool isLoading() const override;
250 virtual bool isResourceLoadInProgress() const override; 250 bool isResourceLoadInProgress() const override;
251 virtual void setCommittedFirstRealLoad() override; 251 void setCommittedFirstRealLoad() override;
252 virtual void sendOrientationChangeEvent() override; 252 void sendOrientationChangeEvent() override;
253 virtual void willShowInstallBannerPrompt(int requestId, const WebVector<WebS tring>& platforms, WebAppBannerPromptReply*) override; 253 void willShowInstallBannerPrompt(int requestId, const WebVector<WebString>& platforms, WebAppBannerPromptReply*) override;
254 virtual WebSandboxFlags effectiveSandboxFlags() const override; 254 WebSandboxFlags effectiveSandboxFlags() const override;
255 void requestRunTask(WebSuspendableTask*) const override; 255 void requestRunTask(WebSuspendableTask*) const override;
256 256
257 void willBeDetached(); 257 void willBeDetached();
258 void willDetachParent(); 258 void willDetachParent();
259 259
260 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*); 260 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*);
261 virtual ~WebLocalFrameImpl(); 261 ~WebLocalFrameImpl() override;
262 262
263 PassRefPtrWillBeRawPtr<LocalFrame> initializeCoreFrame(FrameHost*, FrameOwne r*, const AtomicString& name, const AtomicString& fallbackName); 263 PassRefPtrWillBeRawPtr<LocalFrame> initializeCoreFrame(FrameHost*, FrameOwne r*, const AtomicString& name, const AtomicString& fallbackName);
264 264
265 PassRefPtrWillBeRawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicString& name, HTMLFrameOwnerElement*); 265 PassRefPtrWillBeRawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicString& name, HTMLFrameOwnerElement*);
266 266
267 void didChangeContentsSize(const IntSize&); 267 void didChangeContentsSize(const IntSize&);
268 268
269 void createFrameView(); 269 void createFrameView();
270 270
271 static WebLocalFrameImpl* fromFrame(LocalFrame*); 271 static WebLocalFrameImpl* fromFrame(LocalFrame*);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // nothing to focus we focus the first focusable node in the range. This 308 // nothing to focus we focus the first focusable node in the range. This
309 // allows us to set focus to a link (when we find text inside a link), which 309 // allows us to set focus to a link (when we find text inside a link), which
310 // allows us to navigate by pressing Enter after closing the Find box. 310 // allows us to navigate by pressing Enter after closing the Find box.
311 void setFindEndstateFocusAndSelection(); 311 void setFindEndstateFocusAndSelection();
312 312
313 void didFail(const ResourceError&, bool wasProvisional, HistoryCommitType); 313 void didFail(const ResourceError&, bool wasProvisional, HistoryCommitType);
314 314
315 // Sets whether the WebLocalFrameImpl allows its document to be scrolled. 315 // Sets whether the WebLocalFrameImpl allows its document to be scrolled.
316 // If the parameter is true, allow the document to be scrolled. 316 // If the parameter is true, allow the document to be scrolled.
317 // Otherwise, disallow scrolling. 317 // Otherwise, disallow scrolling.
318 virtual void setCanHaveScrollbars(bool) override; 318 void setCanHaveScrollbars(bool) override;
319 319
320 LocalFrame* frame() const { return m_frame.get(); } 320 LocalFrame* frame() const { return m_frame.get(); }
321 WebFrameClient* client() const { return m_client; } 321 WebFrameClient* client() const { return m_client; }
322 void setClient(WebFrameClient* client) { m_client = client; } 322 void setClient(WebFrameClient* client) { m_client = client; }
323 323
324 WebContentSettingsClient* contentSettingsClient() { return m_contentSettings Client; } 324 WebContentSettingsClient* contentSettingsClient() { return m_contentSettings Client; }
325 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { ret urn m_sharedWorkerRepositoryClient.get(); } 325 SharedWorkerRepositoryClientImpl* sharedWorkerRepositoryClient() const { ret urn m_sharedWorkerRepositoryClient.get(); }
326 326
327 void setInputEventsTransformForEmulation(const IntSize&, float); 327 void setInputEventsTransformForEmulation(const IntSize&, float);
328 328
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 GC_PLUGIN_IGNORE("340522") 406 GC_PLUGIN_IGNORE("340522")
407 Persistent<WebLocalFrameImpl> m_selfKeepAlive; 407 Persistent<WebLocalFrameImpl> m_selfKeepAlive;
408 #endif 408 #endif
409 }; 409 };
410 410
411 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 411 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
412 412
413 } // namespace blink 413 } // namespace blink
414 414
415 #endif 415 #endif
OLDNEW
« no previous file with comments | « Source/web/WebLeakDetector.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698