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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 339030: Add initial implementation of AutoFill++. This implementation is hidden behi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1348 const std::vector<webkit_glue::PasswordForm>& forms) { 1348 const std::vector<webkit_glue::PasswordForm>& forms) {
1349 delegate_->PasswordFormsSeen(forms); 1349 delegate_->PasswordFormsSeen(forms);
1350 } 1350 }
1351 1351
1352 void RenderViewHost::OnMsgFormFieldValuesSubmitted( 1352 void RenderViewHost::OnMsgFormFieldValuesSubmitted(
1353 const webkit_glue::FormFieldValues& form) { 1353 const webkit_glue::FormFieldValues& form) {
1354 RenderViewHostDelegate::FormFieldHistory* formfield_history_delegate = 1354 RenderViewHostDelegate::FormFieldHistory* formfield_history_delegate =
1355 delegate_->GetFormFieldHistoryDelegate(); 1355 delegate_->GetFormFieldHistoryDelegate();
1356 if (formfield_history_delegate) 1356 if (formfield_history_delegate)
1357 formfield_history_delegate->FormFieldValuesSubmitted(form); 1357 formfield_history_delegate->FormFieldValuesSubmitted(form);
1358
1359 RenderViewHostDelegate::AutoFill* autofill_delegate =
1360 delegate_->GetAutoFillDelegate();
1361 if (autofill_delegate)
1362 autofill_delegate->FormFieldValuesSubmitted(form);
1358 } 1363 }
1359 1364
1360 void RenderViewHost::OnMsgStartDragging( 1365 void RenderViewHost::OnMsgStartDragging(
1361 const WebDropData& drop_data, 1366 const WebDropData& drop_data,
1362 WebDragOperationsMask drag_operations_mask) { 1367 WebDragOperationsMask drag_operations_mask) {
1363 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1368 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1364 if (view) 1369 if (view)
1365 view->StartDragging(drop_data, drag_operations_mask); 1370 view->StartDragging(drop_data, drag_operations_mask);
1366 } 1371 }
1367 1372
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1727 #endif 1732 #endif
1728 } 1733 }
1729 1734
1730 void RenderViewHost::OnCSSInserted() { 1735 void RenderViewHost::OnCSSInserted() {
1731 delegate_->DidInsertCSS(); 1736 delegate_->DidInsertCSS();
1732 } 1737 }
1733 1738
1734 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1739 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1735 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1740 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1736 } 1741 }
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_manager.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698