| OLD | NEW |
| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; | 228 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; |
| 229 | 229 |
| 230 // WebLocalFrame methods: | 230 // WebLocalFrame methods: |
| 231 virtual void addStyleSheetByURL(const WebString& url) OVERRIDE; | 231 virtual void addStyleSheetByURL(const WebString& url) OVERRIDE; |
| 232 | 232 |
| 233 void willDetachParent(); | 233 void willDetachParent(); |
| 234 | 234 |
| 235 static WebLocalFrameImpl* create(WebFrameClient*); | 235 static WebLocalFrameImpl* create(WebFrameClient*); |
| 236 virtual ~WebLocalFrameImpl(); | 236 virtual ~WebLocalFrameImpl(); |
| 237 | 237 |
| 238 PassRefPtr<LocalFrame> initializeWebCoreFrame(FrameHost*, FrameOwner*, const
AtomicString& name, const AtomicString& fallbackName); | 238 PassRefPtr<LocalFrame> initializeCoreFrame(FrameHost*, FrameOwner*, const At
omicString& name, const AtomicString& fallbackName); |
| 239 | 239 |
| 240 PassRefPtr<LocalFrame> createChildFrame( | 240 PassRefPtr<LocalFrame> createChildFrame( |
| 241 const FrameLoadRequest&, HTMLFrameOwnerElement*); | 241 const FrameLoadRequest&, HTMLFrameOwnerElement*); |
| 242 | 242 |
| 243 void didChangeContentsSize(const IntSize&); | 243 void didChangeContentsSize(const IntSize&); |
| 244 | 244 |
| 245 void createFrameView(); | 245 void createFrameView(); |
| 246 | 246 |
| 247 static WebLocalFrameImpl* fromFrame(LocalFrame*); | 247 static WebLocalFrameImpl* fromFrame(LocalFrame*); |
| 248 static WebLocalFrameImpl* fromFrame(LocalFrame&); | 248 static WebLocalFrameImpl* fromFrame(LocalFrame&); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 void invalidateAll() const; | 312 void invalidateAll() const; |
| 313 | 313 |
| 314 // Returns a hit-tested VisiblePosition for the given point | 314 // Returns a hit-tested VisiblePosition for the given point |
| 315 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); | 315 VisiblePosition visiblePositionForWindowPoint(const WebPoint&); |
| 316 | 316 |
| 317 private: | 317 private: |
| 318 friend class FrameLoaderClientImpl; | 318 friend class FrameLoaderClientImpl; |
| 319 | 319 |
| 320 explicit WebLocalFrameImpl(WebFrameClient*); | 320 explicit WebLocalFrameImpl(WebFrameClient*); |
| 321 | 321 |
| 322 // Sets the local WebCore frame and registers destruction observers. | 322 // Sets the local core frame and registers destruction observers. |
| 323 void setWebCoreFrame(PassRefPtr<LocalFrame>); | 323 void setCoreFrame(PassRefPtr<LocalFrame>); |
| 324 | 324 |
| 325 void loadJavaScriptURL(const KURL&); | 325 void loadJavaScriptURL(const KURL&); |
| 326 | 326 |
| 327 WebPlugin* focusedPluginIfInputMethodSupported(); | 327 WebPlugin* focusedPluginIfInputMethodSupported(); |
| 328 | 328 |
| 329 FrameLoaderClientImpl m_frameLoaderClientImpl; | 329 FrameLoaderClientImpl m_frameLoaderClientImpl; |
| 330 | 330 |
| 331 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 331 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
| 332 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 332 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
| 333 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. | 333 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 355 UserMediaClientImpl m_userMediaClientImpl; | 355 UserMediaClientImpl m_userMediaClientImpl; |
| 356 | 356 |
| 357 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; | 357 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; |
| 358 }; | 358 }; |
| 359 | 359 |
| 360 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 360 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 361 | 361 |
| 362 } // namespace blink | 362 } // namespace blink |
| 363 | 363 |
| 364 #endif | 364 #endif |
| OLD | NEW |