| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <map> | 10 #include <map> |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 310 |
| 311 // TODO(erg): HACK ALERT! This was thrown together for beta and | 311 // TODO(erg): HACK ALERT! This was thrown together for beta and |
| 312 // needs to be completely removed after we ship it. Right now, the | 312 // needs to be completely removed after we ship it. Right now, the |
| 313 // cut/copy/paste menu items are always enabled and will send a | 313 // cut/copy/paste menu items are always enabled and will send a |
| 314 // cut/copy/paste command to the currently visible | 314 // cut/copy/paste command to the currently visible |
| 315 // TabContents. Post-beta, this needs to be replaced with a unified | 315 // TabContents. Post-beta, this needs to be replaced with a unified |
| 316 // interface for supporting cut/copy/paste, and managing who has | 316 // interface for supporting cut/copy/paste, and managing who has |
| 317 // cut/copy/paste focus. (http://b/1117225) | 317 // cut/copy/paste focus. (http://b/1117225) |
| 318 virtual void Cut(); | 318 virtual void Cut(); |
| 319 virtual void Copy(); | 319 virtual void Copy(); |
| 320 virtual void CopyToFindPboard(); |
| 320 virtual void Paste(); | 321 virtual void Paste(); |
| 321 | 322 |
| 322 // Called on a TabContents when it isn't a popup, but a new window. | 323 // Called on a TabContents when it isn't a popup, but a new window. |
| 323 virtual void DisassociateFromPopupCount(); | 324 virtual void DisassociateFromPopupCount(); |
| 324 | 325 |
| 325 // Creates a new TabContents with the same state as this one. The returned | 326 // Creates a new TabContents with the same state as this one. The returned |
| 326 // heap-allocated pointer is owned by the caller. | 327 // heap-allocated pointer is owned by the caller. |
| 327 virtual TabContents* Clone(); | 328 virtual TabContents* Clone(); |
| 328 | 329 |
| 329 // Tell Gears to create a shortcut for the current page. | 330 // Tell Gears to create a shortcut for the current page. |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 // If this tab was created from a renderer using window.open, this will be | 1121 // If this tab was created from a renderer using window.open, this will be |
| 1121 // non-NULL and represent the DOMUI of the opening renderer. | 1122 // non-NULL and represent the DOMUI of the opening renderer. |
| 1122 DOMUITypeID opener_dom_ui_type_; | 1123 DOMUITypeID opener_dom_ui_type_; |
| 1123 | 1124 |
| 1124 // --------------------------------------------------------------------------- | 1125 // --------------------------------------------------------------------------- |
| 1125 | 1126 |
| 1126 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1127 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1127 }; | 1128 }; |
| 1128 | 1129 |
| 1129 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1130 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |