| 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 #include "ui/aura/window_tree_host_x11.h" | 5 #include "ui/aura/window_tree_host_x11.h" |
| 6 | 6 |
| 7 #include <strings.h> | 7 #include <strings.h> |
| 8 #include <X11/cursorfont.h> | 8 #include <X11/cursorfont.h> |
| 9 #include <X11/extensions/Xfixes.h> | 9 #include <X11/extensions/Xfixes.h> |
| 10 #include <X11/extensions/XInput2.h> | 10 #include <X11/extensions/XInput2.h> |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 SubstructureRedirectMask | SubstructureNotifyMask, | 480 SubstructureRedirectMask | SubstructureNotifyMask, |
| 481 &reply_event); | 481 &reply_event); |
| 482 } | 482 } |
| 483 break; | 483 break; |
| 484 } | 484 } |
| 485 case MappingNotify: { | 485 case MappingNotify: { |
| 486 switch (xev->xmapping.request) { | 486 switch (xev->xmapping.request) { |
| 487 case MappingModifier: | 487 case MappingModifier: |
| 488 case MappingKeyboard: | 488 case MappingKeyboard: |
| 489 XRefreshKeyboardMapping(&xev->xmapping); | 489 XRefreshKeyboardMapping(&xev->xmapping); |
| 490 OnKeyboardMappingChanged(); | |
| 491 break; | 490 break; |
| 492 case MappingPointer: | 491 case MappingPointer: |
| 493 ui::DeviceDataManager::GetInstance()->UpdateButtonMap(); | 492 ui::DeviceDataManager::GetInstance()->UpdateButtonMap(); |
| 494 break; | 493 break; |
| 495 default: | 494 default: |
| 496 NOTIMPLEMENTED() << " Unknown request: " << xev->xmapping.request; | 495 NOTIMPLEMENTED() << " Unknown request: " << xev->xmapping.request; |
| 497 break; | 496 break; |
| 498 } | 497 } |
| 499 break; | 498 break; |
| 500 } | 499 } |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 } | 998 } |
| 1000 | 999 |
| 1001 namespace test { | 1000 namespace test { |
| 1002 | 1001 |
| 1003 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { | 1002 void SetUseOverrideRedirectWindowByDefault(bool override_redirect) { |
| 1004 default_override_redirect = override_redirect; | 1003 default_override_redirect = override_redirect; |
| 1005 } | 1004 } |
| 1006 | 1005 |
| 1007 } // namespace test | 1006 } // namespace test |
| 1008 } // namespace aura | 1007 } // namespace aura |
| OLD | NEW |