| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 // to the foreground if necessary. | 338 // to the foreground if necessary. |
| 339 void Activate(); | 339 void Activate(); |
| 340 | 340 |
| 341 // Deactivates this contents by deactivating its containing window. | 341 // Deactivates this contents by deactivating its containing window. |
| 342 void Deactivate(); | 342 void Deactivate(); |
| 343 | 343 |
| 344 // TODO(brettw) document these. | 344 // TODO(brettw) document these. |
| 345 virtual void ShowContents(); | 345 virtual void ShowContents(); |
| 346 virtual void HideContents(); | 346 virtual void HideContents(); |
| 347 | 347 |
| 348 // Returns true if the before unload and unload listeners need to be |
| 349 // fired. The value of this changes over time. For example, if true and the |
| 350 // before unload listener is executed and allows the user to exit, then this |
| 351 // returns false. |
| 352 bool NeedToFireBeforeUnload(); |
| 353 |
| 348 #ifdef UNIT_TEST | 354 #ifdef UNIT_TEST |
| 349 // Expose the render manager for testing. | 355 // Expose the render manager for testing. |
| 350 RenderViewHostManager* render_manager() { return &render_manager_; } | 356 RenderViewHostManager* render_manager() { return &render_manager_; } |
| 351 #endif | 357 #endif |
| 352 | 358 |
| 353 // Commands ------------------------------------------------------------------ | 359 // Commands ------------------------------------------------------------------ |
| 354 | 360 |
| 355 // Implementation of PageNavigator. | 361 // Implementation of PageNavigator. |
| 356 virtual void OpenURL(const GURL& url, const GURL& referrer, | 362 virtual void OpenURL(const GURL& url, const GURL& referrer, |
| 357 WindowOpenDisposition disposition, | 363 WindowOpenDisposition disposition, |
| (...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1308 // Content restrictions, used to disable print/copy etc based on content's | 1314 // Content restrictions, used to disable print/copy etc based on content's |
| 1309 // (full-page plugins for now only) permissions. | 1315 // (full-page plugins for now only) permissions. |
| 1310 int content_restrictions_; | 1316 int content_restrictions_; |
| 1311 | 1317 |
| 1312 // --------------------------------------------------------------------------- | 1318 // --------------------------------------------------------------------------- |
| 1313 | 1319 |
| 1314 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1320 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1315 }; | 1321 }; |
| 1316 | 1322 |
| 1317 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1323 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |