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

Side by Side Diff: base/message_pump_glib.cc

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « base/message_pump_glib.h ('k') | base/metrics/histogram.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 "base/message_pump_glib.h" 5 #include "base/message_pump_glib.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <math.h> 8 #include <math.h>
9 9
10 #include <gtk/gtk.h> 10 #include <gtk/gtk.h>
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 } 308 }
309 309
310 void MessagePumpForUI::WillProcessEvent(GdkEvent* event) { 310 void MessagePumpForUI::WillProcessEvent(GdkEvent* event) {
311 FOR_EACH_OBSERVER(Observer, observers_, WillProcessEvent(event)); 311 FOR_EACH_OBSERVER(Observer, observers_, WillProcessEvent(event));
312 } 312 }
313 313
314 void MessagePumpForUI::DidProcessEvent(GdkEvent* event) { 314 void MessagePumpForUI::DidProcessEvent(GdkEvent* event) {
315 FOR_EACH_OBSERVER(Observer, observers_, DidProcessEvent(event)); 315 FOR_EACH_OBSERVER(Observer, observers_, DidProcessEvent(event));
316 } 316 }
317 317
318 void MessagePumpForUI::Run(Delegate* delegate) {
319 RunWithDispatcher(delegate, NULL);
320 }
321
318 void MessagePumpForUI::Quit() { 322 void MessagePumpForUI::Quit() {
319 if (state_) { 323 if (state_) {
320 state_->should_quit = true; 324 state_->should_quit = true;
321 } else { 325 } else {
322 NOTREACHED() << "Quit called outside Run!"; 326 NOTREACHED() << "Quit called outside Run!";
323 } 327 }
324 } 328 }
325 329
326 void MessagePumpForUI::ScheduleWork() { 330 void MessagePumpForUI::ScheduleWork() {
327 // This can be called on any thread, so we don't want to touch any state 331 // This can be called on any thread, so we don't want to touch any state
(...skipping 23 matching lines...) Expand all
351 DidProcessEvent(event); 355 DidProcessEvent(event);
352 } 356 }
353 357
354 // static 358 // static
355 void MessagePumpForUI::EventDispatcher(GdkEvent* event, gpointer data) { 359 void MessagePumpForUI::EventDispatcher(GdkEvent* event, gpointer data) {
356 MessagePumpForUI* message_pump = reinterpret_cast<MessagePumpForUI*>(data); 360 MessagePumpForUI* message_pump = reinterpret_cast<MessagePumpForUI*>(data);
357 message_pump->DispatchEvents(event); 361 message_pump->DispatchEvents(event);
358 } 362 }
359 363
360 } // namespace base 364 } // namespace base
OLDNEW
« no previous file with comments | « base/message_pump_glib.h ('k') | base/metrics/histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698