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

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

Issue 387623002: Fix the build when use_glib is set to 0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix use_glib is set to 0 on linux and chromeos Created 6 years, 5 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 | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 #if defined(OS_WIN) 679 #if defined(OS_WIN)
680 void MessageLoopForUI::AddObserver(Observer* observer) { 680 void MessageLoopForUI::AddObserver(Observer* observer) {
681 static_cast<MessagePumpWin*>(pump_.get())->AddObserver(observer); 681 static_cast<MessagePumpWin*>(pump_.get())->AddObserver(observer);
682 } 682 }
683 683
684 void MessageLoopForUI::RemoveObserver(Observer* observer) { 684 void MessageLoopForUI::RemoveObserver(Observer* observer) {
685 static_cast<MessagePumpWin*>(pump_.get())->RemoveObserver(observer); 685 static_cast<MessagePumpWin*>(pump_.get())->RemoveObserver(observer);
686 } 686 }
687 #endif // defined(OS_WIN) 687 #endif // defined(OS_WIN)
688 688
689 #if defined(USE_OZONE) || (defined(OS_CHROMEOS) && !defined(USE_GLIB)) 689 #if defined(USE_OZONE) || (defined(USE_X11) && !defined(USE_GLIB))
690 bool MessageLoopForUI::WatchFileDescriptor( 690 bool MessageLoopForUI::WatchFileDescriptor(
691 int fd, 691 int fd,
692 bool persistent, 692 bool persistent,
693 MessagePumpLibevent::Mode mode, 693 MessagePumpLibevent::Mode mode,
694 MessagePumpLibevent::FileDescriptorWatcher *controller, 694 MessagePumpLibevent::FileDescriptorWatcher *controller,
695 MessagePumpLibevent::Watcher *delegate) { 695 MessagePumpLibevent::Watcher *delegate) {
696 return static_cast<MessagePumpLibevent*>(pump_.get())->WatchFileDescriptor( 696 return static_cast<MessagePumpLibevent*>(pump_.get())->WatchFileDescriptor(
697 fd, 697 fd,
698 persistent, 698 persistent,
699 mode, 699 mode,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 persistent, 741 persistent,
742 mode, 742 mode,
743 controller, 743 controller,
744 delegate); 744 delegate);
745 } 745 }
746 #endif 746 #endif
747 747
748 #endif // !defined(OS_NACL) 748 #endif // !defined(OS_NACL)
749 749
750 } // namespace base 750 } // namespace base
OLDNEW
« no previous file with comments | « base/message_loop/message_loop.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698