| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ | 5 #ifndef UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ |
| 6 #define UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ | 6 #define UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| 11 #if defined(TOOLKIT_USES_GTK) | 11 #if defined(TOOLKIT_USES_GTK) |
| 12 #include <gdk/gdk.h> | 12 #include <gdk/gdk.h> |
| 13 #endif | 13 #endif |
| 14 | 14 |
| 15 #include <set> | 15 #include <set> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
| 19 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
| 20 #include "views/views_export.h" | 20 #include "ui/views/views_export.h" |
| 21 | 21 |
| 22 namespace views { | 22 namespace views { |
| 23 | 23 |
| 24 #if defined(USE_AURA) && defined(USE_X11) && !defined(USE_WAYLAND) | 24 #if defined(USE_AURA) && defined(USE_X11) && !defined(USE_WAYLAND) |
| 25 // Dispatch an XEvent to the RootView. Return true if the event was dispatched | 25 // Dispatch an XEvent to the RootView. Return true if the event was dispatched |
| 26 // and handled, false otherwise. | 26 // and handled, false otherwise. |
| 27 bool VIEWS_EXPORT DispatchXEvent(XEvent* xevent); | 27 bool VIEWS_EXPORT DispatchXEvent(XEvent* xevent); |
| 28 #endif // USE_AURA && USE_X11 && !USE_WAYLAND | 28 #endif // USE_AURA && USE_X11 && !USE_WAYLAND |
| 29 | 29 |
| 30 // This class delegates the key messages to the associated FocusManager class | 30 // This class delegates the key messages to the associated FocusManager class |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 // The keys currently pressed and consumed by the FocusManager. | 52 // The keys currently pressed and consumed by the FocusManager. |
| 53 std::set<WPARAM> pressed_keys_; | 53 std::set<WPARAM> pressed_keys_; |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler); | 56 DISALLOW_COPY_AND_ASSIGN(AcceleratorHandler); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace views | 59 } // namespace views |
| 60 | 60 |
| 61 #endif // UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ | 61 #endif // UI_VIEWS_FOCUS_ACCELERATOR_HANDLER_H_ |
| OLD | NEW |