operations from a WebView.
Reviewed by Steve.
* Interfaces/IWebViewPrivate.idl:
* WebView.cpp:
(WebView::clearUndoRedoOperations):
* WebView.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28266
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-11-30 Ada Chan <adachan@apple.com>
+
+ <rdar://problem/5621373> Added a way for the client to clear undo/redo
+ operations from a WebView.
+
+ Reviewed by Steve.
+
+ * Interfaces/IWebViewPrivate.idl:
+ * WebView.cpp:
+ (WebView::clearUndoRedoOperations):
+ * WebView.h:
+
2007-11-29 Anders Carlsson <andersca@apple.com>
Reviewed by Sam.
HRESULT setInitialFocus([in] BOOL forward);
HRESULT inspector([out, retval] IWebInspector**);
+
+ HRESULT clearUndoRedoOperations();
}
return S_OK;
}
+HRESULT STDMETHODCALLTYPE WebView::clearUndoRedoOperations()
+{
+ if (Frame* frame = m_page->focusController()->focusedOrMainFrame())
+ frame->editor()->clearUndoRedoOperations();
+ return S_OK;
+}
+
HRESULT WebView::registerDragDrop()
{
ASSERT(::IsWindow(m_viewWindow));
virtual HRESULT STDMETHODCALLTYPE inspector(
/* [retval][out] */ IWebInspector**);
+ virtual HRESULT STDMETHODCALLTYPE clearUndoRedoOperations( void);
+
// WebView
WebCore::Page* page();
bool handleMouseEvent(UINT, WPARAM, LPARAM);