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

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

Issue 1836973003: Move download messages from Renderer to Frame filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RenderViewHostTest Created 4 years, 6 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 /* 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e; 186 WebString pageProperty(const WebString& propertyName, int pageIndex) overrid e;
187 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override; 187 void printPagesWithBoundaries(WebCanvas*, const WebSize&) override;
188 188
189 void dispatchMessageEventWithOriginCheck( 189 void dispatchMessageEventWithOriginCheck(
190 const WebSecurityOrigin& intendedTargetOrigin, 190 const WebSecurityOrigin& intendedTargetOrigin,
191 const WebDOMEvent&) override; 191 const WebDOMEvent&) override;
192 192
193 WebRect selectionBoundsRect() const override; 193 WebRect selectionBoundsRect() const override;
194 194
195 bool selectionStartHasSpellingMarkerFor(int from, int length) const override ; 195 bool selectionStartHasSpellingMarkerFor(int from, int length) const override ;
196 void copyImageAt(const WebPoint&) override;
197 void saveImageAt(const WebPoint&) override;
196 WebString layerTreeAsText(bool showDebugInfo = false) const override; 198 WebString layerTreeAsText(bool showDebugInfo = false) const override;
197 199
198 WebFrameImplBase* toImplBase() override { return this; } 200 WebFrameImplBase* toImplBase() override { return this; }
199 201
200 // WebLocalFrame methods: 202 // WebLocalFrame methods:
201 void setAutofillClient(WebAutofillClient*) override; 203 void setAutofillClient(WebAutofillClient*) override;
202 WebAutofillClient* autofillClient() override; 204 WebAutofillClient* autofillClient() override;
203 void setDevToolsAgentClient(WebDevToolsAgentClient*) override; 205 void setDevToolsAgentClient(WebDevToolsAgentClient*) override;
204 WebDevToolsAgent* devToolsAgent() override; 206 WebDevToolsAgent* devToolsAgent() override;
205 WebLocalFrameImpl* localRoot() override; 207 WebLocalFrameImpl* localRoot() override;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 bool isWebLocalFrame() const override; 345 bool isWebLocalFrame() const override;
344 WebLocalFrame* toWebLocalFrame() override; 346 WebLocalFrame* toWebLocalFrame() override;
345 bool isWebRemoteFrame() const override; 347 bool isWebRemoteFrame() const override;
346 WebRemoteFrame* toWebRemoteFrame() override; 348 WebRemoteFrame* toWebRemoteFrame() override;
347 349
348 // Sets the local core frame and registers destruction observers. 350 // Sets the local core frame and registers destruction observers.
349 void setCoreFrame(LocalFrame*); 351 void setCoreFrame(LocalFrame*);
350 352
351 void loadJavaScriptURL(const KURL&); 353 void loadJavaScriptURL(const KURL&);
352 354
355 HitTestResult hitTestResultForVisualViewportPos(const IntPoint&);
356
353 WebPlugin* focusedPluginIfInputMethodSupported(); 357 WebPlugin* focusedPluginIfInputMethodSupported();
354 ScrollableArea* layoutViewportScrollableArea() const; 358 ScrollableArea* layoutViewportScrollableArea() const;
355 359
356 // Returns true if the frame is focused. 360 // Returns true if the frame is focused.
357 bool isFocused() const; 361 bool isFocused() const;
358 362
359 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; 363 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl;
360 364
361 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This 365 // The embedder retains a reference to the WebCore LocalFrame while it is ac tive in the DOM. This
362 // reference is released when the frame is removed from the DOM or the entir e page is closed. 366 // reference is released when the frame is removed from the DOM or the entir e page is closed.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Accomplish that by keeping a self-referential Persistent<>. It is 398 // Accomplish that by keeping a self-referential Persistent<>. It is
395 // cleared upon close(). 399 // cleared upon close().
396 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 400 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
397 }; 401 };
398 402
399 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 403 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
400 404
401 } // namespace blink 405 } // namespace blink
402 406
403 #endif 407 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698