Store event listeners in each TouchBar class
This commit is contained in:
		
					parent
					
						
							
								1972e2eff9
							
						
					
				
			
			
				commit
				
					
						cbb6f8c33e
					
				
			
		
					 8 changed files with 104 additions and 102 deletions
				
			
		| 
						 | 
				
			
			@ -282,9 +282,9 @@ void Window::OnExecuteWindowsCommand(const std::string& command_name) {
 | 
			
		|||
  Emit("app-command", command_name);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void Window::OnTouchBarItemResult(const std::string& item_type,
 | 
			
		||||
                                  const std::vector<std::string>& args) {
 | 
			
		||||
  Emit("-touch-bar-interaction", item_type, args);
 | 
			
		||||
void Window::OnTouchBarItemResult(const std::string& item_id,
 | 
			
		||||
                                  const base::DictionaryValue& details) {
 | 
			
		||||
  Emit("-touch-bar-interaction", item_id, details);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#if defined(OS_WIN)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue