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

Side by Side Diff: ui/views/widget/desktop_root_window_host_linux.cc

Issue 11192009: linux_aura: Fix tab dragging performance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_root_window_host_linux.h" 5 #include "ui/views/widget/desktop_root_window_host_linux.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 // } 902 // }
903 case ui::ET_MOUSE_MOVED: 903 case ui::ET_MOUSE_MOVED:
904 case ui::ET_MOUSE_DRAGGED: 904 case ui::ET_MOUSE_DRAGGED:
905 case ui::ET_MOUSE_PRESSED: 905 case ui::ET_MOUSE_PRESSED:
906 case ui::ET_MOUSE_RELEASED: 906 case ui::ET_MOUSE_RELEASED:
907 case ui::ET_MOUSE_ENTERED: 907 case ui::ET_MOUSE_ENTERED:
908 case ui::ET_MOUSE_EXITED: { 908 case ui::ET_MOUSE_EXITED: {
909 if (type == ui::ET_MOUSE_MOVED || type == ui::ET_MOUSE_DRAGGED) { 909 if (type == ui::ET_MOUSE_MOVED || type == ui::ET_MOUSE_DRAGGED) {
910 // If this is a motion event, we want to coalesce all pending motion 910 // If this is a motion event, we want to coalesce all pending motion
911 // events that are at the top of the queue. 911 // events that are at the top of the queue.
912 // num_coalesced = CoalescePendingMotionEvents(xev, &last_event); 912 num_coalesced = ui::CoalescePendingMotionEvents(xev, &last_event);
913 // if (num_coalesced > 0) 913 if (num_coalesced > 0)
914 // xev = &last_event; 914 xev = &last_event;
915 } else if (type == ui::ET_MOUSE_PRESSED) { 915 } else if (type == ui::ET_MOUSE_PRESSED) {
916 XIDeviceEvent* xievent = 916 XIDeviceEvent* xievent =
917 static_cast<XIDeviceEvent*>(xev->xcookie.data); 917 static_cast<XIDeviceEvent*>(xev->xcookie.data);
918 int button = xievent->detail; 918 int button = xievent->detail;
919 if (button == kBackMouseButton || button == kForwardMouseButton) { 919 if (button == kBackMouseButton || button == kForwardMouseButton) {
920 aura::client::UserActionClient* gesture_client = 920 aura::client::UserActionClient* gesture_client =
921 aura::client::GetUserActionClient( 921 aura::client::GetUserActionClient(
922 root_window_host_delegate_->AsRootWindow()); 922 root_window_host_delegate_->AsRootWindow());
923 if (gesture_client) { 923 if (gesture_client) {
924 bool reverse_direction = 924 bool reverse_direction =
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 DesktopRootWindowHost* DesktopRootWindowHost::Create( 1049 DesktopRootWindowHost* DesktopRootWindowHost::Create(
1050 internal::NativeWidgetDelegate* native_widget_delegate, 1050 internal::NativeWidgetDelegate* native_widget_delegate,
1051 DesktopNativeWidgetAura* desktop_native_widget_aura, 1051 DesktopNativeWidgetAura* desktop_native_widget_aura,
1052 const gfx::Rect& initial_bounds) { 1052 const gfx::Rect& initial_bounds) {
1053 return new DesktopRootWindowHostLinux(native_widget_delegate, 1053 return new DesktopRootWindowHostLinux(native_widget_delegate,
1054 desktop_native_widget_aura, 1054 desktop_native_widget_aura,
1055 initial_bounds); 1055 initial_bounds);
1056 } 1056 }
1057 1057
1058 } // namespace views 1058 } // namespace views
OLDNEW
« no previous file with comments | « ui/base/x/x11_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698