| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 8 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
| 9 | 9 |
| 10 // Stub WebContentsDelegateAndroid that is meant to be a temporary substitute | 10 // Stub WebContentsDelegateAndroid that is meant to be a temporary substitute |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Overridden from WebContentsDelegate. | 29 // Overridden from WebContentsDelegate. |
| 30 void AddNewContents(content::WebContents* source, | 30 void AddNewContents(content::WebContents* source, |
| 31 content::WebContents* new_contents, | 31 content::WebContents* new_contents, |
| 32 WindowOpenDisposition disposition, | 32 WindowOpenDisposition disposition, |
| 33 const gfx::Rect& initial_pos, | 33 const gfx::Rect& initial_pos, |
| 34 bool user_gesture, | 34 bool user_gesture, |
| 35 bool* was_blocked) override; | 35 bool* was_blocked) override; |
| 36 void CloseContents(content::WebContents* source) override; | 36 void CloseContents(content::WebContents* source) override; |
| 37 bool ShouldCreateWebContents( | 37 bool ShouldCreateWebContents( |
| 38 content::WebContents* web_contents, | 38 content::WebContents* web_contents, |
| 39 int route_id, | 39 int32 route_id, |
| 40 int main_frame_route_id, | 40 int32 main_frame_route_id, |
| 41 int32 main_frame_widget_route_id, |
| 42 int32 surface_id, |
| 41 WindowContainerType window_container_type, | 43 WindowContainerType window_container_type, |
| 42 const std::string& frame_name, | 44 const std::string& frame_name, |
| 43 const GURL& target_url, | 45 const GURL& target_url, |
| 44 const std::string& partition_id, | 46 const std::string& partition_id, |
| 45 content::SessionStorageNamespace* session_storage_namespace) override; | 47 content::SessionStorageNamespace* session_storage_namespace) override; |
| 46 }; | 48 }; |
| 47 | 49 |
| 48 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ | 50 #endif // CHROME_BROWSER_ANDROID_DOCUMENT_DOCUMENT_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |