OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_plugin/browser_plugin_guest_helper.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest_helper.h" |
6 | 6 |
7 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 7 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
8 #include "content/common/drag_messages.h" | 8 #include "content/common/drag_messages.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/public/browser/render_view_host.h" | 10 #include "content/public/browser/render_view_host.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 const IPC::Message& message) { | 25 const IPC::Message& message) { |
26 if (ShouldForwardToBrowserPluginGuest(message)) | 26 if (ShouldForwardToBrowserPluginGuest(message)) |
27 return guest_->OnMessageReceived(message); | 27 return guest_->OnMessageReceived(message); |
28 return false; | 28 return false; |
29 } | 29 } |
30 | 30 |
31 // static | 31 // static |
32 bool BrowserPluginGuestHelper::ShouldForwardToBrowserPluginGuest( | 32 bool BrowserPluginGuestHelper::ShouldForwardToBrowserPluginGuest( |
33 const IPC::Message& message) { | 33 const IPC::Message& message) { |
34 switch (message.type()) { | 34 switch (message.type()) { |
35 case DragHostMsg_UpdateDragCursor::ID: | 35 case DragHostMsg_StartDragging::ID: |
| 36 case DragHostMsg_TargetDrop_ACK::ID: |
36 case ViewHostMsg_HasTouchEventHandlers::ID: | 37 case ViewHostMsg_HasTouchEventHandlers::ID: |
37 case ViewHostMsg_SetCursor::ID: | 38 case ViewHostMsg_SetCursor::ID: |
38 #if defined(OS_MACOSX) | 39 #if defined(OS_MACOSX) |
39 case ViewHostMsg_ShowPopup::ID: | 40 case ViewHostMsg_ShowPopup::ID: |
40 #endif | 41 #endif |
41 case ViewHostMsg_ShowWidget::ID: | 42 case ViewHostMsg_ShowWidget::ID: |
42 case ViewHostMsg_TakeFocus::ID: | 43 case ViewHostMsg_TakeFocus::ID: |
43 case ViewHostMsg_UpdateFrameName::ID: | 44 case ViewHostMsg_UpdateFrameName::ID: |
44 case ViewHostMsg_UpdateRect::ID: | 45 case ViewHostMsg_UpdateRect::ID: |
45 case ViewHostMsg_LockMouse::ID: | 46 case ViewHostMsg_LockMouse::ID: |
46 case ViewHostMsg_UnlockMouse::ID: | 47 case ViewHostMsg_UnlockMouse::ID: |
47 return true; | 48 return true; |
48 default: | 49 default: |
49 break; | 50 break; |
50 } | 51 } |
51 return false; | 52 return false; |
52 } | 53 } |
53 | 54 |
54 } // namespace content | 55 } // namespace content |
OLD | NEW |