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 <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 PluginContainerMap::iterator it = browser_plugins->find(container); | 61 PluginContainerMap::iterator it = browser_plugins->find(container); |
62 return it == browser_plugins->end() ? nullptr : it->second; | 62 return it == browser_plugins->end() ? nullptr : it->second; |
63 } | 63 } |
64 | 64 |
65 BrowserPlugin::BrowserPlugin( | 65 BrowserPlugin::BrowserPlugin( |
66 RenderFrame* render_frame, | 66 RenderFrame* render_frame, |
67 const base::WeakPtr<BrowserPluginDelegate>& delegate) | 67 const base::WeakPtr<BrowserPluginDelegate>& delegate) |
68 : attached_(false), | 68 : attached_(false), |
69 render_frame_routing_id_(render_frame->GetRoutingID()), | 69 render_frame_routing_id_(render_frame->GetRoutingID()), |
70 container_(nullptr), | 70 container_(nullptr), |
71 sad_guest_(nullptr), | |
72 guest_crashed_(false), | 71 guest_crashed_(false), |
73 plugin_focused_(false), | 72 plugin_focused_(false), |
74 visible_(true), | 73 visible_(true), |
75 mouse_locked_(false), | 74 mouse_locked_(false), |
76 ready_(false), | 75 ready_(false), |
77 browser_plugin_instance_id_(browser_plugin::kInstanceIDNone), | 76 browser_plugin_instance_id_(browser_plugin::kInstanceIDNone), |
78 delegate_(delegate), | 77 delegate_(delegate), |
79 weak_ptr_factory_(this) { | 78 weak_ptr_factory_(this) { |
80 browser_plugin_instance_id_ = | 79 browser_plugin_instance_id_ = |
81 BrowserPluginManager::Get()->GetNextInstanceID(); | 80 BrowserPluginManager::Get()->GetNextInstanceID(); |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 | 567 |
569 bool BrowserPlugin::HandleMouseLockedInputEvent( | 568 bool BrowserPlugin::HandleMouseLockedInputEvent( |
570 const blink::WebMouseEvent& event) { | 569 const blink::WebMouseEvent& event) { |
571 BrowserPluginManager::Get()->Send( | 570 BrowserPluginManager::Get()->Send( |
572 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, | 571 new BrowserPluginHostMsg_HandleInputEvent(browser_plugin_instance_id_, |
573 &event)); | 572 &event)); |
574 return true; | 573 return true; |
575 } | 574 } |
576 | 575 |
577 } // namespace content | 576 } // namespace content |
OLD | NEW |