| 
									
										
										
										
											2016-06-19 17:35:56 +09:00
										 |  |  | // Copyright (c) 2016 GitHub, Inc.
 | 
					
						
							|  |  |  | // Use of this source code is governed by the MIT license that can be
 | 
					
						
							|  |  |  | // found in the LICENSE file.
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-06-19 13:46:59 -07:00
										 |  |  | #include "shell/browser/ui/x/event_disabler.h"
 | 
					
						
							| 
									
										
										
										
											2016-06-19 17:35:56 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-12 19:25:56 -05:00
										 |  |  | #include <memory>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-19 17:35:56 +09:00
										 |  |  | namespace electron { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-16 18:12:00 -04:00
										 |  |  | EventDisabler::EventDisabler() = default; | 
					
						
							| 
									
										
										
										
											2016-06-19 17:35:56 +09:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-16 18:12:00 -04:00
										 |  |  | EventDisabler::~EventDisabler() = default; | 
					
						
							| 
									
										
										
										
											2016-06-19 17:35:56 +09:00
										 |  |  | 
 | 
					
						
							|  |  |  | ui::EventRewriteStatus EventDisabler::RewriteEvent( | 
					
						
							|  |  |  |     const ui::Event& event, | 
					
						
							|  |  |  |     std::unique_ptr<ui::Event>* rewritten_event) { | 
					
						
							|  |  |  |   return ui::EVENT_REWRITE_DISCARD; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ui::EventRewriteStatus EventDisabler::NextDispatchEvent( | 
					
						
							|  |  |  |     const ui::Event& last_event, | 
					
						
							|  |  |  |     std::unique_ptr<ui::Event>* new_event) { | 
					
						
							|  |  |  |   return ui::EVENT_REWRITE_CONTINUE; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | }  // namespace electron
 |