Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1181)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 12223106: Properly Remove Autofill Keyboard Listener. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 const WebKit::WebTouchEvent& touch_event) { 1214 const WebKit::WebTouchEvent& touch_event) {
1215 touch_event_queue_->QueueEvent(touch_event); 1215 touch_event_queue_->QueueEvent(touch_event);
1216 } 1216 }
1217 1217
1218 void RenderWidgetHostImpl::AddKeyboardListener(KeyboardListener* listener) { 1218 void RenderWidgetHostImpl::AddKeyboardListener(KeyboardListener* listener) {
1219 keyboard_listeners_.push_back(listener); 1219 keyboard_listeners_.push_back(listener);
1220 } 1220 }
1221 1221
1222 void RenderWidgetHostImpl::RemoveKeyboardListener( 1222 void RenderWidgetHostImpl::RemoveKeyboardListener(
1223 KeyboardListener* listener) { 1223 KeyboardListener* listener) {
1224 // Ensure that the element is actually in the list.
1225 DCHECK(std::find(keyboard_listeners_.begin(), keyboard_listeners_.end(),
1226 listener) != keyboard_listeners_.end());
1224 keyboard_listeners_.remove(listener); 1227 keyboard_listeners_.remove(listener);
1225 } 1228 }
1226 1229
1227 void RenderWidgetHostImpl::NotifyScreenInfoChanged() { 1230 void RenderWidgetHostImpl::NotifyScreenInfoChanged() {
1228 WebKit::WebScreenInfo screen_info; 1231 WebKit::WebScreenInfo screen_info;
1229 GetWebScreenInfo(&screen_info); 1232 GetWebScreenInfo(&screen_info);
1230 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info)); 1233 Send(new ViewMsg_ScreenInfoChanged(GetRoutingID(), screen_info));
1231 } 1234 }
1232 1235
1233 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase, 1236 void RenderWidgetHostImpl::UpdateVSyncParameters(base::TimeTicks timebase,
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 return; 2407 return;
2405 2408
2406 OnRenderAutoResized(new_size); 2409 OnRenderAutoResized(new_size);
2407 } 2410 }
2408 2411
2409 void RenderWidgetHostImpl::DetachDelegate() { 2412 void RenderWidgetHostImpl::DetachDelegate() {
2410 delegate_ = NULL; 2413 delegate_ = NULL;
2411 } 2414 }
2412 2415
2413 } // namespace content 2416 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698