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

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

Issue 23880006: gtk: Allow building both the X11 and Gtk message-pumps for gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 5 #ifndef BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 6 #define BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 592
593 #if defined(OS_WIN) 593 #if defined(OS_WIN)
594 // Plese see MessagePumpForUI for definitions of this method. 594 // Plese see MessagePumpForUI for definitions of this method.
595 void SetMessageFilter(scoped_ptr<MessageFilter> message_filter) { 595 void SetMessageFilter(scoped_ptr<MessageFilter> message_filter) {
596 pump_ui()->SetMessageFilter(message_filter.Pass()); 596 pump_ui()->SetMessageFilter(message_filter.Pass());
597 } 597 }
598 #endif 598 #endif
599 599
600 protected: 600 protected:
601 #if defined(USE_AURA) && defined(USE_X11) && !defined(OS_NACL) 601 #if defined(USE_AURA) && defined(USE_X11) && !defined(OS_NACL)
602 friend class MessagePumpAuraX11; 602 friend class MessagePumpX11;
603 #endif 603 #endif
604 #if defined(USE_OZONE) && !defined(OS_NACL) 604 #if defined(USE_OZONE) && !defined(OS_NACL)
605 friend class MessagePumpOzone; 605 friend class MessagePumpOzone;
606 #endif 606 #endif
607 607
608 // TODO(rvargas): Make this platform independent. 608 // TODO(rvargas): Make this platform independent.
609 MessagePumpForUI* pump_ui() { 609 MessagePumpForUI* pump_ui() {
610 return static_cast<MessagePumpForUI*>(pump_.get()); 610 return static_cast<MessagePumpForUI*>(pump_.get());
611 } 611 }
612 #endif // !defined(OS_MACOSX) 612 #endif // !defined(OS_MACOSX)
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 716
717 // Do not add any member variables to MessageLoopForIO! This is important b/c 717 // Do not add any member variables to MessageLoopForIO! This is important b/c
718 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra 718 // MessageLoopForIO is often allocated via MessageLoop(TYPE_IO). Any extra
719 // data that you need should be stored on the MessageLoop's pump_ instance. 719 // data that you need should be stored on the MessageLoop's pump_ instance.
720 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO), 720 COMPILE_ASSERT(sizeof(MessageLoop) == sizeof(MessageLoopForIO),
721 MessageLoopForIO_should_not_have_extra_member_variables); 721 MessageLoopForIO_should_not_have_extra_member_variables);
722 722
723 } // namespace base 723 } // namespace base
724 724
725 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_ 725 #endif // BASE_MESSAGE_LOOP_MESSAGE_LOOP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698