Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest_helper.cc

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Splitting up patch Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698