Redirect BrowserWindow's "will-navigate" event to WebContents
This commit is contained in:
		
					parent
					
						
							
								60df32aab5
							
						
					
				
			
			
				commit
				
					
						c2975d2bcc
					
				
			
		
					 2 changed files with 5 additions and 1 deletions
				
			
		|  | @ -95,7 +95,7 @@ void Window::WillCreatePopupWindow(const base::string16& frame_name, | |||
| void Window::WillNavigate(bool* prevent_default, const GURL& url) { | ||||
|   base::ListValue args; | ||||
|   args.AppendString(url.spec()); | ||||
|   *prevent_default = Emit("will-navigate", args); | ||||
|   *prevent_default = Emit("-will-navigate", args); | ||||
| } | ||||
| 
 | ||||
| void Window::WillCloseWindow(bool* prevent_default) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Cheng Zhao
				Cheng Zhao