| 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 listener needs to be fired. The value of | 
|  | 349   // this changes over time. For example, if true and the before unload listener | 
|  | 350   // is executed and allows the user to exit, then this returns false. | 
|  | 351   bool NeedToFireBeforeUnload(); | 
|  | 352 | 
| 348 #ifdef UNIT_TEST | 353 #ifdef UNIT_TEST | 
| 349   // Expose the render manager for testing. | 354   // Expose the render manager for testing. | 
| 350   RenderViewHostManager* render_manager() { return &render_manager_; } | 355   RenderViewHostManager* render_manager() { return &render_manager_; } | 
| 351 #endif | 356 #endif | 
| 352 | 357 | 
| 353   // Commands ------------------------------------------------------------------ | 358   // Commands ------------------------------------------------------------------ | 
| 354 | 359 | 
| 355   // Implementation of PageNavigator. | 360   // Implementation of PageNavigator. | 
| 356   virtual void OpenURL(const GURL& url, const GURL& referrer, | 361   virtual void OpenURL(const GURL& url, const GURL& referrer, | 
| 357                        WindowOpenDisposition disposition, | 362                        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 | 1313   // Content restrictions, used to disable print/copy etc based on content's | 
| 1309   // (full-page plugins for now only) permissions. | 1314   // (full-page plugins for now only) permissions. | 
| 1310   int content_restrictions_; | 1315   int content_restrictions_; | 
| 1311 | 1316 | 
| 1312   // --------------------------------------------------------------------------- | 1317   // --------------------------------------------------------------------------- | 
| 1313 | 1318 | 
| 1314   DISALLOW_COPY_AND_ASSIGN(TabContents); | 1319   DISALLOW_COPY_AND_ASSIGN(TabContents); | 
| 1315 }; | 1320 }; | 
| 1316 | 1321 | 
| 1317 #endif  // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1322 #endif  // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 
| OLD | NEW | 
|---|