| 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/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 | 366 |
| 367 container_ = NULL; | 367 container_ = NULL; |
| 368 // Will be a no-op if the mouse is not currently locked. | 368 // Will be a no-op if the mouse is not currently locked. |
| 369 RenderViewImpl* render_view = | 369 RenderViewImpl* render_view = |
| 370 RenderViewImpl::FromRoutingID(render_view_routing_id()); | 370 RenderViewImpl::FromRoutingID(render_view_routing_id()); |
| 371 if (render_view) | 371 if (render_view) |
| 372 render_view->mouse_lock_dispatcher()->OnLockTargetDestroyed(this); | 372 render_view->mouse_lock_dispatcher()->OnLockTargetDestroyed(this); |
| 373 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 373 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
| 374 } | 374 } |
| 375 | 375 |
| 376 v8::Local<v8::Object> BrowserPlugin::v8ScriptableObject(v8::Isolate* isolate) { |
| 377 return delegate_->V8ScriptableObject(isolate); |
| 378 } |
| 379 |
| 376 bool BrowserPlugin::supportsKeyboardFocus() const { | 380 bool BrowserPlugin::supportsKeyboardFocus() const { |
| 377 return true; | 381 return true; |
| 378 } | 382 } |
| 379 | 383 |
| 380 bool BrowserPlugin::supportsEditCommands() const { | 384 bool BrowserPlugin::supportsEditCommands() const { |
| 381 return true; | 385 return true; |
| 382 } | 386 } |
| 383 | 387 |
| 384 bool BrowserPlugin::supportsInputMethod() const { | 388 bool BrowserPlugin::supportsInputMethod() const { |
| 385 return true; | 389 return true; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 const blink::WebMouseEvent& event) { | 665 const blink::WebMouseEvent& event) { |
| 662 BrowserPluginManager::Get()->Send( | 666 BrowserPluginManager::Get()->Send( |
| 663 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, | 667 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, |
| 664 browser_plugin_instance_id_, | 668 browser_plugin_instance_id_, |
| 665 plugin_rect_, | 669 plugin_rect_, |
| 666 &event)); | 670 &event)); |
| 667 return true; | 671 return true; |
| 668 } | 672 } |
| 669 | 673 |
| 670 } // namespace content | 674 } // namespace content |
| OLD | NEW |