| 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_instance_impl.h" | 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 } | 349 } |
| 350 #endif // defined(OS_CHROMEOS) | 350 #endif // defined(OS_CHROMEOS) |
| 351 return false; | 351 return false; |
| 352 } | 352 } |
| 353 | 353 |
| 354 class PluginInstanceLockTarget : public MouseLockDispatcher::LockTarget { | 354 class PluginInstanceLockTarget : public MouseLockDispatcher::LockTarget { |
| 355 public: | 355 public: |
| 356 PluginInstanceLockTarget(PepperPluginInstanceImpl* plugin) | 356 PluginInstanceLockTarget(PepperPluginInstanceImpl* plugin) |
| 357 : plugin_(plugin) {} | 357 : plugin_(plugin) {} |
| 358 | 358 |
| 359 virtual void OnLockMouseACK(bool succeeded) OVERRIDE { | 359 virtual void OnLockMouseACK(bool succeeded) override { |
| 360 plugin_->OnLockMouseACK(succeeded); | 360 plugin_->OnLockMouseACK(succeeded); |
| 361 } | 361 } |
| 362 | 362 |
| 363 virtual void OnMouseLockLost() OVERRIDE { plugin_->OnMouseLockLost(); } | 363 virtual void OnMouseLockLost() override { plugin_->OnMouseLockLost(); } |
| 364 | 364 |
| 365 virtual bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) | 365 virtual bool HandleMouseLockedInputEvent(const blink::WebMouseEvent& event) |
| 366 OVERRIDE { | 366 override { |
| 367 plugin_->HandleMouseLockedInputEvent(event); | 367 plugin_->HandleMouseLockedInputEvent(event); |
| 368 return true; | 368 return true; |
| 369 } | 369 } |
| 370 | 370 |
| 371 private: | 371 private: |
| 372 PepperPluginInstanceImpl* plugin_; | 372 PepperPluginInstanceImpl* plugin_; |
| 373 }; | 373 }; |
| 374 | 374 |
| 375 void InitLatencyInfo(ui::LatencyInfo* new_latency, | 375 void InitLatencyInfo(ui::LatencyInfo* new_latency, |
| 376 const ui::LatencyInfo* old_latency, | 376 const ui::LatencyInfo* old_latency, |
| (...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3300 void PepperPluginInstanceImpl::SetPluginThrottled(bool throttled) { | 3300 void PepperPluginInstanceImpl::SetPluginThrottled(bool throttled) { |
| 3301 // Do not throttle if we've already disabled power saver. | 3301 // Do not throttle if we've already disabled power saver. |
| 3302 if (!power_saver_enabled_ && throttled) | 3302 if (!power_saver_enabled_ && throttled) |
| 3303 return; | 3303 return; |
| 3304 | 3304 |
| 3305 plugin_throttled_ = throttled; | 3305 plugin_throttled_ = throttled; |
| 3306 SendDidChangeView(); | 3306 SendDidChangeView(); |
| 3307 } | 3307 } |
| 3308 | 3308 |
| 3309 } // namespace content | 3309 } // namespace content |
| OLD | NEW |