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

Side by Side Diff: base/message_loop/message_loop.cc

Issue 244093002: x11: Make the event-source work with both glib and libevent message-pumps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
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 "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 #if !defined(OS_NACL) && defined(OS_WIN) 663 #if !defined(OS_NACL) && defined(OS_WIN)
664 void MessageLoopForUI::AddObserver(Observer* observer) { 664 void MessageLoopForUI::AddObserver(Observer* observer) {
665 pump_ui()->AddObserver(observer); 665 pump_ui()->AddObserver(observer);
666 } 666 }
667 667
668 void MessageLoopForUI::RemoveObserver(Observer* observer) { 668 void MessageLoopForUI::RemoveObserver(Observer* observer) {
669 pump_ui()->RemoveObserver(observer); 669 pump_ui()->RemoveObserver(observer);
670 } 670 }
671 #endif // !defined(OS_NACL) && defined(OS_WIN) 671 #endif // !defined(OS_NACL) && defined(OS_WIN)
672 672
673 #if defined(USE_OZONE) && !defined(OS_NACL) 673 #if !defined(OS_NACL) && \
674 (defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)))
674 bool MessageLoopForUI::WatchFileDescriptor( 675 bool MessageLoopForUI::WatchFileDescriptor(
675 int fd, 676 int fd,
676 bool persistent, 677 bool persistent,
677 MessagePumpLibevent::Mode mode, 678 MessagePumpLibevent::Mode mode,
678 MessagePumpLibevent::FileDescriptorWatcher *controller, 679 MessagePumpLibevent::FileDescriptorWatcher *controller,
679 MessagePumpLibevent::Watcher *delegate) { 680 MessagePumpLibevent::Watcher *delegate) {
680 return pump_libevent()->WatchFileDescriptor( 681 return pump_libevent()->WatchFileDescriptor(
681 fd, 682 fd,
682 persistent, 683 persistent,
683 mode, 684 mode,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 fd, 730 fd,
730 persistent, 731 persistent,
731 mode, 732 mode,
732 controller, 733 controller,
733 delegate); 734 delegate);
734 } 735 }
735 736
736 #endif 737 #endif
737 738
738 } // namespace base 739 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.h ('k') | chrome/browser/ui/aura/chrome_browser_main_extra_parts_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698