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

Side by Side Diff: mojo/services/public/cpp/input_events/lib/input_events_type_converters.cc

Issue 331563003: Launching + Views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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 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 "mojo/services/public/cpp/input_events/input_events_type_converters.h" 5 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h"
6 6
7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" 7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h"
8 #include "ui/events/keycodes/keyboard_codes.h" 8 #include "ui/events/keycodes/keyboard_codes.h"
9 9
10 namespace mojo { 10 namespace mojo {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 case ui::ET_KEY_RELEASED: 51 case ui::ET_KEY_RELEASED:
52 ui_event.reset(new ui::KeyEvent( 52 ui_event.reset(new ui::KeyEvent(
53 static_cast<ui::EventType>(input->action), 53 static_cast<ui::EventType>(input->action),
54 static_cast<ui::KeyboardCode>( 54 static_cast<ui::KeyboardCode>(
55 input->key_data->key_code), 55 input->key_data->key_code),
56 input->flags, 56 input->flags,
57 input->key_data->is_char)); 57 input->key_data->is_char));
58 break; 58 break;
59 default: 59 default:
60 // TODO: support other types. 60 // TODO: support other types.
61 NOTIMPLEMENTED(); 61 // NOTIMPLEMENTED();
62 ;
62 } 63 }
63 // TODO: need to support time_stamp. 64 // TODO: need to support time_stamp.
64 return ui_event.Pass(); 65 return ui_event.Pass();
65 } 66 }
66 67
67 } // namespace mojo 68 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/launcher/launcher.cc ('k') | mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698