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

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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698