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

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

Issue 56053005: linux_aura: Improve window drag performance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 1 month 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_root_window_host_x11.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_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/debug/trace_event.h"
14 #include "base/message_loop/message_pump_x11.h" 15 #include "base/message_loop/message_pump_x11.h"
15 #include "base/strings/stringprintf.h" 16 #include "base/strings/stringprintf.h"
16 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
17 #include "third_party/skia/include/core/SkPath.h" 18 #include "third_party/skia/include/core/SkPath.h"
18 #include "ui/aura/client/cursor_client.h" 19 #include "ui/aura/client/cursor_client.h"
19 #include "ui/aura/client/focus_client.h" 20 #include "ui/aura/client/focus_client.h"
20 #include "ui/aura/client/user_action_client.h" 21 #include "ui/aura/client/user_action_client.h"
21 #include "ui/aura/root_window.h" 22 #include "ui/aura/root_window.h"
22 #include "ui/aura/window_property.h" 23 #include "ui/aura/window_property.h"
23 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" 24 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h"
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 open_windows_ = new std::list<XID>(); 1085 open_windows_ = new std::list<XID>();
1085 return *open_windows_; 1086 return *open_windows_;
1086 } 1087 }
1087 1088
1088 //////////////////////////////////////////////////////////////////////////////// 1089 ////////////////////////////////////////////////////////////////////////////////
1089 // DesktopRootWindowHostX11, MessageLoop::Dispatcher implementation: 1090 // DesktopRootWindowHostX11, MessageLoop::Dispatcher implementation:
1090 1091
1091 bool DesktopRootWindowHostX11::Dispatch(const base::NativeEvent& event) { 1092 bool DesktopRootWindowHostX11::Dispatch(const base::NativeEvent& event) {
1092 XEvent* xev = event; 1093 XEvent* xev = event;
1093 1094
1095 TRACE_EVENT1("views", "DesktopRootWindowHostX11::Dispatch",
1096 "event->type", event->type);
1097
1094 // May want to factor CheckXEventForConsistency(xev); into a common location 1098 // May want to factor CheckXEventForConsistency(xev); into a common location
1095 // since it is called here. 1099 // since it is called here.
1096 switch (xev->type) { 1100 switch (xev->type) {
1097 case EnterNotify: 1101 case EnterNotify:
1098 case LeaveNotify: { 1102 case LeaveNotify: {
1099 ui::MouseEvent mouse_event(xev); 1103 ui::MouseEvent mouse_event(xev);
1100 DispatchMouseEvent(&mouse_event); 1104 DispatchMouseEvent(&mouse_event);
1101 break; 1105 break;
1102 } 1106 }
1103 case Expose: { 1107 case Expose: {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 if (linux_ui) { 1421 if (linux_ui) {
1418 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); 1422 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme();
1419 if (native_theme) 1423 if (native_theme)
1420 return native_theme; 1424 return native_theme;
1421 } 1425 }
1422 1426
1423 return ui::NativeTheme::instance(); 1427 return ui::NativeTheme::instance();
1424 } 1428 }
1425 1429
1426 } // namespace views 1430 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('k') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698