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_DragStopped::ID: |
36 case ViewHostMsg_HandleInputEvent_ACK::ID: | 37 case ViewHostMsg_HandleInputEvent_ACK::ID: |
37 case ViewHostMsg_HasTouchEventHandlers::ID: | 38 case ViewHostMsg_HasTouchEventHandlers::ID: |
38 case ViewHostMsg_SetCursor::ID: | 39 case ViewHostMsg_SetCursor::ID: |
39 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
40 case ViewHostMsg_ShowPopup::ID: | 41 case ViewHostMsg_ShowPopup::ID: |
41 #endif | 42 #endif |
42 case ViewHostMsg_ShowWidget::ID: | 43 case ViewHostMsg_ShowWidget::ID: |
43 case ViewHostMsg_TakeFocus::ID: | 44 case ViewHostMsg_TakeFocus::ID: |
44 case ViewHostMsg_UpdateFrameName::ID: | 45 case ViewHostMsg_UpdateFrameName::ID: |
45 case ViewHostMsg_UpdateRect::ID: | 46 case ViewHostMsg_UpdateRect::ID: |
46 return true; | 47 return true; |
47 default: | 48 default: |
48 break; | 49 break; |
49 } | 50 } |
50 return false; | 51 return false; |
51 } | 52 } |
52 | 53 |
53 } // namespace content | 54 } // namespace content |
OLD | NEW |