OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/keyboard/keyboard_event_filter.h" |
| 6 |
| 7 #include "ui/events/event.h" |
| 8 |
| 9 namespace keyboard { |
| 10 |
| 11 void KeyboardEventFilter::OnGestureEvent(ui::GestureEvent* event) { |
| 12 switch (event->type()) { |
| 13 case ui::ET_GESTURE_PINCH_BEGIN: |
| 14 case ui::ET_GESTURE_PINCH_END: |
| 15 case ui::ET_GESTURE_PINCH_UPDATE: |
| 16 event->StopPropagation(); |
| 17 break; |
| 18 default: |
| 19 break; |
| 20 } |
| 21 } |
| 22 |
| 23 } // nemespace keyboard |
OLD | NEW |