| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; | 227 virtual WebString layerTreeAsText(bool showDebugInfo = false) const OVERRIDE
; |
| 228 | 228 |
| 229 // WebLocalFrame methods: | 229 // WebLocalFrame methods: |
| 230 virtual void addStyleSheetByURL(const WebString& url) OVERRIDE; | 230 virtual void addStyleSheetByURL(const WebString& url) OVERRIDE; |
| 231 | 231 |
| 232 void willDetachParent(); | 232 void willDetachParent(); |
| 233 | 233 |
| 234 static WebLocalFrameImpl* create(WebFrameClient*); | 234 static WebLocalFrameImpl* create(WebFrameClient*); |
| 235 virtual ~WebLocalFrameImpl(); | 235 virtual ~WebLocalFrameImpl(); |
| 236 | 236 |
| 237 // Called by the WebViewImpl to initialize the main frame for the page. | 237 PassRefPtr<WebCore::LocalFrame> initializeWebCoreFrame(WebCore::FrameHost*,
WebCore::FrameOwner*, const AtomicString& name, const AtomicString& fallbackName
); |
| 238 void initializeAsMainFrame(WebCore::Page*); | |
| 239 | 238 |
| 240 PassRefPtr<WebCore::LocalFrame> createChildFrame( | 239 PassRefPtr<WebCore::LocalFrame> createChildFrame( |
| 241 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*); | 240 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*); |
| 242 | 241 |
| 243 void didChangeContentsSize(const WebCore::IntSize&); | 242 void didChangeContentsSize(const WebCore::IntSize&); |
| 244 | 243 |
| 245 void createFrameView(); | 244 void createFrameView(); |
| 246 | 245 |
| 247 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*); | 246 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*); |
| 248 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame&); | 247 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame&); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // Returns the text finder object if it already exists. | 303 // Returns the text finder object if it already exists. |
| 305 // Otherwise creates it and then returns. | 304 // Otherwise creates it and then returns. |
| 306 TextFinder& ensureTextFinder(); | 305 TextFinder& ensureTextFinder(); |
| 307 | 306 |
| 308 // Invalidates vertical scrollbar only. | 307 // Invalidates vertical scrollbar only. |
| 309 void invalidateScrollbar() const; | 308 void invalidateScrollbar() const; |
| 310 | 309 |
| 311 // Invalidates both content area and the scrollbar. | 310 // Invalidates both content area and the scrollbar. |
| 312 void invalidateAll() const; | 311 void invalidateAll() const; |
| 313 | 312 |
| 314 PassRefPtr<WebCore::LocalFrame> initializeAsChildFrame(WebCore::FrameHost*,
WebCore::FrameOwner*, const AtomicString& name, const AtomicString& fallbackName
); | |
| 315 | |
| 316 private: | 313 private: |
| 317 friend class FrameLoaderClientImpl; | 314 friend class FrameLoaderClientImpl; |
| 318 | 315 |
| 319 explicit WebLocalFrameImpl(WebFrameClient*); | 316 explicit WebLocalFrameImpl(WebFrameClient*); |
| 320 | 317 |
| 321 // Sets the local WebCore frame and registers destruction observers. | 318 // Sets the local WebCore frame and registers destruction observers. |
| 322 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>); | 319 void setWebCoreFrame(PassRefPtr<WebCore::LocalFrame>); |
| 323 | 320 |
| 324 void loadJavaScriptURL(const WebCore::KURL&); | 321 void loadJavaScriptURL(const WebCore::KURL&); |
| 325 | 322 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 UserMediaClientImpl m_userMediaClientImpl; | 354 UserMediaClientImpl m_userMediaClientImpl; |
| 358 | 355 |
| 359 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; | 356 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; |
| 360 }; | 357 }; |
| 361 | 358 |
| 362 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 359 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 363 | 360 |
| 364 } // namespace blink | 361 } // namespace blink |
| 365 | 362 |
| 366 #endif | 363 #endif |
| OLD | NEW |