| 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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // Set the time when we started to create the new tab page. This time is | 639 // Set the time when we started to create the new tab page. This time is |
| 640 // from before we created this TabContents. | 640 // from before we created this TabContents. |
| 641 void set_new_tab_start_time(const base::TimeTicks& time) { | 641 void set_new_tab_start_time(const base::TimeTicks& time) { |
| 642 new_tab_start_time_ = time; | 642 new_tab_start_time_ = time; |
| 643 } | 643 } |
| 644 | 644 |
| 645 // Notification that tab closing has started. This can be called multiple | 645 // Notification that tab closing has started. This can be called multiple |
| 646 // times, subsequent calls are ignored. | 646 // times, subsequent calls are ignored. |
| 647 void OnCloseStarted(); | 647 void OnCloseStarted(); |
| 648 | 648 |
| 649 LanguageState& language_state() { | 649 virtual LanguageState& language_state() { |
| 650 return language_state_; | 650 return language_state_; |
| 651 } | 651 } |
| 652 | 652 |
| 653 virtual const LanguageState& language_state() const { |
| 654 return language_state_; |
| 655 } |
| 656 |
| 653 // Returns true if underlying TabContentsView should accept drag-n-drop. | 657 // Returns true if underlying TabContentsView should accept drag-n-drop. |
| 654 bool ShouldAcceptDragAndDrop() const; | 658 bool ShouldAcceptDragAndDrop() const; |
| 655 | 659 |
| 656 // Creates a duplicate of this TabContents. The returned TabContents is | 660 // Creates a duplicate of this TabContents. The returned TabContents is |
| 657 // configured such that the renderer has not been loaded (it'll load the first | 661 // configured such that the renderer has not been loaded (it'll load the first |
| 658 // time it is selected). | 662 // time it is selected). |
| 659 // This is intended for use with apps. | 663 // This is intended for use with apps. |
| 660 // The caller owns the returned object. | 664 // The caller owns the returned object. |
| 661 TabContents* CloneAndMakePhantom(); | 665 TabContents* CloneAndMakePhantom(); |
| 662 | 666 |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1272 | 1276 |
| 1273 // See description in RenderViewHostDelegate::SetDisplayingPDFContent. | 1277 // See description in RenderViewHostDelegate::SetDisplayingPDFContent. |
| 1274 bool displaying_pdf_content_; | 1278 bool displaying_pdf_content_; |
| 1275 | 1279 |
| 1276 // --------------------------------------------------------------------------- | 1280 // --------------------------------------------------------------------------- |
| 1277 | 1281 |
| 1278 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1282 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1279 }; | 1283 }; |
| 1280 | 1284 |
| 1281 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1285 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |