Changeset 185400 in webkit
- Timestamp:
- Jun 9, 2015 8:34:24 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r185398 r185400 1 2015-06-09 Hyungwook Lee <hyungwook.lee@navercorp.com> 2 3 Implement dumpProgressFinishedCallback() for Win layoutTestController. 4 https://bugs.webkit.org/show_bug.cgi?id=66773 5 6 Reviewed by Darin Adler. 7 8 * platform/win/TestExpectations: 9 1 10 2015-06-09 Ryosuke Niwa <rniwa@webkit.org> 2 11 -
trunk/LayoutTests/platform/win/TestExpectations
r185335 r185400 457 457 # Font feature settings is not implemented. 458 458 css3/font-feature-settings-rendering.html [ Skip ] 459 460 # TODO Implement dumpProgressFinishedCallback461 webkit.org/b/66773 http/tests/loading/progress-finished-callback.html462 459 463 460 # TODO HiDPI tests require test infrastructure enhancements (e.g. testRunner.setBackingScaleFactor) -
trunk/Source/WebKit/win/ChangeLog
r185342 r185400 1 2015-06-09 Hyungwook Lee <hyungwook.lee@navercorp.com> 2 3 Implement dumpProgressFinishedCallback() for Win layoutTestController. 4 https://bugs.webkit.org/show_bug.cgi?id=66773 5 6 Reviewed by Darin Adler. 7 8 * WebView.cpp: 9 (WebView::setFrameLoadDelegatePrivate): 10 1 11 2015-06-08 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/Source/WebKit/win/WebView.cpp
r185259 r185400 5250 5250 /* [in] */ IWebFrameLoadDelegatePrivate* d) 5251 5251 { 5252 if (m_frameLoadDelegatePrivate == d) 5253 return S_OK; 5254 5255 static BSTR webViewProgressFinishedNotificationName = SysAllocString(WebViewProgressFinishedNotification); 5256 5257 IWebNotificationCenter* notifyCenter = WebNotificationCenter::defaultCenterInternal(); 5258 5259 COMPtr<IWebNotificationObserver> wasObserver(Query, m_frameLoadDelegatePrivate); 5260 if (wasObserver) 5261 notifyCenter->removeObserver(wasObserver.get(), webViewProgressFinishedNotificationName, nullptr); 5262 5252 5263 m_frameLoadDelegatePrivate = d; 5264 5265 COMPtr<IWebNotificationObserver> isObserver(Query, m_frameLoadDelegatePrivate); 5266 if (isObserver) 5267 notifyCenter->addObserver(isObserver.get(), webViewProgressFinishedNotificationName, nullptr); 5268 5253 5269 return S_OK; 5254 5270 } -
trunk/Tools/ChangeLog
r185371 r185400 1 2015-06-09 Hyungwook Lee <hyungwook.lee@navercorp.com> 2 3 Implement dumpProgressFinishedCallback() for Win layoutTestController. 4 https://bugs.webkit.org/show_bug.cgi?id=66773 5 6 Reviewed by Darin Adler. 7 8 * DumpRenderTree/win/FrameLoadDelegate.cpp: 9 * DumpRenderTree/win/FrameLoadDelegate.h: 10 1 11 2015-06-09 Ryosuke Niwa <rniwa@webkit.org> 2 12 -
trunk/Tools/DumpRenderTree/win/FrameLoadDelegate.cpp
r179409 r185400 97 97 else if (IsEqualGUID(riid, IID_IWebFrameLoadDelegatePrivate2)) 98 98 *ppvObject = static_cast<IWebFrameLoadDelegatePrivate2*>(this); 99 else if (IsEqualGUID(riid, IID_IWebNotificationObserver)) 100 *ppvObject = static_cast<IWebNotificationObserver*>(this); 99 101 else 100 102 return E_NOINTERFACE; … … 425 427 return S_OK; 426 428 } 429 430 HRESULT FrameLoadDelegate::onNotify(IWebNotification* notification) 431 { 432 _bstr_t notificationName; 433 HRESULT hr = notification->name(¬ificationName.GetBSTR()); 434 if (FAILED(hr)) 435 return hr; 436 437 static _bstr_t webViewProgressFinishedNotificationName(WebViewProgressFinishedNotification); 438 439 if (!wcscmp(notificationName, webViewProgressFinishedNotificationName)) 440 webViewProgressFinishedNotification(); 441 442 return S_OK; 443 } 444 445 void FrameLoadDelegate::webViewProgressFinishedNotification() 446 { 447 if (!done && gTestRunner->dumpProgressFinishedCallback()) 448 printf("postProgressFinishedNotification\n"); 449 } -
trunk/Tools/DumpRenderTree/win/FrameLoadDelegate.h
r174796 r185400 36 36 class GCController; 37 37 38 class FrameLoadDelegate : public IWebFrameLoadDelegate, public IWebFrameLoadDelegatePrivate2 {38 class FrameLoadDelegate : public IWebFrameLoadDelegate, public IWebFrameLoadDelegatePrivate2, public IWebNotificationObserver { 39 39 public: 40 40 FrameLoadDelegate(); … … 151 151 /* [in] */ IWebFrame *frame) { return E_NOTIMPL; } 152 152 153 // IWebNotificationObserver 154 virtual HRESULT STDMETHODCALLTYPE onNotify(IWebNotification*); 155 153 156 private: 154 157 void didClearWindowObjectForFrameInIsolatedWorld(IWebFrame*, IWebScriptWorld*); … … 156 159 157 160 void locationChangeDone(IWebError*, IWebFrame*); 161 void webViewProgressFinishedNotification(); 158 162 159 163 ULONG m_refCount;
Note: See TracChangeset
for help on using the changeset viewer.