| 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 | |
| 331 // TODO(brettw) document these. | 328 // TODO(brettw) document these. |
| 332 virtual void ShowContents(); | 329 virtual void ShowContents(); |
| 333 virtual void HideContents(); | 330 virtual void HideContents(); |
| 334 | 331 |
| 335 #ifdef UNIT_TEST | 332 #ifdef UNIT_TEST |
| 336 // Expose the render manager for testing. | 333 // Expose the render manager for testing. |
| 337 RenderViewHostManager* render_manager() { return &render_manager_; } | 334 RenderViewHostManager* render_manager() { return &render_manager_; } |
| 338 #endif | 335 #endif |
| 339 | 336 |
| 340 // Commands ------------------------------------------------------------------ | 337 // Commands ------------------------------------------------------------------ |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 bool displaying_pdf_content_; | 1255 bool displaying_pdf_content_; |
| 1259 | 1256 |
| 1260 scoped_ptr<MatchPreview> match_preview_; | 1257 scoped_ptr<MatchPreview> match_preview_; |
| 1261 | 1258 |
| 1262 // --------------------------------------------------------------------------- | 1259 // --------------------------------------------------------------------------- |
| 1263 | 1260 |
| 1264 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1261 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1265 }; | 1262 }; |
| 1266 | 1263 |
| 1267 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1264 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |