| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 return document->focusedElement(); | 848 return document->focusedElement(); |
| 849 } | 849 } |
| 850 | 850 |
| 851 HitTestResult WebViewImpl::hitTestResultForWindowPos(const IntPoint& pos) | 851 HitTestResult WebViewImpl::hitTestResultForWindowPos(const IntPoint& pos) |
| 852 { | 852 { |
| 853 IntPoint docPoint(m_page->mainFrame()->view()->windowToContents(pos)); | 853 IntPoint docPoint(m_page->mainFrame()->view()->windowToContents(pos)); |
| 854 HitTestResult result = m_page->mainFrame()->eventHandler().hitTestResultAtPo
int(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); | 854 HitTestResult result = m_page->mainFrame()->eventHandler().hitTestResultAtPo
int(docPoint, HitTestRequest::ReadOnly | HitTestRequest::Active); |
| 855 return result; | 855 return result; |
| 856 } | 856 } |
| 857 | 857 |
| 858 void WebViewImpl::scheduleAnimation() | 858 void WebViewImpl::scheduleVisualUpdate() |
| 859 { | 859 { |
| 860 m_client->scheduleAnimation(); | 860 m_client->scheduleVisualUpdate(); |
| 861 } | 861 } |
| 862 | 862 |
| 863 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState, | 863 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState, |
| 864 bool isInitialState) { | 864 bool isInitialState) { |
| 865 if (!page()) | 865 if (!page()) |
| 866 return; | 866 return; |
| 867 | 867 |
| 868 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState =
= WebPageVisibilityStateHidden); | 868 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState =
= WebPageVisibilityStateHidden); |
| 869 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); | 869 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int>
(visibilityState)), isInitialState); |
| 870 } | 870 } |
| 871 | 871 |
| 872 } // namespace blink | 872 } // namespace blink |
| OLD | NEW |