| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 { | 1727 { |
| 1728 Document* document = contextDocument(); | 1728 Document* document = contextDocument(); |
| 1729 if (!document || !document->page()) { | 1729 if (!document || !document->page()) { |
| 1730 ec = INVALID_ACCESS_ERR; | 1730 ec = INVALID_ACCESS_ERR; |
| 1731 return; | 1731 return; |
| 1732 } | 1732 } |
| 1733 Page* page = document->page(); | 1733 Page* page = document->page(); |
| 1734 page->setDeviceScaleFactor(scaleFactor); | 1734 page->setDeviceScaleFactor(scaleFactor); |
| 1735 } | 1735 } |
| 1736 | 1736 |
| 1737 void Internals::setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCod
e& ec) | |
| 1738 { | |
| 1739 Document* document = contextDocument(); | |
| 1740 if (!document || !document->page()) { | |
| 1741 ec = INVALID_ACCESS_ERR; | |
| 1742 return; | |
| 1743 } | |
| 1744 Page* page = document->page(); | |
| 1745 page->setPageScaleFactor(scaleFactor, IntPoint(x, y)); | |
| 1746 } | |
| 1747 | |
| 1748 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception
Code& ec) | 1737 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception
Code& ec) |
| 1749 { | 1738 { |
| 1750 if (!document || !document->page()) { | 1739 if (!document || !document->page()) { |
| 1751 ec = INVALID_ACCESS_ERR; | 1740 ec = INVALID_ACCESS_ERR; |
| 1752 return; | 1741 return; |
| 1753 } | 1742 } |
| 1754 document->page()->setIsCursorVisible(isVisible); | 1743 document->page()->setIsCursorVisible(isVisible); |
| 1755 } | 1744 } |
| 1756 | 1745 |
| 1757 void Internals::webkitWillEnterFullScreenForElement(Document* document, Element*
element) | 1746 void Internals::webkitWillEnterFullScreenForElement(Document* document, Element*
element) |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 | 1976 |
| 1988 RenderObject* renderer = select->renderer(); | 1977 RenderObject* renderer = select->renderer(); |
| 1989 if (!renderer->isMenuList()) | 1978 if (!renderer->isMenuList()) |
| 1990 return false; | 1979 return false; |
| 1991 | 1980 |
| 1992 RenderMenuList* menuList = toRenderMenuList(renderer); | 1981 RenderMenuList* menuList = toRenderMenuList(renderer); |
| 1993 return menuList->popupIsVisible(); | 1982 return menuList->popupIsVisible(); |
| 1994 } | 1983 } |
| 1995 | 1984 |
| 1996 } | 1985 } |
| OLD | NEW |