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

Side by Side Diff: base/message_pump_glib.cc

Issue 132007: Linux: plumb fontconfig call out to the sandbox host. (Closed)
Patch Set: ... Created 11 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_sandbox_host_linux.cc » ('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 "base/eintr_wrapper.h" 10 #include "base/eintr_wrapper.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 state_->has_work = true; 260 state_->has_work = true;
261 } 261 }
262 262
263 if (state_->should_quit) 263 if (state_->should_quit)
264 return; 264 return;
265 265
266 state_->delegate->DoDelayedWork(&delayed_work_time_); 266 state_->delegate->DoDelayedWork(&delayed_work_time_);
267 } 267 }
268 268
269 void MessagePumpForUI::AddObserver(Observer* observer) { 269 void MessagePumpForUI::AddObserver(Observer* observer) {
270 LOG(ERROR) << "AddObserver";
270 observers_.AddObserver(observer); 271 observers_.AddObserver(observer);
271 } 272 }
272 273
273 void MessagePumpForUI::RemoveObserver(Observer* observer) { 274 void MessagePumpForUI::RemoveObserver(Observer* observer) {
275 LOG(ERROR) << "RemoveObserver";
274 observers_.RemoveObserver(observer); 276 observers_.RemoveObserver(observer);
275 } 277 }
276 278
277 void MessagePumpForUI::WillProcessEvent(GdkEvent* event) { 279 void MessagePumpForUI::WillProcessEvent(GdkEvent* event) {
278 FOR_EACH_OBSERVER(Observer, observers_, WillProcessEvent(event)); 280 FOR_EACH_OBSERVER(Observer, observers_, WillProcessEvent(event));
279 } 281 }
280 282
281 void MessagePumpForUI::DidProcessEvent(GdkEvent* event) { 283 void MessagePumpForUI::DidProcessEvent(GdkEvent* event) {
282 FOR_EACH_OBSERVER(Observer, observers_, DidProcessEvent(event)); 284 FOR_EACH_OBSERVER(Observer, observers_, DidProcessEvent(event));
283 } 285 }
(...skipping 24 matching lines...) Expand all
308 } 310 }
309 311
310 // static 312 // static
311 void MessagePumpForUI::EventDispatcher(GdkEvent* event, gpointer data) { 313 void MessagePumpForUI::EventDispatcher(GdkEvent* event, gpointer data) {
312 reinterpret_cast<MessagePumpForUI*>(data)->WillProcessEvent(event); 314 reinterpret_cast<MessagePumpForUI*>(data)->WillProcessEvent(event);
313 gtk_main_do_event(event); 315 gtk_main_do_event(event);
314 reinterpret_cast<MessagePumpForUI*>(data)->DidProcessEvent(event); 316 reinterpret_cast<MessagePumpForUI*>(data)->DidProcessEvent(event);
315 } 317 }
316 318
317 } // namespace base 319 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_sandbox_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698