| 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 "chrome/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 OnAccessibilityDoDefaultAction) | 1095 OnAccessibilityDoDefaultAction) |
| 1096 IPC_MESSAGE_HANDLER(ViewMsg_AccessibilityNotifications_ACK, | 1096 IPC_MESSAGE_HANDLER(ViewMsg_AccessibilityNotifications_ACK, |
| 1097 OnAccessibilityNotificationsAck) | 1097 OnAccessibilityNotificationsAck) |
| 1098 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) | 1098 IPC_MESSAGE_HANDLER(ViewMsg_AsyncOpenFile_ACK, OnAsyncFileOpened) |
| 1099 #if defined(OS_MACOSX) | 1099 #if defined(OS_MACOSX) |
| 1100 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) | 1100 IPC_MESSAGE_HANDLER(ViewMsg_SelectPopupMenuItem, OnSelectPopupMenuItem) |
| 1101 #endif | 1101 #endif |
| 1102 IPC_MESSAGE_HANDLER(ViewMsg_JavaScriptStressTestControl, | 1102 IPC_MESSAGE_HANDLER(ViewMsg_JavaScriptStressTestControl, |
| 1103 OnJavaScriptStressTestControl) | 1103 OnJavaScriptStressTestControl) |
| 1104 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) | 1104 IPC_MESSAGE_HANDLER(ViewMsg_ContextMenuClosed, OnContextMenuClosed) |
| 1105 IPC_MESSAGE_HANDLER(ViewMsg_StartPhishingDetection, |
| 1106 OnStartPhishingDetection) |
| 1105 | 1107 |
| 1106 // TODO(viettrungluu): Move to a separate message filter. | 1108 // TODO(viettrungluu): Move to a separate message filter. |
| 1107 #if defined(ENABLE_FLAPPER_HACKS) | 1109 #if defined(ENABLE_FLAPPER_HACKS) |
| 1108 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK) | 1110 IPC_MESSAGE_HANDLER(PepperMsg_ConnectTcpACK, OnConnectTcpACK) |
| 1109 #endif | 1111 #endif |
| 1110 | 1112 |
| 1111 // Have the super handle all other messages. | 1113 // Have the super handle all other messages. |
| 1112 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) | 1114 IPC_MESSAGE_UNHANDLED(handled = RenderWidget::OnMessageReceived(message)) |
| 1113 IPC_END_MESSAGE_MAP() | 1115 IPC_END_MESSAGE_MAP() |
| 1114 return handled; | 1116 return handled; |
| (...skipping 4664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5779 } | 5781 } |
| 5780 } | 5782 } |
| 5781 | 5783 |
| 5782 void RenderView::OnContextMenuClosed( | 5784 void RenderView::OnContextMenuClosed( |
| 5783 const webkit_glue::CustomContextMenuContext& custom_context) { | 5785 const webkit_glue::CustomContextMenuContext& custom_context) { |
| 5784 if (custom_context.is_pepper_menu) | 5786 if (custom_context.is_pepper_menu) |
| 5785 pepper_delegate_.OnContextMenuClosed(custom_context); | 5787 pepper_delegate_.OnContextMenuClosed(custom_context); |
| 5786 else | 5788 else |
| 5787 context_menu_node_.reset(); | 5789 context_menu_node_.reset(); |
| 5788 } | 5790 } |
| 5791 |
| 5792 void RenderView::OnStartPhishingDetection(const GURL& url) { |
| 5793 if (phishing_delegate_.get()) { |
| 5794 phishing_delegate_->OnStartPhishingDetection(url); |
| 5795 } |
| 5796 } |
| OLD | NEW |