OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/pepper/pepper_plugin_delegate_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <cstddef> | 8 #include <cstddef> |
9 #include <map> | 9 #include <map> |
10 #include <queue> | 10 #include <queue> |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 } | 223 } |
224 virtual void DidFail(quota::QuotaStatusCode error) OVERRIDE { | 224 virtual void DidFail(quota::QuotaStatusCode error) OVERRIDE { |
225 callback_.Run(0); | 225 callback_.Run(0); |
226 } | 226 } |
227 private: | 227 private: |
228 PluginCallback callback_; | 228 PluginCallback callback_; |
229 }; | 229 }; |
230 | 230 |
231 class PluginInstanceLockTarget : public MouseLockDispatcher::LockTarget { | 231 class PluginInstanceLockTarget : public MouseLockDispatcher::LockTarget { |
232 public: | 232 public: |
233 PluginInstanceLockTarget(webkit::ppapi::PluginInstance* plugin) | 233 explicit PluginInstanceLockTarget(webkit::ppapi::PluginInstance* plugin) |
234 : plugin_(plugin) {} | 234 : plugin_(plugin) {} |
235 | 235 |
236 virtual void OnLockMouseACK(bool succeeded) OVERRIDE { | 236 virtual void OnLockMouseACK(bool succeeded) OVERRIDE { |
237 plugin_->OnLockMouseACK(succeeded); | 237 plugin_->OnLockMouseACK(succeeded); |
238 } | 238 } |
239 | 239 |
240 virtual void OnMouseLockLost() OVERRIDE { | 240 virtual void OnMouseLockLost() OVERRIDE { |
241 plugin_->OnMouseLockLost(); | 241 plugin_->OnMouseLockLost(); |
242 } | 242 } |
243 | 243 |
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 RenderWidgetFullscreenPepper* container = | 1729 RenderWidgetFullscreenPepper* container = |
1730 static_cast<RenderWidgetFullscreenPepper*>( | 1730 static_cast<RenderWidgetFullscreenPepper*>( |
1731 instance->fullscreen_container()); | 1731 instance->fullscreen_container()); |
1732 return container->mouse_lock_dispatcher(); | 1732 return container->mouse_lock_dispatcher(); |
1733 } else { | 1733 } else { |
1734 return render_view_->mouse_lock_dispatcher(); | 1734 return render_view_->mouse_lock_dispatcher(); |
1735 } | 1735 } |
1736 } | 1736 } |
1737 | 1737 |
1738 } // namespace content | 1738 } // namespace content |
OLD | NEW |