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

Side by Side Diff: ash/touch/touch_uma.cc

Issue 2215223003: Moves most frame related classes to ash/common/frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 4 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
« no previous file with comments | « ash/touch/touch_uma.h ('k') | ash/wm/panels/panel_frame_view.cc » ('j') | 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 "ash/touch/touch_uma.h" 5 #include "ash/touch/touch_uma.h"
6 6
7 #include "ash/common/wm_shell.h" 7 #include "ash/common/wm_shell.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "ui/aura/env.h" 10 #include "ui/aura/env.h"
11 #include "ui/aura/window.h" 11 #include "ui/aura/window.h"
12 #include "ui/aura/window_event_dispatcher.h" 12 #include "ui/aura/window_event_dispatcher.h"
13 #include "ui/aura/window_property.h" 13 #include "ui/aura/window_property.h"
14 #include "ui/events/event.h" 14 #include "ui/events/event.h"
15 #include "ui/events/event_utils.h" 15 #include "ui/events/event_utils.h"
16 #include "ui/gfx/geometry/point_conversions.h" 16 #include "ui/gfx/geometry/point_conversions.h"
17 #include "ui/views/widget/widget.h"
17 18
18 #if defined(USE_X11) 19 #if defined(USE_X11)
19 #include <X11/extensions/XInput2.h> 20 #include <X11/extensions/XInput2.h>
20 #include <X11/Xlib.h> 21 #include <X11/Xlib.h>
21 #endif 22 #endif
22 23
23 namespace { 24 namespace {
24 25
25 struct WindowTouchDetails { 26 struct WindowTouchDetails {
26 // Move and start times of the touch points. The key is the touch-id. 27 // Move and start times of the touch points. The key is the touch-id.
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 return GESTURE_OMNIBOX_SCROLL; 291 return GESTURE_OMNIBOX_SCROLL;
291 if (event.type() == ui::ET_GESTURE_PINCH_BEGIN) 292 if (event.type() == ui::ET_GESTURE_PINCH_BEGIN)
292 return GESTURE_OMNIBOX_PINCH; 293 return GESTURE_OMNIBOX_PINCH;
293 return GESTURE_UNKNOWN; 294 return GESTURE_UNKNOWN;
294 } 295 }
295 296
296 return GESTURE_UNKNOWN; 297 return GESTURE_UNKNOWN;
297 } 298 }
298 299
299 } // namespace ash 300 } // namespace ash
OLDNEW
« no previous file with comments | « ash/touch/touch_uma.h ('k') | ash/wm/panels/panel_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698