first pass at menu event emission
This commit is contained in:
		
					parent
					
						
							
								39554566cc
							
						
					
				
			
			
				commit
				
					
						3399480304
					
				
			
		
					 6 changed files with 29 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -60,6 +60,10 @@ class Menu : public mate::TrackableObject<Menu>,
 | 
			
		|||
  std::unique_ptr<AtomMenuModel> model_;
 | 
			
		||||
  Menu* parent_;
 | 
			
		||||
 | 
			
		||||
  // Observable:
 | 
			
		||||
  void OnMenuWillClose() override;
 | 
			
		||||
  void OnMenuWillShow() override;
 | 
			
		||||
 | 
			
		||||
 private:
 | 
			
		||||
  void InsertItemAt(int index, int command_id, const base::string16& label);
 | 
			
		||||
  void InsertSeparatorAt(int index);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue