| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EVENTS_EVENT_H_ | 5 #ifndef UI_EVENTS_EVENT_H_ |
| 6 #define UI_EVENTS_EVENT_H_ | 6 #define UI_EVENTS_EVENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 // | 952 // |
| 953 // This value represents the meaning of a key, which is either a Unicode | 953 // This value represents the meaning of a key, which is either a Unicode |
| 954 // character, or a named DomKey:: value. | 954 // character, or a named DomKey:: value. |
| 955 // This is not necessarily initialized when the event is constructed; | 955 // This is not necessarily initialized when the event is constructed; |
| 956 // it may be set only if and when GetCharacter() or GetDomKey() is called. | 956 // it may be set only if and when GetCharacter() or GetDomKey() is called. |
| 957 mutable DomKey key_ = DomKey::NONE; | 957 mutable DomKey key_ = DomKey::NONE; |
| 958 | 958 |
| 959 std::unique_ptr<Properties> properties_; | 959 std::unique_ptr<Properties> properties_; |
| 960 | 960 |
| 961 static KeyEvent* last_key_event_; | 961 static KeyEvent* last_key_event_; |
| 962 #if defined(USE_X11) |
| 963 static KeyEvent* last_ibus_key_event_; |
| 964 #endif |
| 962 }; | 965 }; |
| 963 | 966 |
| 964 class EVENTS_EXPORT ScrollEvent : public MouseEvent { | 967 class EVENTS_EXPORT ScrollEvent : public MouseEvent { |
| 965 public: | 968 public: |
| 966 explicit ScrollEvent(const base::NativeEvent& native_event); | 969 explicit ScrollEvent(const base::NativeEvent& native_event); |
| 967 template <class T> | 970 template <class T> |
| 968 ScrollEvent(const ScrollEvent& model, | 971 ScrollEvent(const ScrollEvent& model, |
| 969 T* source, | 972 T* source, |
| 970 T* target) | 973 T* target) |
| 971 : MouseEvent(model, source, target), | 974 : MouseEvent(model, source, target), |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1050 // dispatched. This field gets a non-zero value only for gestures that are | 1053 // dispatched. This field gets a non-zero value only for gestures that are |
| 1051 // released through TouchDispositionGestureFilter::SendGesture. The gesture | 1054 // released through TouchDispositionGestureFilter::SendGesture. The gesture |
| 1052 // events that aren't fired directly in response to processing a touch-event | 1055 // events that aren't fired directly in response to processing a touch-event |
| 1053 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. | 1056 // (e.g. timer fired ones), this id is zero. See crbug.com/618738. |
| 1054 uint32_t unique_touch_event_id_; | 1057 uint32_t unique_touch_event_id_; |
| 1055 }; | 1058 }; |
| 1056 | 1059 |
| 1057 } // namespace ui | 1060 } // namespace ui |
| 1058 | 1061 |
| 1059 #endif // UI_EVENTS_EVENT_H_ | 1062 #endif // UI_EVENTS_EVENT_H_ |
| OLD | NEW |