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

Unified Diff: content/browser/renderer_host/input/mouse_wheel_event_queue.h

Issue 2435863004: Remove stl_util's deletion function use from content/. (Closed)
Patch Set: minus service worker Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/input/mouse_wheel_event_queue.h
diff --git a/content/browser/renderer_host/input/mouse_wheel_event_queue.h b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
index 6b1387c718308e52df996df97a52dca7d8bba3f1..99d5af9e96c2bd2ace893cb36b968f3f9a6f5ac9 100644
--- a/content/browser/renderer_host/input/mouse_wheel_event_queue.h
+++ b/content/browser/renderer_host/input/mouse_wheel_event_queue.h
@@ -6,6 +6,7 @@
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_MOUSE_WHEEL_EVENT_QUEUE_H_
#include <deque>
+#include <memory>
#include "base/time/time.h"
#include "base/timer/timer.h"
@@ -86,8 +87,7 @@ class CONTENT_EXPORT MouseWheelEventQueue {
MouseWheelEventQueueClient* client_;
base::OneShotTimer scroll_end_timer_;
- typedef std::deque<QueuedWebMouseWheelEvent*> WheelEventQueue;
- WheelEventQueue wheel_queue_;
+ std::deque<std::unique_ptr<QueuedWebMouseWheelEvent>> wheel_queue_;
std::unique_ptr<QueuedWebMouseWheelEvent> event_sent_for_gesture_ack_;
// True if a non-synthetic GSB needs to be sent before a GSU is sent.

Powered by Google App Engine
This is Rietveld 408576698