| 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 "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 virtual void DidBecomeSelected(); | 318 virtual void DidBecomeSelected(); |
| 319 | 319 |
| 320 // Invoked when the tab contents becomes hidden. | 320 // Invoked when the tab contents becomes hidden. |
| 321 // NOTE: If you override this, call the superclass version too! | 321 // NOTE: If you override this, call the superclass version too! |
| 322 virtual void WasHidden(); | 322 virtual void WasHidden(); |
| 323 | 323 |
| 324 // Activates this contents within its containing window, bringing that window | 324 // Activates this contents within its containing window, bringing that window |
| 325 // to the foreground if necessary. | 325 // to the foreground if necessary. |
| 326 void Activate(); | 326 void Activate(); |
| 327 | 327 |
| 328 // Deactivates this contents by deactivating its containing window. |
| 329 void Deactivate(); |
| 330 |
| 328 // TODO(brettw) document these. | 331 // TODO(brettw) document these. |
| 329 virtual void ShowContents(); | 332 virtual void ShowContents(); |
| 330 virtual void HideContents(); | 333 virtual void HideContents(); |
| 331 | 334 |
| 332 #ifdef UNIT_TEST | 335 #ifdef UNIT_TEST |
| 333 // Expose the render manager for testing. | 336 // Expose the render manager for testing. |
| 334 RenderViewHostManager* render_manager() { return &render_manager_; } | 337 RenderViewHostManager* render_manager() { return &render_manager_; } |
| 335 #endif | 338 #endif |
| 336 | 339 |
| 337 // Commands ------------------------------------------------------------------ | 340 // Commands ------------------------------------------------------------------ |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 bool displaying_pdf_content_; | 1258 bool displaying_pdf_content_; |
| 1256 | 1259 |
| 1257 scoped_ptr<MatchPreview> match_preview_; | 1260 scoped_ptr<MatchPreview> match_preview_; |
| 1258 | 1261 |
| 1259 // --------------------------------------------------------------------------- | 1262 // --------------------------------------------------------------------------- |
| 1260 | 1263 |
| 1261 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1264 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1262 }; | 1265 }; |
| 1263 | 1266 |
| 1264 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1267 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |