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 | 7 |
8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 return request_context_.get(); | 663 return request_context_.get(); |
664 } | 664 } |
665 | 665 |
666 LanguageState& language_state() { | 666 LanguageState& language_state() { |
667 return language_state_; | 667 return language_state_; |
668 } | 668 } |
669 | 669 |
670 // Returns true if underlying TabContentsView should accept drag-n-drop. | 670 // Returns true if underlying TabContentsView should accept drag-n-drop. |
671 bool ShouldAcceptDragAndDrop() const; | 671 bool ShouldAcceptDragAndDrop() const; |
672 | 672 |
673 // Creates a duplicate of this TabContents. The returned TabContents is | |
674 // configured such that the renderer has not been loaded (it'll load the first | |
675 // time it is selected). | |
676 // This is intended for use with apps. | |
677 // The caller owns the returned object. | |
678 TabContents* CloneAndMakePhantom(); | |
679 | |
680 // Indicates if this tab was explicitly closed by the user (control-w, close | 673 // Indicates if this tab was explicitly closed by the user (control-w, close |
681 // tab menu item...). This is false for actions that indirectly close the tab, | 674 // tab menu item...). This is false for actions that indirectly close the tab, |
682 // such as closing the window. The setter is maintained by TabStripModel, and | 675 // such as closing the window. The setter is maintained by TabStripModel, and |
683 // the getter only useful from within TAB_CLOSED notification | 676 // the getter only useful from within TAB_CLOSED notification |
684 void set_closed_by_user_gesture(bool value) { | 677 void set_closed_by_user_gesture(bool value) { |
685 closed_by_user_gesture_ = value; | 678 closed_by_user_gesture_ = value; |
686 } | 679 } |
687 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } | 680 bool closed_by_user_gesture() const { return closed_by_user_gesture_; } |
688 | 681 |
689 // JavaScriptMessageBoxClient ------------------------------------------------ | 682 // JavaScriptMessageBoxClient ------------------------------------------------ |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 | 1270 |
1278 // See description above setter. | 1271 // See description above setter. |
1279 bool closed_by_user_gesture_; | 1272 bool closed_by_user_gesture_; |
1280 | 1273 |
1281 // --------------------------------------------------------------------------- | 1274 // --------------------------------------------------------------------------- |
1282 | 1275 |
1283 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1276 DISALLOW_COPY_AND_ASSIGN(TabContents); |
1284 }; | 1277 }; |
1285 | 1278 |
1286 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1279 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
OLD | NEW |