| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 virtual float printPage(int pageToPrint, WebCanvas*) = 0; | 487 virtual float printPage(int pageToPrint, WebCanvas*) = 0; |
| 488 | 488 |
| 489 // Reformats the WebFrame for screen display. | 489 // Reformats the WebFrame for screen display. |
| 490 virtual void printEnd() = 0; | 490 virtual void printEnd() = 0; |
| 491 | 491 |
| 492 // If the frame contains a full-frame plugin or the given node refers to a | 492 // If the frame contains a full-frame plugin or the given node refers to a |
| 493 // plugin whose content indicates that printed output should not be scaled, | 493 // plugin whose content indicates that printed output should not be scaled, |
| 494 // return true, otherwise return false. | 494 // return true, otherwise return false. |
| 495 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0
; | 495 virtual bool isPrintScalingDisabledForPlugin(const WebNode& = WebNode()) = 0
; |
| 496 | 496 |
| 497 // CSS3 Paged Media ---------------------------------------------------- | |
| 498 | |
| 499 // Returns true if page box (margin boxes and page borders) is visible. | |
| 500 virtual bool isPageBoxVisible(int pageIndex) = 0; | |
| 501 | |
| 502 // Returns true if the page style has custom size information. | |
| 503 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; | |
| 504 | |
| 505 // Returns the preferred page size and margins in pixels, assuming 96 | |
| 506 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | |
| 507 // marginLeft must be initialized to the default values that are used if | |
| 508 // auto is specified. | |
| 509 virtual void pageSizeAndMarginsInPixels(int pageIndex, | |
| 510 WebSize& pageSize, | |
| 511 int& marginTop, | |
| 512 int& marginRight, | |
| 513 int& marginBottom, | |
| 514 int& marginLeft) = 0; | |
| 515 | |
| 516 // Returns the value for a page property that is only defined when printing. | |
| 517 // printBegin must have been called before this method. | |
| 518 virtual WebString pageProperty(const WebString& propertyName, int pageIndex)
= 0; | |
| 519 | |
| 520 | 497 |
| 521 // Events -------------------------------------------------------------- | 498 // Events -------------------------------------------------------------- |
| 522 | 499 |
| 523 // Dispatches a message event on the current DOMWindow in this WebFrame. | 500 // Dispatches a message event on the current DOMWindow in this WebFrame. |
| 524 virtual void dispatchMessageEventWithOriginCheck( | 501 virtual void dispatchMessageEventWithOriginCheck( |
| 525 const WebSecurityOrigin& intendedTargetOrigin, | 502 const WebSecurityOrigin& intendedTargetOrigin, |
| 526 const WebDOMEvent&) = 0; | 503 const WebDOMEvent&) = 0; |
| 527 | 504 |
| 528 | 505 |
| 529 // Utility ------------------------------------------------------------- | 506 // Utility ------------------------------------------------------------- |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 WebFrame* m_firstChild; | 579 WebFrame* m_firstChild; |
| 603 WebFrame* m_lastChild; | 580 WebFrame* m_lastChild; |
| 604 | 581 |
| 605 WebFrame* m_opener; | 582 WebFrame* m_opener; |
| 606 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 583 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 607 }; | 584 }; |
| 608 | 585 |
| 609 } // namespace blink | 586 } // namespace blink |
| 610 | 587 |
| 611 #endif | 588 #endif |
| OLD | NEW |