| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 // NOTE: If you override this, call the superclass version too! | 257 // NOTE: If you override this, call the superclass version too! |
| 258 virtual void WasHidden(); | 258 virtual void WasHidden(); |
| 259 | 259 |
| 260 // Activates this contents within its containing window, bringing that window | 260 // Activates this contents within its containing window, bringing that window |
| 261 // to the foreground if necessary. | 261 // to the foreground if necessary. |
| 262 virtual void Activate(); | 262 virtual void Activate(); |
| 263 | 263 |
| 264 // Commands ------------------------------------------------------------------ | 264 // Commands ------------------------------------------------------------------ |
| 265 | 265 |
| 266 // Implementation of PageNavigator. | 266 // Implementation of PageNavigator. |
| 267 virtual void OpenURL(const GURL& url, | 267 virtual void OpenURL(const GURL& url, const GURL& referrer, |
| 268 WindowOpenDisposition disposition, | 268 WindowOpenDisposition disposition, |
| 269 PageTransition::Type transition); | 269 PageTransition::Type transition); |
| 270 | 270 |
| 271 // Called by the NavigationController to cause the TabContents to navigate to | 271 // Called by the NavigationController to cause the TabContents to navigate to |
| 272 // the current pending entry. The NavigationController should be called back | 272 // the current pending entry. The NavigationController should be called back |
| 273 // with CommitPendingEntry/RendererDidNavigate on success or | 273 // with CommitPendingEntry/RendererDidNavigate on success or |
| 274 // DiscardPendingEntry. The callbacks can be inside of this function, or at | 274 // DiscardPendingEntry. The callbacks can be inside of this function, or at |
| 275 // some future time. | 275 // some future time. |
| 276 // | 276 // |
| 277 // The entry has a PageID of -1 if newly created (corresponding to navigation | 277 // The entry has a PageID of -1 if newly created (corresponding to navigation |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 // ConstrainedTabContentsDelegate -------------------------------------------- | 414 // ConstrainedTabContentsDelegate -------------------------------------------- |
| 415 | 415 |
| 416 virtual void AddNewContents(ConstrainedWindow* window, | 416 virtual void AddNewContents(ConstrainedWindow* window, |
| 417 TabContents* contents, | 417 TabContents* contents, |
| 418 WindowOpenDisposition disposition, | 418 WindowOpenDisposition disposition, |
| 419 const gfx::Rect& initial_pos, | 419 const gfx::Rect& initial_pos, |
| 420 bool user_gesture); | 420 bool user_gesture); |
| 421 virtual void OpenURL(ConstrainedWindow* window, | 421 virtual void OpenURL(ConstrainedWindow* window, |
| 422 const GURL& url, | 422 const GURL& url, |
| 423 const GURL& referrer, |
| 423 WindowOpenDisposition disposition, | 424 WindowOpenDisposition disposition, |
| 424 PageTransition::Type transition); | 425 PageTransition::Type transition); |
| 425 virtual void WillClose(ConstrainedWindow* window); | 426 virtual void WillClose(ConstrainedWindow* window); |
| 426 virtual void DetachContents(ConstrainedWindow* window, | 427 virtual void DetachContents(ConstrainedWindow* window, |
| 427 TabContents* contents, | 428 TabContents* contents, |
| 428 const gfx::Rect& contents_bounds, | 429 const gfx::Rect& contents_bounds, |
| 429 const gfx::Point& mouse_pt, | 430 const gfx::Point& mouse_pt, |
| 430 int frame_component); | 431 int frame_component); |
| 431 virtual void DidMoveOrResize(ConstrainedWindow* window); | 432 virtual void DidMoveOrResize(ConstrainedWindow* window); |
| 432 | 433 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 // The id used in the ViewStorage to store the last focused view. | 514 // The id used in the ViewStorage to store the last focused view. |
| 514 int last_focused_view_storage_id_; | 515 int last_focused_view_storage_id_; |
| 515 | 516 |
| 516 // See capturing_contents() above. | 517 // See capturing_contents() above. |
| 517 bool capturing_contents_; | 518 bool capturing_contents_; |
| 518 | 519 |
| 519 DISALLOW_COPY_AND_ASSIGN(TabContents); | 520 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 520 }; | 521 }; |
| 521 | 522 |
| 522 #endif // CHROME_BROWSER_TAB_CONTENTS_H_ | 523 #endif // CHROME_BROWSER_TAB_CONTENTS_H_ |
| OLD | NEW |