| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/renderer/browser_plugin/browser_plugin.h" | 5 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus) | 95 IPC_MESSAGE_HANDLER(BrowserPluginMsg_AdvanceFocus, OnAdvanceFocus) |
| 96 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginMsg_CompositorFrameSwapped, | 96 IPC_MESSAGE_HANDLER_GENERIC(BrowserPluginMsg_CompositorFrameSwapped, |
| 97 OnCompositorFrameSwapped(message)) | 97 OnCompositorFrameSwapped(message)) |
| 98 IPC_MESSAGE_HANDLER(BrowserPluginMsg_GuestGone, OnGuestGone) | 98 IPC_MESSAGE_HANDLER(BrowserPluginMsg_GuestGone, OnGuestGone) |
| 99 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetContentsOpaque, OnSetContentsOpaque) | 99 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetContentsOpaque, OnSetContentsOpaque) |
| 100 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetCursor, OnSetCursor) | 100 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetCursor, OnSetCursor) |
| 101 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetMouseLock, OnSetMouseLock) | 101 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetMouseLock, OnSetMouseLock) |
| 102 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetTooltipText, OnSetTooltipText) | 102 IPC_MESSAGE_HANDLER(BrowserPluginMsg_SetTooltipText, OnSetTooltipText) |
| 103 IPC_MESSAGE_HANDLER(BrowserPluginMsg_ShouldAcceptTouchEvents, | 103 IPC_MESSAGE_HANDLER(BrowserPluginMsg_ShouldAcceptTouchEvents, |
| 104 OnShouldAcceptTouchEvents) | 104 OnShouldAcceptTouchEvents) |
| 105 IPC_MESSAGE_UNHANDLED( | |
| 106 handled = delegate_ && delegate_->OnMessageReceived(message)) | |
| 107 IPC_END_MESSAGE_MAP() | 105 IPC_END_MESSAGE_MAP() |
| 108 return handled; | 106 return handled; |
| 109 } | 107 } |
| 110 | 108 |
| 111 void BrowserPlugin::UpdateDOMAttribute(const std::string& attribute_name, | 109 void BrowserPlugin::UpdateDOMAttribute(const std::string& attribute_name, |
| 112 const base::string16& attribute_value) { | 110 const base::string16& attribute_value) { |
| 113 if (!container()) | 111 if (!container()) |
| 114 return; | 112 return; |
| 115 | 113 |
| 116 blink::WebElement element = container()->element(); | 114 blink::WebElement element = container()->element(); |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 bool BrowserPlugin::HandleMouseLockedInputEvent( | 610 bool BrowserPlugin::HandleMouseLockedInputEvent( |
| 613 const blink::WebMouseEvent& event) { | 611 const blink::WebMouseEvent& event) { |
| 614 BrowserPluginManager::Get()->Send( | 612 BrowserPluginManager::Get()->Send( |
| 615 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, | 613 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, |
| 616 view_rect_, | 614 view_rect_, |
| 617 &event)); | 615 &event)); |
| 618 return true; | 616 return true; |
| 619 } | 617 } |
| 620 | 618 |
| 621 } // namespace content | 619 } // namespace content |
| OLD | NEW |