| 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 request_context_ = context; | 660 request_context_ = context; |
| 661 } | 661 } |
| 662 URLRequestContextGetter* request_context() const { | 662 URLRequestContextGetter* request_context() const { |
| 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. |
| 671 bool ShouldAcceptDragAndDrop() const; |
| 672 |
| 670 // Creates a duplicate of this TabContents. The returned TabContents is | 673 // Creates a duplicate of this TabContents. The returned TabContents is |
| 671 // configured such that the renderer has not been loaded (it'll load the first | 674 // configured such that the renderer has not been loaded (it'll load the first |
| 672 // time it is selected). | 675 // time it is selected). |
| 673 // This is intended for use with apps. | 676 // This is intended for use with apps. |
| 674 // The caller owns the returned object. | 677 // The caller owns the returned object. |
| 675 TabContents* CloneAndMakePhantom(); | 678 TabContents* CloneAndMakePhantom(); |
| 676 | 679 |
| 677 // Indicates if this tab was explicitly closed by the user (control-w, close | 680 // Indicates if this tab was explicitly closed by the user (control-w, close |
| 678 // tab menu item...). This is false for actions that indirectly close the tab, | 681 // tab menu item...). This is false for actions that indirectly close the tab, |
| 679 // such as closing the window. The setter is maintained by TabStripModel, and | 682 // such as closing the window. The setter is maintained by TabStripModel, and |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 | 1293 |
| 1291 // See description above setter. | 1294 // See description above setter. |
| 1292 bool closed_by_user_gesture_; | 1295 bool closed_by_user_gesture_; |
| 1293 | 1296 |
| 1294 // --------------------------------------------------------------------------- | 1297 // --------------------------------------------------------------------------- |
| 1295 | 1298 |
| 1296 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1299 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1297 }; | 1300 }; |
| 1298 | 1301 |
| 1299 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1302 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |