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

Side by Side Diff: content/renderer/pepper/plugin_instance_throttler_impl.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/plugin_instance_throttler_impl.h" 5 #include "content/renderer/pepper/plugin_instance_throttler_impl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/metrics/histogram_macros.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/public/common/content_constants.h" 10 #include "content/public/common/content_constants.h"
11 #include "content/public/renderer/render_thread.h" 11 #include "content/public/renderer/render_thread.h"
12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
13 #include "content/renderer/render_frame_impl.h" 13 #include "content/renderer/render_frame_impl.h"
14 #include "ppapi/shared_impl/ppapi_constants.h" 14 #include "ppapi/shared_impl/ppapi_constants.h"
15 #include "third_party/WebKit/public/platform/WebInputEvent.h"
15 #include "third_party/WebKit/public/platform/WebRect.h" 16 #include "third_party/WebKit/public/platform/WebRect.h"
16 #include "third_party/WebKit/public/web/WebInputEvent.h"
17 #include "third_party/WebKit/public/web/WebLocalFrame.h" 17 #include "third_party/WebKit/public/web/WebLocalFrame.h"
18 #include "third_party/WebKit/public/web/WebPluginContainer.h" 18 #include "third_party/WebKit/public/web/WebPluginContainer.h"
19 #include "third_party/WebKit/public/web/WebPluginParams.h" 19 #include "third_party/WebKit/public/web/WebPluginParams.h"
20 #include "third_party/WebKit/public/web/WebView.h" 20 #include "third_party/WebKit/public/web/WebView.h"
21 #include "ui/gfx/color_utils.h" 21 #include "ui/gfx/color_utils.h"
22 #include "url/origin.h" 22 #include "url/origin.h"
23 23
24 namespace content { 24 namespace content {
25 25
26 namespace { 26 namespace {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Release our reference to the underlying pixel data. 225 // Release our reference to the underlying pixel data.
226 last_received_frame_.reset(); 226 last_received_frame_.reset();
227 } 227 }
228 228
229 state_ = THROTTLER_STATE_PLUGIN_THROTTLED; 229 state_ = THROTTLER_STATE_PLUGIN_THROTTLED;
230 for (auto& observer : observer_list_) 230 for (auto& observer : observer_list_)
231 observer.OnThrottleStateChange(); 231 observer.OnThrottleStateChange();
232 } 232 }
233 233
234 } // namespace content 234 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698