Index: content/common/input/web_input_event_queue.h |
diff --git a/content/common/input/web_input_event_queue.h b/content/common/input/web_input_event_queue.h |
index d8ccdd60a091cfca0a0530d0cb8cf5a1b5a4dee9..5dc2ba1f0f9044e0cbb5437f4812fe3b39b3dde3 100644 |
--- a/content/common/input/web_input_event_queue.h |
+++ b/content/common/input/web_input_event_queue.h |
@@ -56,6 +56,11 @@ class WebInputEventQueue { |
return result; |
} |
+ const std::unique_ptr<T>& Top() { |
tdresser
2016/07/20 21:43:08
Why Top instead of front?
|
+ DCHECK(!empty()); |
+ return queue_.front(); |
+ } |
+ |
bool empty() const { return queue_.empty(); } |
size_t size() const { return queue_.size(); } |