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

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.cc

Issue 729333002: Add PostMessage support for MimeHandlerView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 g_plugin_container_map.Get().erase(container_); 353 g_plugin_container_map.Get().erase(container_);
354 } 354 }
355 355
356 container_ = NULL; 356 container_ = NULL;
357 // Will be a no-op if the mouse is not currently locked. 357 // Will be a no-op if the mouse is not currently locked.
358 if (render_view_) 358 if (render_view_)
359 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(this); 359 render_view_->mouse_lock_dispatcher()->OnLockTargetDestroyed(this);
360 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 360 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
361 } 361 }
362 362
363 v8::Local<v8::Object> BrowserPlugin::v8ScriptableObject(v8::Isolate* isolate) {
364 return delegate_->v8ScriptableObject(isolate);
365 }
366
363 bool BrowserPlugin::supportsKeyboardFocus() const { 367 bool BrowserPlugin::supportsKeyboardFocus() const {
364 return true; 368 return true;
365 } 369 }
366 370
367 bool BrowserPlugin::supportsEditCommands() const { 371 bool BrowserPlugin::supportsEditCommands() const {
368 return true; 372 return true;
369 } 373 }
370 374
371 bool BrowserPlugin::supportsInputMethod() const { 375 bool BrowserPlugin::supportsInputMethod() const {
372 return true; 376 return true;
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 const blink::WebMouseEvent& event) { 651 const blink::WebMouseEvent& event) {
648 browser_plugin_manager()->Send( 652 browser_plugin_manager()->Send(
649 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, 653 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_,
650 browser_plugin_instance_id_, 654 browser_plugin_instance_id_,
651 plugin_rect_, 655 plugin_rect_,
652 &event)); 656 &event));
653 return true; 657 return true;
654 } 658 }
655 659
656 } // namespace content 660 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698