| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ | 5 #ifndef VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ |
| 6 #define VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ | 6 #define VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Tells the nested dispatcher that creator has been destroyed. | 34 // Tells the nested dispatcher that creator has been destroyed. |
| 35 void CreatorDestroyed(); | 35 void CreatorDestroyed(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 virtual ~NestedDispatcherGtk() {} | 38 virtual ~NestedDispatcherGtk() {} |
| 39 | 39 |
| 40 // Overriden from MessageLoopForUI::Dispatcher: | 40 // Overriden from MessageLoopForUI::Dispatcher: |
| 41 virtual bool Dispatch(GdkEvent* event); | 41 virtual bool Dispatch(GdkEvent* event); |
| 42 | 42 |
| 43 #if defined(TOUCH_UI) | 43 #if defined(TOUCH_UI) |
| 44 virtual bool Dispatch(XEvent* xevent); | 44 virtual base::MessagePumpGlibXDispatcher::DispatchStatus Dispatch( |
| 45 XEvent* xevent); |
| 45 #endif | 46 #endif |
| 46 | 47 |
| 47 // Creator of the nested loop. | 48 // Creator of the nested loop. |
| 48 MessageLoopForUI::Dispatcher* creator_; | 49 MessageLoopForUI::Dispatcher* creator_; |
| 49 | 50 |
| 50 // True to allow nested task in the message loop. | 51 // True to allow nested task in the message loop. |
| 51 bool allow_nested_task_; | 52 bool allow_nested_task_; |
| 52 | 53 |
| 53 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherGtk); | 54 DISALLOW_COPY_AND_ASSIGN(NestedDispatcherGtk); |
| 54 }; | 55 }; |
| 55 | 56 |
| 56 } // namespace views | 57 } // namespace views |
| 57 | 58 |
| 58 #endif // VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ | 59 #endif // VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_ |
| OLD | NEW |