| 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // the "Print..." dialog box. (managed by the print worker thread). | 517 // the "Print..." dialog box. (managed by the print worker thread). |
| 518 // TODO(maruel): Creates a snapshot of the renderer to be used for the new | 518 // TODO(maruel): Creates a snapshot of the renderer to be used for the new |
| 519 // tab for the printing facility. | 519 // tab for the printing facility. |
| 520 void PrintPreview(); | 520 void PrintPreview(); |
| 521 | 521 |
| 522 // Prints the current document immediately. Since the rendering is | 522 // Prints the current document immediately. Since the rendering is |
| 523 // asynchronous, the actual printing will not be completed on the return of | 523 // asynchronous, the actual printing will not be completed on the return of |
| 524 // this function. Returns false if printing is impossible at the moment. | 524 // this function. Returns false if printing is impossible at the moment. |
| 525 bool PrintNow(); | 525 bool PrintNow(); |
| 526 | 526 |
| 527 // Notify the completion of a printing job. |
| 528 void PrintingDone(int document_cookie, bool success); |
| 529 |
| 527 // Returns true if the active NavigationEntry's page_id equals page_id. | 530 // Returns true if the active NavigationEntry's page_id equals page_id. |
| 528 bool IsActiveEntry(int32 page_id); | 531 bool IsActiveEntry(int32 page_id); |
| 529 | 532 |
| 530 const std::string& contents_mime_type() const { | 533 const std::string& contents_mime_type() const { |
| 531 return contents_mime_type_; | 534 return contents_mime_type_; |
| 532 } | 535 } |
| 533 | 536 |
| 534 // Returns true if this TabContents will notify about disconnection. | 537 // Returns true if this TabContents will notify about disconnection. |
| 535 bool notify_disconnection() const { return notify_disconnection_; } | 538 bool notify_disconnection() const { return notify_disconnection_; } |
| 536 | 539 |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 // True if the user has decided to block future javascript messages. This is | 1069 // True if the user has decided to block future javascript messages. This is |
| 1067 // reset on navigations to false on navigations. | 1070 // reset on navigations to false on navigations. |
| 1068 bool suppress_javascript_messages_; | 1071 bool suppress_javascript_messages_; |
| 1069 | 1072 |
| 1070 // --------------------------------------------------------------------------- | 1073 // --------------------------------------------------------------------------- |
| 1071 | 1074 |
| 1072 DISALLOW_COPY_AND_ASSIGN(TabContents); | 1075 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 1073 }; | 1076 }; |
| 1074 | 1077 |
| 1075 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 1078 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |