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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 289283015: Extract touchscreen device management into a generic manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated Created 6 years, 6 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/views/widget/desktop_aura/desktop_window_tree_host_x11.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h"
6 6
7 #include <X11/extensions/shape.h> 7 #include <X11/extensions/shape.h>
8 #include <X11/extensions/XInput2.h> 8 #include <X11/extensions/XInput2.h>
9 #include <X11/Xatom.h> 9 #include <X11/Xatom.h>
10 #include <X11/Xregion.h> 10 #include <X11/Xregion.h>
11 #include <X11/Xutil.h> 11 #include <X11/Xutil.h>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/debug/trace_event.h" 15 #include "base/debug/trace_event.h"
16 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "third_party/skia/include/core/SkPath.h" 18 #include "third_party/skia/include/core/SkPath.h"
19 #include "ui/aura/client/cursor_client.h" 19 #include "ui/aura/client/cursor_client.h"
20 #include "ui/aura/client/focus_client.h" 20 #include "ui/aura/client/focus_client.h"
21 #include "ui/aura/window.h" 21 #include "ui/aura/window.h"
22 #include "ui/aura/window_event_dispatcher.h" 22 #include "ui/aura/window_event_dispatcher.h"
23 #include "ui/aura/window_property.h" 23 #include "ui/aura/window_property.h"
24 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" 24 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h"
25 #include "ui/base/hit_test.h" 25 #include "ui/base/hit_test.h"
26 #include "ui/base/x/x11_util.h" 26 #include "ui/base/x/x11_util.h"
27 #include "ui/events/event_utils.h" 27 #include "ui/events/event_utils.h"
28 #include "ui/events/platform/platform_event_source.h" 28 #include "ui/events/platform/platform_event_source.h"
29 #include "ui/events/platform/x11/x11_event_source.h" 29 #include "ui/events/platform/x11/x11_event_source.h"
30 #include "ui/events/x/device_data_manager.h" 30 #include "ui/events/x/device_data_manager_x11.h"
31 #include "ui/events/x/device_list_cache_x.h" 31 #include "ui/events/x/device_list_cache_x.h"
32 #include "ui/events/x/touch_factory_x11.h" 32 #include "ui/events/x/touch_factory_x11.h"
33 #include "ui/gfx/image/image_skia.h" 33 #include "ui/gfx/image/image_skia.h"
34 #include "ui/gfx/image/image_skia_rep.h" 34 #include "ui/gfx/image/image_skia_rep.h"
35 #include "ui/gfx/insets.h" 35 #include "ui/gfx/insets.h"
36 #include "ui/gfx/path.h" 36 #include "ui/gfx/path.h"
37 #include "ui/gfx/path_x11.h" 37 #include "ui/gfx/path_x11.h"
38 #include "ui/gfx/screen.h" 38 #include "ui/gfx/screen.h"
39 #include "ui/native_theme/native_theme.h" 39 #include "ui/native_theme/native_theme.h"
40 #include "ui/views/corewm/tooltip_aura.h" 40 #include "ui/views/corewm/tooltip_aura.h"
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 } 1717 }
1718 break; 1718 break;
1719 } 1719 }
1720 case MappingNotify: { 1720 case MappingNotify: {
1721 switch (xev->xmapping.request) { 1721 switch (xev->xmapping.request) {
1722 case MappingModifier: 1722 case MappingModifier:
1723 case MappingKeyboard: 1723 case MappingKeyboard:
1724 XRefreshKeyboardMapping(&xev->xmapping); 1724 XRefreshKeyboardMapping(&xev->xmapping);
1725 break; 1725 break;
1726 case MappingPointer: 1726 case MappingPointer:
1727 ui::DeviceDataManager::GetInstance()->UpdateButtonMap(); 1727 ui::DeviceDataManagerX11::GetInstance()->UpdateButtonMap();
1728 break; 1728 break;
1729 default: 1729 default:
1730 NOTIMPLEMENTED() << " Unknown request: " << xev->xmapping.request; 1730 NOTIMPLEMENTED() << " Unknown request: " << xev->xmapping.request;
1731 break; 1731 break;
1732 } 1732 }
1733 break; 1733 break;
1734 } 1734 }
1735 case MotionNotify: { 1735 case MotionNotify: {
1736 // Discard all but the most recent motion event that targets the same 1736 // Discard all but the most recent motion event that targets the same
1737 // window with unchanged state. 1737 // window with unchanged state.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 if (linux_ui) { 1787 if (linux_ui) {
1788 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); 1788 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window);
1789 if (native_theme) 1789 if (native_theme)
1790 return native_theme; 1790 return native_theme;
1791 } 1791 }
1792 1792
1793 return ui::NativeTheme::instance(); 1793 return ui::NativeTheme::instance();
1794 } 1794 }
1795 1795
1796 } // namespace views 1796 } // namespace views
OLDNEW
« ui/ozone/ozone_platform.cc ('K') | « ui/views/controls/menu/menu_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698