OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/guestview/guestview.h" | 5 #include "chrome/browser/guestview/guestview.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "chrome/browser/guestview/adview/adview_guest.h" | 8 #include "chrome/browser/guestview/adview/adview_guest.h" |
9 #include "chrome/browser/guestview/guestview_constants.h" | 9 #include "chrome/browser/guestview/guestview_constants.h" |
10 #include "chrome/browser/guestview/webview/webview_guest.h" | 10 #include "chrome/browser/guestview/webview/webview_guest.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 void GuestView::SendQueuedEvents() { | 214 void GuestView::SendQueuedEvents() { |
215 if (!attached()) | 215 if (!attached()) |
216 return; | 216 return; |
217 | 217 |
218 while (!pending_events_.empty()) { | 218 while (!pending_events_.empty()) { |
219 linked_ptr<Event> event_ptr = pending_events_.front(); | 219 linked_ptr<Event> event_ptr = pending_events_.front(); |
220 pending_events_.pop_front(); | 220 pending_events_.pop_front(); |
221 DispatchEvent(event_ptr.release()); | 221 DispatchEvent(event_ptr.release()); |
222 } | 222 } |
223 } | 223 } |
OLD | NEW |