Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 class WebString; | 78 class WebString; |
| 79 class WebURL; | 79 class WebURL; |
| 80 class WebURLLoader; | 80 class WebURLLoader; |
| 81 class WebURLRequest; | 81 class WebURLRequest; |
| 82 class WebView; | 82 class WebView; |
| 83 enum class WebSandboxFlags; | 83 enum class WebSandboxFlags; |
| 84 struct WebConsoleMessage; | 84 struct WebConsoleMessage; |
| 85 struct WebFindOptions; | 85 struct WebFindOptions; |
| 86 struct WebFloatPoint; | 86 struct WebFloatPoint; |
| 87 struct WebFloatRect; | 87 struct WebFloatRect; |
| 88 struct WebFloatSize; | |
| 88 struct WebFrameOwnerProperties; | 89 struct WebFrameOwnerProperties; |
| 89 struct WebPoint; | 90 struct WebPoint; |
| 90 struct WebPrintParams; | 91 struct WebPrintParams; |
| 91 struct WebRect; | 92 struct WebRect; |
| 92 struct WebScriptSource; | 93 struct WebScriptSource; |
| 93 struct WebSize; | 94 struct WebSize; |
| 94 struct WebURLLoaderOptions; | 95 struct WebURLLoaderOptions; |
| 95 | 96 |
| 96 template <typename T> class WebVector; | 97 template <typename T> class WebVector; |
| 97 | 98 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 virtual bool isPageBoxVisible(int pageIndex) = 0; | 501 virtual bool isPageBoxVisible(int pageIndex) = 0; |
| 501 | 502 |
| 502 // Returns true if the page style has custom size information. | 503 // Returns true if the page style has custom size information. |
| 503 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; | 504 virtual bool hasCustomPageSizeStyle(int pageIndex) = 0; |
| 504 | 505 |
| 505 // Returns the preferred page size and margins in pixels, assuming 96 | 506 // Returns the preferred page size and margins in pixels, assuming 96 |
| 506 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, | 507 // pixels per inch. pageSize, marginTop, marginRight, marginBottom, |
| 507 // marginLeft must be initialized to the default values that are used if | 508 // marginLeft must be initialized to the default values that are used if |
| 508 // auto is specified. | 509 // auto is specified. |
| 509 virtual void pageSizeAndMarginsInPixels(int pageIndex, | 510 virtual void pageSizeAndMarginsInPixels(int pageIndex, |
| 510 WebSize& pageSize, | 511 WebFloatSize& pageSize, |
|
Lei Zhang
2016/07/06 18:26:45
nit: Is this the correct style for Blink?
| |
| 511 int& marginTop, | 512 int& marginTop, |
| 512 int& marginRight, | 513 int& marginRight, |
| 513 int& marginBottom, | 514 int& marginBottom, |
| 514 int& marginLeft) = 0; | 515 int& marginLeft) = 0; |
| 515 | 516 |
| 516 // Returns the value for a page property that is only defined when printing. | 517 // Returns the value for a page property that is only defined when printing. |
| 517 // printBegin must have been called before this method. | 518 // printBegin must have been called before this method. |
| 518 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0; | 519 virtual WebString pageProperty(const WebString& propertyName, int pageIndex) = 0; |
| 519 | 520 |
| 520 | 521 |
| 521 // Events -------------------------------------------------------------- | 522 // Events -------------------------------------------------------------- |
| 522 | 523 |
| 523 // Dispatches a message event on the current DOMWindow in this WebFrame. | 524 // Dispatches a message event on the current DOMWindow in this WebFrame. |
| 524 virtual void dispatchMessageEventWithOriginCheck( | 525 virtual void dispatchMessageEventWithOriginCheck( |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 602 WebFrame* m_firstChild; | 603 WebFrame* m_firstChild; |
| 603 WebFrame* m_lastChild; | 604 WebFrame* m_lastChild; |
| 604 | 605 |
| 605 WebFrame* m_opener; | 606 WebFrame* m_opener; |
| 606 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; | 607 WebPrivateOwnPtr<OpenedFrameTracker> m_openedFrameTracker; |
| 607 }; | 608 }; |
| 608 | 609 |
| 609 } // namespace blink | 610 } // namespace blink |
| 610 | 611 |
| 611 #endif | 612 #endif |
| OLD | NEW |