OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ |
6 #define CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 gfx::NativeView native_window); | 115 gfx::NativeView native_window); |
116 | 116 |
117 // A helper method that retrieves the ExternalTabContainer object that | 117 // A helper method that retrieves the ExternalTabContainer object that |
118 // hosts the given tab window. | 118 // hosts the given tab window. |
119 static ExternalTabContainer* GetContainerForTab(HWND tab_window); | 119 static ExternalTabContainer* GetContainerForTab(HWND tab_window); |
120 | 120 |
121 // Overridden from content::WebContentsDelegate: | 121 // Overridden from content::WebContentsDelegate: |
122 virtual content::WebContents* OpenURLFromTab( | 122 virtual content::WebContents* OpenURLFromTab( |
123 content::WebContents* source, | 123 content::WebContents* source, |
124 const content::OpenURLParams& params) OVERRIDE; | 124 const content::OpenURLParams& params) OVERRIDE; |
| 125 virtual bool ShouldIgnoreNavigation( |
| 126 content::WebContents* source, |
| 127 const GURL& url, |
| 128 const content::Referrer& referrer, |
| 129 WindowOpenDisposition disposition, |
| 130 bool is_content_initiated, |
| 131 content::PageTransition transition_type) OVERRIDE; |
125 virtual void NavigationStateChanged(const content::WebContents* source, | 132 virtual void NavigationStateChanged(const content::WebContents* source, |
126 unsigned changed_flags) OVERRIDE; | 133 unsigned changed_flags) OVERRIDE; |
127 virtual void AddNewContents(content::WebContents* source, | 134 virtual void AddNewContents(content::WebContents* source, |
128 content::WebContents* new_contents, | 135 content::WebContents* new_contents, |
129 WindowOpenDisposition disposition, | 136 WindowOpenDisposition disposition, |
130 const gfx::Rect& initial_pos, | 137 const gfx::Rect& initial_pos, |
131 bool user_gesture) OVERRIDE; | 138 bool user_gesture) OVERRIDE; |
132 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 139 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
133 virtual void MoveContents(content::WebContents* source, | 140 virtual void MoveContents(content::WebContents* source, |
134 const gfx::Rect& pos) OVERRIDE; | 141 const gfx::Rect& pos) OVERRIDE; |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 return false; | 423 return false; |
417 } | 424 } |
418 | 425 |
419 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, | 426 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, |
420 bool* proceed_to_fire_unload) { | 427 bool* proceed_to_fire_unload) { |
421 NOTREACHED(); | 428 NOTREACHED(); |
422 } | 429 } |
423 }; | 430 }; |
424 | 431 |
425 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ | 432 #endif // CHROME_BROWSER_EXTERNAL_TAB_EXTERNAL_TAB_CONTAINER_WIN_H_ |
OLD | NEW |