| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | // Copyright (c) 2015 GitHub, Inc.
 | 
					
						
							|  |  |  | // Use of this source code is governed by the MIT license that can be
 | 
					
						
							|  |  |  | // found in the LICENSE file.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-31 02:27:14 +01:00
										 |  |  | #ifndef ATOM_COMMON_KEYBOARD_UTIL_H_
 | 
					
						
							|  |  |  | #define ATOM_COMMON_KEYBOARD_UTIL_H_
 | 
					
						
							| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-11-16 04:15:13 +01:00
										 |  |  | #include <string>
 | 
					
						
							| 
									
										
										
										
											2016-03-06 15:04:05 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | #include "ui/events/keycodes/keyboard_codes.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | namespace atom { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-03-06 15:04:05 +09:00
										 |  |  | // Return key code of the |str|, and also determine whether the SHIFT key is
 | 
					
						
							| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | // pressed.
 | 
					
						
							| 
									
										
										
										
											2016-03-06 15:04:05 +09:00
										 |  |  | ui::KeyboardCode KeyboardCodeFromStr(const std::string& str, bool* shifted); | 
					
						
							| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-07 14:57:31 -07:00
										 |  |  | // Ported from ui/events/blink/blink_event_util.h
 | 
					
						
							| 
									
										
										
										
											2016-10-07 12:46:33 -07:00
										 |  |  | int WebEventModifiersToEventFlags(int modifiers); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-09-18 13:33:06 +08:00
										 |  |  | }  // namespace atom
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-01-31 02:27:14 +01:00
										 |  |  | #endif  // ATOM_COMMON_KEYBOARD_UTIL_H_
 |