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

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

Issue 42258: Add way to remove entries from autocomplete (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <vector> 8 #include <vector>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 OnReceivedSerializedHtmlData); 754 OnReceivedSerializedHtmlData);
755 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetApplicationInfo, 755 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetApplicationInfo,
756 OnDidGetApplicationInfo); 756 OnDidGetApplicationInfo);
757 IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_, 757 IPC_MESSAGE_FORWARD(ViewHostMsg_JSOutOfMemory, delegate_,
758 RenderViewHostDelegate::OnJSOutOfMemory); 758 RenderViewHostDelegate::OnJSOutOfMemory);
759 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK); 759 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK);
760 IPC_MESSAGE_HANDLER(ViewHostMsg_UnloadListenerChanged, 760 IPC_MESSAGE_HANDLER(ViewHostMsg_UnloadListenerChanged,
761 OnUnloadListenerChanged); 761 OnUnloadListenerChanged);
762 IPC_MESSAGE_HANDLER(ViewHostMsg_QueryFormFieldAutofill, 762 IPC_MESSAGE_HANDLER(ViewHostMsg_QueryFormFieldAutofill,
763 OnQueryFormFieldAutofill) 763 OnQueryFormFieldAutofill)
764 IPC_MESSAGE_HANDLER(ViewHostMsg_RemoveAutofillEntry,
765 OnRemoveAutofillEntry)
764 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFeedList, OnMsgUpdateFeedList) 766 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFeedList, OnMsgUpdateFeedList)
765 // Have the super handle all other messages. 767 // Have the super handle all other messages.
766 IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg)) 768 IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg))
767 IPC_END_MESSAGE_MAP_EX() 769 IPC_END_MESSAGE_MAP_EX()
768 770
769 if (!msg_is_ok) { 771 if (!msg_is_ok) {
770 // The message had a handler, but its de-serialization failed. 772 // The message had a handler, but its de-serialization failed.
771 // Kill the renderer. 773 // Kill the renderer.
772 process()->ReceivedBadMessage(msg.type()); 774 process()->ReceivedBadMessage(msg.type());
773 } 775 }
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 has_unload_listener_ = has_listener; 1296 has_unload_listener_ = has_listener;
1295 } 1297 }
1296 1298
1297 void RenderViewHost::OnQueryFormFieldAutofill(const std::wstring& field_name, 1299 void RenderViewHost::OnQueryFormFieldAutofill(const std::wstring& field_name,
1298 const std::wstring& user_text, 1300 const std::wstring& user_text,
1299 int64 node_id, 1301 int64 node_id,
1300 int request_id) { 1302 int request_id) {
1301 delegate_->GetAutofillSuggestions(field_name, user_text, node_id, request_id); 1303 delegate_->GetAutofillSuggestions(field_name, user_text, node_id, request_id);
1302 } 1304 }
1303 1305
1306 void RenderViewHost::OnRemoveAutofillEntry(const std::wstring& field_name,
1307 const std::wstring& value) {
1308 delegate_->RemoveAutofillEntry(field_name, value);
1309 }
1310
1304 void RenderViewHost::AutofillSuggestionsReturned( 1311 void RenderViewHost::AutofillSuggestionsReturned(
1305 const std::vector<std::wstring>& suggestions, 1312 const std::vector<std::wstring>& suggestions,
1306 int64 node_id, int request_id, int default_suggestion_index) { 1313 int64 node_id, int request_id, int default_suggestion_index) {
1307 Send(new ViewMsg_AutofillSuggestions(routing_id(), node_id, 1314 Send(new ViewMsg_AutofillSuggestions(routing_id(), node_id,
1308 request_id, suggestions, -1)); 1315 request_id, suggestions, -1));
1309 // Default index -1 means no default suggestion. 1316 // Default index -1 means no default suggestion.
1310 } 1317 }
1311 1318
1312 void RenderViewHost::WindowMoveOrResizeStarted() { 1319 void RenderViewHost::WindowMoveOrResizeStarted() {
1313 Send(new ViewMsg_MoveOrResizeStarted(routing_id())); 1320 Send(new ViewMsg_MoveOrResizeStarted(routing_id()));
(...skipping 28 matching lines...) Expand all
1342 Send(new ViewMsg_PersonalizationEvent(routing_id(), event_name, event_arg)); 1349 Send(new ViewMsg_PersonalizationEvent(routing_id(), event_name, event_arg));
1343 } 1350 }
1344 #endif 1351 #endif
1345 1352
1346 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message, 1353 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message,
1347 const std::string& origin, 1354 const std::string& origin,
1348 const std::string& target) { 1355 const std::string& target) {
1349 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin, 1356 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin,
1350 target)); 1357 target));
1351 } 1358 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('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