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

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

Issue 11554030: <webview>: Add name attribute (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added tests Created 8 years 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 | Annotate | Revision Log
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/browser/web_contents/web_contents_impl.h" 8 #include "content/browser/web_contents/web_contents_impl.h"
9 #include "content/common/drag_messages.h" 9 #include "content/common/drag_messages.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 22 matching lines...) Expand all
33 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowWidget, OnShowWidget) 33 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowWidget, OnShowWidget)
34 IPC_MESSAGE_HANDLER(ViewHostMsg_HasTouchEventHandlers, 34 IPC_MESSAGE_HANDLER(ViewHostMsg_HasTouchEventHandlers,
35 OnMsgHasTouchEventHandlers) 35 OnMsgHasTouchEventHandlers)
36 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor) 36 IPC_MESSAGE_HANDLER(ViewHostMsg_SetCursor, OnSetCursor)
37 #if defined(OS_MACOSX) 37 #if defined(OS_MACOSX)
38 // MacOSX creates and populates platform-specific select drop-down menus 38 // MacOSX creates and populates platform-specific select drop-down menus
39 // whereas other platforms merely create a popup window that the guest 39 // whereas other platforms merely create a popup window that the guest
40 // renderer process paints inside. 40 // renderer process paints inside.
41 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup) 41 IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup)
42 #endif 42 #endif
43 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateFrameName, OnUpdateFrameName)
43 IPC_MESSAGE_UNHANDLED(handled = false) 44 IPC_MESSAGE_UNHANDLED(handled = false)
44 IPC_END_MESSAGE_MAP() 45 IPC_END_MESSAGE_MAP()
45 return handled; 46 return handled;
46 } 47 }
47 48
48 void BrowserPluginGuestHelper::OnUpdateDragCursor( 49 void BrowserPluginGuestHelper::OnUpdateDragCursor(
49 WebKit::WebDragOperation current_op) { 50 WebKit::WebDragOperation current_op) {
50 guest_->UpdateDragCursor(current_op); 51 guest_->UpdateDragCursor(current_op);
51 } 52 }
52 53
(...skipping 26 matching lines...) Expand all
79 guest_->SetCursor(cursor); 80 guest_->SetCursor(cursor);
80 } 81 }
81 82
82 #if defined(OS_MACOSX) 83 #if defined(OS_MACOSX)
83 void BrowserPluginGuestHelper::OnShowPopup( 84 void BrowserPluginGuestHelper::OnShowPopup(
84 const ViewHostMsg_ShowPopup_Params& params) { 85 const ViewHostMsg_ShowPopup_Params& params) {
85 guest_->ShowPopup(render_view_host(), params); 86 guest_->ShowPopup(render_view_host(), params);
86 } 87 }
87 #endif 88 #endif
88 89
90 void BrowserPluginGuestHelper::OnUpdateFrameName(int frame_id,
91 bool is_top_level,
92 const std::string& name) {
93 guest_->UpdateFrameName(frame_id, is_top_level, name);
94 }
95
89 } // namespace content 96 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698