OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CONTAINER_WIN_H_ | 5 #ifndef CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
6 #define CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 6 #define CHROME_BROWSER_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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 gfx::NativeView native_window); | 112 gfx::NativeView native_window); |
113 | 113 |
114 // A helper method that retrieves the ExternalTabContainer object that | 114 // A helper method that retrieves the ExternalTabContainer object that |
115 // hosts the given tab window. | 115 // hosts the given tab window. |
116 static ExternalTabContainer* GetContainerForTab(HWND tab_window); | 116 static ExternalTabContainer* GetContainerForTab(HWND tab_window); |
117 | 117 |
118 // Overridden from TabContentsDelegate: | 118 // Overridden from TabContentsDelegate: |
119 | 119 |
120 // Deprecated. Please used two-arguments variant. | 120 // Deprecated. Please used two-arguments variant. |
121 // TODO(adriansc): Remove method once refactoring changed all call sites. | 121 // TODO(adriansc): Remove method once refactoring changed all call sites. |
122 virtual TabContents* OpenURLFromTab(TabContents* source, | 122 virtual TabContents* OpenURLFromTab( |
123 const GURL& url, | 123 TabContents* source, |
124 const GURL& referrer, | 124 const GURL& url, |
125 WindowOpenDisposition disposition, | 125 const GURL& referrer, |
126 PageTransition::Type transition) OVERRIDE; | 126 WindowOpenDisposition disposition, |
| 127 content::PageTransition transition) OVERRIDE; |
127 virtual TabContents* OpenURLFromTab(TabContents* source, | 128 virtual TabContents* OpenURLFromTab(TabContents* source, |
128 const OpenURLParams& params) OVERRIDE; | 129 const OpenURLParams& params) OVERRIDE; |
129 virtual void NavigationStateChanged(const TabContents* source, | 130 virtual void NavigationStateChanged(const TabContents* source, |
130 unsigned changed_flags); | 131 unsigned changed_flags); |
131 virtual void AddNewContents(TabContents* source, | 132 virtual void AddNewContents(TabContents* source, |
132 TabContents* new_contents, | 133 TabContents* new_contents, |
133 WindowOpenDisposition disposition, | 134 WindowOpenDisposition disposition, |
134 const gfx::Rect& initial_pos, | 135 const gfx::Rect& initial_pos, |
135 bool user_gesture); | 136 bool user_gesture); |
136 virtual void CloseContents(TabContents* source); | 137 virtual void CloseContents(TabContents* source); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 WPARAM wparam, LPARAM lparam) { | 367 WPARAM wparam, LPARAM lparam) { |
367 NOTREACHED(); | 368 NOTREACHED(); |
368 return false; | 369 return false; |
369 } | 370 } |
370 | 371 |
371 virtual void Observe(int type, const NotificationSource& source, | 372 virtual void Observe(int type, const NotificationSource& source, |
372 const NotificationDetails& details) {} | 373 const NotificationDetails& details) {} |
373 | 374 |
374 // Deprecated. Please use the two-argument variant. | 375 // Deprecated. Please use the two-argument variant. |
375 // TODO(adriansc): Remove method once refactoring changed all call sites. | 376 // TODO(adriansc): Remove method once refactoring changed all call sites. |
376 virtual TabContents* OpenURLFromTab(TabContents* source, const GURL& url, | 377 virtual TabContents* OpenURLFromTab( |
377 const GURL& referrer, | 378 TabContents* source, const GURL& url, |
378 WindowOpenDisposition disposition, | 379 const GURL& referrer, |
379 PageTransition::Type transition) OVERRIDE; | 380 WindowOpenDisposition disposition, |
| 381 content::PageTransition transition) OVERRIDE; |
380 virtual TabContents* OpenURLFromTab(TabContents* source, | 382 virtual TabContents* OpenURLFromTab(TabContents* source, |
381 const OpenURLParams& params) OVERRIDE; | 383 const OpenURLParams& params) OVERRIDE; |
382 | 384 |
383 virtual void NavigationStateChanged(const TabContents* source, | 385 virtual void NavigationStateChanged(const TabContents* source, |
384 unsigned changed_flags) { | 386 unsigned changed_flags) { |
385 NOTREACHED(); | 387 NOTREACHED(); |
386 } | 388 } |
387 | 389 |
388 virtual void CloseContents(TabContents* source) { | 390 virtual void CloseContents(TabContents* source) { |
389 NOTREACHED(); | 391 NOTREACHED(); |
(...skipping 20 matching lines...) Expand all Loading... |
410 return false; | 412 return false; |
411 } | 413 } |
412 | 414 |
413 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, | 415 virtual void BeforeUnloadFired(TabContents* tab, bool proceed, |
414 bool* proceed_to_fire_unload) { | 416 bool* proceed_to_fire_unload) { |
415 NOTREACHED(); | 417 NOTREACHED(); |
416 } | 418 } |
417 }; | 419 }; |
418 | 420 |
419 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ | 421 #endif // CHROME_BROWSER_EXTERNAL_TAB_CONTAINER_WIN_H_ |
OLD | NEW |