diff options
Diffstat (limited to 'webkit/glue')
-rw-r--r-- | webkit/glue/chrome_client_impl.cc | 6 | ||||
-rw-r--r-- | webkit/glue/chrome_client_impl.h | 3 | ||||
-rw-r--r-- | webkit/glue/chromium_bridge_impl.cc | 6 | ||||
-rw-r--r-- | webkit/glue/webkit_glue.h | 5 |
4 files changed, 7 insertions, 13 deletions
diff --git a/webkit/glue/chrome_client_impl.cc b/webkit/glue/chrome_client_impl.cc index 860d9b1..b7cc3ae 100644 --- a/webkit/glue/chrome_client_impl.cc +++ b/webkit/glue/chrome_client_impl.cc @@ -488,3 +488,9 @@ void ChromeClientImpl::disableSuddenTermination() { if (d) d->DisableSuddenTermination(); } + +void ChromeClientImpl::formStateDidChange(const WebCore::Node*) { + WebViewDelegate* d = webview_->delegate(); + if (d) + d->OnNavStateChanged(webview_); +} diff --git a/webkit/glue/chrome_client_impl.h b/webkit/glue/chrome_client_impl.h index 7d69ee1..27fd2c7 100644 --- a/webkit/glue/chrome_client_impl.h +++ b/webkit/glue/chrome_client_impl.h @@ -123,8 +123,7 @@ public: virtual void enableSuddenTermination(); virtual void disableSuddenTermination(); - // TODO(brettw): Implement me! - virtual void formStateDidChange(const WebCore::Node*) { } + virtual void formStateDidChange(const WebCore::Node*); private: WebViewImpl* webview_; // weak pointer diff --git a/webkit/glue/chromium_bridge_impl.cc b/webkit/glue/chromium_bridge_impl.cc index b178d55..c75ab15 100644 --- a/webkit/glue/chromium_bridge_impl.cc +++ b/webkit/glue/chromium_bridge_impl.cc @@ -244,12 +244,6 @@ bool ChromiumBridge::ensureFontLoaded(HFONT font) { } #endif -// Forms ---------------------------------------------------------------------- - -void ChromiumBridge::notifyFormStateChanged(const Document* doc) { - webkit_glue::NotifyFormStateChanged(doc); -} - // JavaScript ----------------------------------------------------------------- void ChromiumBridge::notifyJSOutOfMemory(Frame* frame) { diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h index 78ad7ee..f3335b5 100644 --- a/webkit/glue/webkit_glue.h +++ b/webkit/glue/webkit_glue.h @@ -245,11 +245,6 @@ ScreenInfo GetScreenInfo(gfx::NativeView window); // Functions implemented by webkit_glue for WebKit ---------------------------- -// Notifies the embedder that a form element value has changed. The document -// pointer, which MAY BE NULL, indicates the document that owns the form -// element that changed, if any. -void NotifyFormStateChanged(const WebCore::Document* document); - // Returns a bool indicating if the Null plugin should be enabled or not. bool IsDefaultPluginEnabled(); |