OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_view_host.h" | 5 #include "content/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 10 matching lines...) Expand all Loading... |
21 #include "content/browser/cross_site_request_manager.h" | 21 #include "content/browser/cross_site_request_manager.h" |
22 #include "content/browser/host_zoom_map.h" | 22 #include "content/browser/host_zoom_map.h" |
23 #include "content/browser/in_process_webkit/session_storage_namespace.h" | 23 #include "content/browser/in_process_webkit/session_storage_namespace.h" |
24 #include "content/browser/renderer_host/render_process_host.h" | 24 #include "content/browser/renderer_host/render_process_host.h" |
25 #include "content/browser/renderer_host/render_view_host_delegate.h" | 25 #include "content/browser/renderer_host/render_view_host_delegate.h" |
26 #include "content/browser/renderer_host/render_view_host_observer.h" | 26 #include "content/browser/renderer_host/render_view_host_observer.h" |
27 #include "content/browser/renderer_host/render_widget_host.h" | 27 #include "content/browser/renderer_host/render_widget_host.h" |
28 #include "content/browser/renderer_host/render_widget_host_view.h" | 28 #include "content/browser/renderer_host/render_widget_host_view.h" |
29 #include "content/browser/site_instance.h" | 29 #include "content/browser/site_instance.h" |
30 #include "content/browser/user_metrics.h" | 30 #include "content/browser/user_metrics.h" |
| 31 #include "content/common/autofill_messages.h" |
31 #include "content/common/content_constants.h" | 32 #include "content/common/content_constants.h" |
32 #include "content/common/desktop_notification_messages.h" | 33 #include "content/common/desktop_notification_messages.h" |
33 #include "content/common/drag_messages.h" | 34 #include "content/common/drag_messages.h" |
34 #include "content/common/notification_service.h" | 35 #include "content/common/notification_service.h" |
35 #include "content/common/result_codes.h" | 36 #include "content/common/result_codes.h" |
36 #include "content/common/speech_input_messages.h" | 37 #include "content/common/speech_input_messages.h" |
37 #include "content/common/swapped_out_messages.h" | 38 #include "content/common/swapped_out_messages.h" |
38 #include "content/common/view_messages.h" | 39 #include "content/common/view_messages.h" |
39 #include "content/public/browser/content_browser_client.h" | 40 #include "content/public/browser/content_browser_client.h" |
40 #include "content/public/browser/native_web_keyboard_event.h" | 41 #include "content/public/browser/native_web_keyboard_event.h" |
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 #if defined(OS_MACOSX) | 1211 #if defined(OS_MACOSX) |
1211 void RenderViewHost::DidSelectPopupMenuItem(int selected_index) { | 1212 void RenderViewHost::DidSelectPopupMenuItem(int selected_index) { |
1212 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), selected_index)); | 1213 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), selected_index)); |
1213 } | 1214 } |
1214 | 1215 |
1215 void RenderViewHost::DidCancelPopupMenu() { | 1216 void RenderViewHost::DidCancelPopupMenu() { |
1216 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), -1)); | 1217 Send(new ViewMsg_SelectPopupMenuItem(routing_id(), -1)); |
1217 } | 1218 } |
1218 #endif | 1219 #endif |
1219 | 1220 |
| 1221 void RenderViewHost::SelectAutofillSuggestionAtIndex(int listIndex) { |
| 1222 Send(new AutofillMsg_SelectAutofillSuggestionAtIndex(routing_id(), |
| 1223 listIndex)); |
| 1224 } |
| 1225 |
1220 void RenderViewHost::ToggleSpeechInput() { | 1226 void RenderViewHost::ToggleSpeechInput() { |
1221 Send(new SpeechInputMsg_ToggleSpeechInput(routing_id())); | 1227 Send(new SpeechInputMsg_ToggleSpeechInput(routing_id())); |
1222 } | 1228 } |
1223 | 1229 |
1224 void RenderViewHost::FilterURL(ChildProcessSecurityPolicy* policy, | 1230 void RenderViewHost::FilterURL(ChildProcessSecurityPolicy* policy, |
1225 int renderer_id, | 1231 int renderer_id, |
1226 GURL* url) { | 1232 GURL* url) { |
1227 if (!url->is_valid()) | 1233 if (!url->is_valid()) |
1228 return; // We don't need to block invalid URLs. | 1234 return; // We don't need to block invalid URLs. |
1229 | 1235 |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 void RenderViewHost::OnRunFileChooser( | 1432 void RenderViewHost::OnRunFileChooser( |
1427 const ViewHostMsg_RunFileChooser_Params& params) { | 1433 const ViewHostMsg_RunFileChooser_Params& params) { |
1428 delegate_->RunFileChooser(this, params); | 1434 delegate_->RunFileChooser(this, params); |
1429 } | 1435 } |
1430 | 1436 |
1431 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1437 void RenderViewHost::OnWebUISend(const GURL& source_url, |
1432 const std::string& name, | 1438 const std::string& name, |
1433 const base::ListValue& args) { | 1439 const base::ListValue& args) { |
1434 delegate_->WebUISend(this, source_url, name, args); | 1440 delegate_->WebUISend(this, source_url, name, args); |
1435 } | 1441 } |
OLD | NEW |