Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: ui/aura/window_tree_host_x11.cc

Issue 183893031: x11: Simplify some more event-rewrite code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/window_tree_host_observer.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698