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

Side by Side Diff: content/browser/devtools/protocol/input_handler.cc

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/browser/devtools/protocol/input_handler.h" 5 #include "content/browser/devtools/protocol/input_handler.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "cc/output/compositor_frame_metadata.h" 9 #include "cc/output/compositor_frame_metadata.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
11 #include "content/common/input/synthetic_pinch_gesture_params.h" 11 #include "content/common/input/synthetic_pinch_gesture_params.h"
12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" 12 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h"
13 #include "content/common/input/synthetic_tap_gesture_params.h" 13 #include "content/common/input/synthetic_tap_gesture_params.h"
14 #include "third_party/WebKit/public/web/WebInputEvent.h" 14 #include "third_party/WebKit/public/web/WebInputEvent.h"
15 #include "ui/events/keycodes/dom4/keycode_converter.h" 15 #include "ui/events/keycodes/dom/keycode_converter.h"
16 #include "ui/gfx/geometry/point.h" 16 #include "ui/gfx/geometry/point.h"
17 17
18 namespace content { 18 namespace content {
19 namespace devtools { 19 namespace devtools {
20 namespace input { 20 namespace input {
21 21
22 namespace { 22 namespace {
23 23
24 gfx::Point CssPixelsToPoint(int x, int y, float page_scale_factor) { 24 gfx::Point CssPixelsToPoint(int x, int y, float page_scale_factor) {
25 return gfx::Point(x * page_scale_factor, y * page_scale_factor); 25 return gfx::Point(x * page_scale_factor, y * page_scale_factor);
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 } else { 455 } else {
456 client_->SendError(command_id, 456 client_->SendError(command_id,
457 Response::InternalError(base::StringPrintf( 457 Response::InternalError(base::StringPrintf(
458 "Synthetic tap failed, result was %d", result))); 458 "Synthetic tap failed, result was %d", result)));
459 } 459 }
460 } 460 }
461 461
462 } // namespace input 462 } // namespace input
463 } // namespace devtools 463 } // namespace devtools
464 } // namespace content 464 } // namespace content
OLDNEW
« no previous file with comments | « chrome/test/remoting/key_code_test_map.h ('k') | content/browser/renderer_host/render_widget_host_view_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698