| 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_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // is not an ExternalTabContainerWin. | 104 // is not an ExternalTabContainerWin. |
| 105 static ExternalTabContainer* GetExternalContainerFromNativeWindow( | 105 static ExternalTabContainer* GetExternalContainerFromNativeWindow( |
| 106 gfx::NativeView native_window); | 106 gfx::NativeView native_window); |
| 107 | 107 |
| 108 // Overridden from content::WebContentsDelegate: | 108 // Overridden from content::WebContentsDelegate: |
| 109 virtual content::WebContents* OpenURLFromTab( | 109 virtual content::WebContents* OpenURLFromTab( |
| 110 content::WebContents* source, | 110 content::WebContents* source, |
| 111 const content::OpenURLParams& params) OVERRIDE; | 111 const content::OpenURLParams& params) OVERRIDE; |
| 112 virtual void NavigationStateChanged(const content::WebContents* source, | 112 virtual void NavigationStateChanged(const content::WebContents* source, |
| 113 unsigned changed_flags) OVERRIDE; | 113 unsigned changed_flags) OVERRIDE; |
| 114 virtual void AddNewContents(content::WebContents* source, | 114 virtual bool AddNewContents(content::WebContents* source, |
| 115 content::WebContents* new_contents, | 115 content::WebContents* new_contents, |
| 116 WindowOpenDisposition disposition, | 116 WindowOpenDisposition disposition, |
| 117 const gfx::Rect& initial_pos, | 117 const gfx::Rect& initial_pos, |
| 118 bool user_gesture) OVERRIDE; | 118 bool user_gesture) OVERRIDE; |
| 119 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 119 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
| 120 virtual void MoveContents(content::WebContents* source, | 120 virtual void MoveContents(content::WebContents* source, |
| 121 const gfx::Rect& pos) OVERRIDE; | 121 const gfx::Rect& pos) OVERRIDE; |
| 122 virtual bool IsPopupOrPanel( | 122 virtual bool IsPopupOrPanel( |
| 123 const content::WebContents* source) const OVERRIDE; | 123 const content::WebContents* source) const OVERRIDE; |
| 124 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, | 124 virtual void UpdateTargetURL(content::WebContents* source, int32 page_id, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 return false; | 396 return false; |
| 397 } | 397 } |
| 398 | 398 |
| 399 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, | 399 virtual void BeforeUnloadFired(content::WebContents* tab, bool proceed, |
| 400 bool* proceed_to_fire_unload) { | 400 bool* proceed_to_fire_unload) { |
| 401 NOTREACHED(); | 401 NOTREACHED(); |
| 402 } | 402 } |
| 403 }; | 403 }; |
| 404 | 404 |
| 405 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ | 405 #endif // CHROME_BROWSER_UI_VIEWS_EXTERNAL_TAB_CONTAINER_WIN_H_ |
| OLD | NEW |