| OLD | NEW |
| 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 1722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1733 const std::wstring& text, | 1733 const std::wstring& text, |
| 1734 int64 node_id) { | 1734 int64 node_id) { |
| 1735 static int message_id_counter = 0; | 1735 static int message_id_counter = 0; |
| 1736 form_field_autofill_request_id_ = message_id_counter++; | 1736 form_field_autofill_request_id_ = message_id_counter++; |
| 1737 Send(new ViewHostMsg_QueryFormFieldAutofill(routing_id_, | 1737 Send(new ViewHostMsg_QueryFormFieldAutofill(routing_id_, |
| 1738 field_name, text, | 1738 field_name, text, |
| 1739 node_id, | 1739 node_id, |
| 1740 form_field_autofill_request_id_)); | 1740 form_field_autofill_request_id_)); |
| 1741 } | 1741 } |
| 1742 | 1742 |
| 1743 void RenderView::RemoveStoredAutofillEntry(const std::wstring& name, |
| 1744 const std::wstring& value) { |
| 1745 Send(new ViewHostMsg_RemoveAutofillEntry(routing_id_, name, value)); |
| 1746 } |
| 1747 |
| 1743 void RenderView::OnReceivedAutofillSuggestions( | 1748 void RenderView::OnReceivedAutofillSuggestions( |
| 1744 int64 node_id, | 1749 int64 node_id, |
| 1745 int request_id, | 1750 int request_id, |
| 1746 const std::vector<std::wstring>& suggestions, | 1751 const std::vector<std::wstring>& suggestions, |
| 1747 int default_suggestion_index) { | 1752 int default_suggestion_index) { |
| 1748 if (!webview() || request_id != form_field_autofill_request_id_) | 1753 if (!webview() || request_id != form_field_autofill_request_id_) |
| 1749 return; | 1754 return; |
| 1750 | 1755 |
| 1751 webview()->AutofillSuggestionsForNode(node_id, suggestions, | 1756 webview()->AutofillSuggestionsForNode(node_id, suggestions, |
| 1752 default_suggestion_index); | 1757 default_suggestion_index); |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); | 2959 DCHECK(audio_renderers_.Lookup(stream_id) != NULL); |
| 2955 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); | 2960 Send(new ViewHostMsg_SetAudioVolume(routing_id_, stream_id, left, right)); |
| 2956 } | 2961 } |
| 2957 | 2962 |
| 2958 void RenderView::OnResize(const gfx::Size& new_size, | 2963 void RenderView::OnResize(const gfx::Size& new_size, |
| 2959 const gfx::Rect& resizer_rect) { | 2964 const gfx::Rect& resizer_rect) { |
| 2960 if (webview()) | 2965 if (webview()) |
| 2961 webview()->HideAutofillPopup(); | 2966 webview()->HideAutofillPopup(); |
| 2962 RenderWidget::OnResize(new_size, resizer_rect); | 2967 RenderWidget::OnResize(new_size, resizer_rect); |
| 2963 } | 2968 } |
| OLD | NEW |