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 #include "views/controls/menu/nested_dispatcher_gtk.h" | 5 #include "views/controls/menu/nested_dispatcher_gtk.h" |
6 | 6 |
7 #if defined(TOUCH_UI) | 7 #if defined(TOUCH_UI) |
8 #include "views/focus/accelerator_handler.h" | 8 #include "views/focus/accelerator_handler.h" |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 (creator_)->Dispatch(event); | 39 (creator_)->Dispatch(event); |
40 #else | 40 #else |
41 return creator_->Dispatch(event); | 41 return creator_->Dispatch(event); |
42 #endif | 42 #endif |
43 } else { | 43 } else { |
44 return false; | 44 return false; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 #if defined(TOUCH_UI) | 48 #if defined(TOUCH_UI) |
49 bool NestedDispatcherGtk::Dispatch(XEvent* xevent) { | 49 base::MessagePumpGlibXDispatcher::DispatchStatus NestedDispatcherGtk::Dispatch( |
50 return creator_ ? creator_->Dispatch(xevent) : false; | 50 XEvent* xevent) { |
| 51 return creator_->Dispatch(xevent); |
51 } | 52 } |
52 #endif | 53 #endif |
53 | 54 |
54 } // namespace views | 55 } // namespace views |
OLD | NEW |