Remove RenderViewObserver::ZoomLevelChanged.

This pathway is obsolete, and is removed in this CL.

BUG=392851

Review URL: https://codereview.chromium.org/388583002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282738 0039d316-1c4b-4281-b951-d872f2087c98
parent 4488d712
...@@ -217,13 +217,6 @@ void AutofillAgent::WillSubmitForm(WebLocalFrame* frame, ...@@ -217,13 +217,6 @@ void AutofillAgent::WillSubmitForm(WebLocalFrame* frame,
} }
} }
void AutofillAgent::ZoomLevelChanged() {
// Any time the zoom level changes, the page's content moves, so any Autofill
// popups should be hidden. This is only needed for the new Autofill UI
// because WebKit already knows to hide the old UI when this occurs.
HidePopup();
}
void AutofillAgent::FocusedNodeChanged(const WebNode& node) { void AutofillAgent::FocusedNodeChanged(const WebNode& node) {
if (password_generation_agent_ && if (password_generation_agent_ &&
password_generation_agent_->FocusedNodeHasChanged(node)) { password_generation_agent_->FocusedNodeHasChanged(node)) {
......
...@@ -65,7 +65,6 @@ class AutofillAgent : public content::RenderViewObserver, ...@@ -65,7 +65,6 @@ class AutofillAgent : public content::RenderViewObserver,
virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE; virtual void FrameWillClose(blink::WebFrame* frame) OVERRIDE;
virtual void WillSubmitForm(blink::WebLocalFrame* frame, virtual void WillSubmitForm(blink::WebLocalFrame* frame,
const blink::WebFormElement& form) OVERRIDE; const blink::WebFormElement& form) OVERRIDE;
virtual void ZoomLevelChanged() OVERRIDE;
virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) OVERRIDE; virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) OVERRIDE;
virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE; virtual void FocusedNodeChanged(const blink::WebNode& node) OVERRIDE;
virtual void OrientationChangeEvent() OVERRIDE; virtual void OrientationChangeEvent() OVERRIDE;
......
...@@ -79,7 +79,6 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener, ...@@ -79,7 +79,6 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener,
blink::WebDataSource* ds) {} blink::WebDataSource* ds) {}
virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {}
virtual void FocusedNodeChanged(const blink::WebNode& node) {} virtual void FocusedNodeChanged(const blink::WebNode& node) {}
virtual void ZoomLevelChanged() {};
virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {}
virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} virtual void DraggableRegionsChanged(blink::WebFrame* frame) {}
virtual void DidCommitCompositorFrame() {} virtual void DidCommitCompositorFrame() {}
......
...@@ -3939,8 +3939,6 @@ void RenderViewImpl::zoomLimitsChanged(double minimum_level, ...@@ -3939,8 +3939,6 @@ void RenderViewImpl::zoomLimitsChanged(double minimum_level,
void RenderViewImpl::zoomLevelChanged() { void RenderViewImpl::zoomLevelChanged() {
double zoom_level = webview()->zoomLevel(); double zoom_level = webview()->zoomLevel();
FOR_EACH_OBSERVER(RenderViewObserver, observers_, ZoomLevelChanged());
// Do not send empty URLs to the browser when we are just setting the default // Do not send empty URLs to the browser when we are just setting the default
// zoom level (from RendererPreferences) before the first navigation. // zoom level (from RendererPreferences) before the first navigation.
if (!webview()->mainFrame()->document().url().isEmpty()) { if (!webview()->mainFrame()->document().url().isEmpty()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment