| 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 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 return WebViewImpl::fromPage(frame()->page()); | 809 return WebViewImpl::fromPage(frame()->page()); |
| 810 } | 810 } |
| 811 | 811 |
| 812 void WebLocalFrameImpl::didFail(const ResourceError& error) | 812 void WebLocalFrameImpl::didFail(const ResourceError& error) |
| 813 { | 813 { |
| 814 if (!client()) | 814 if (!client()) |
| 815 return; | 815 return; |
| 816 client()->didFailLoad(this, error); | 816 client()->didFailLoad(this, error); |
| 817 } | 817 } |
| 818 | 818 |
| 819 void WebLocalFrameImpl::setCanHaveScrollbars(bool canHaveScrollbars) | |
| 820 { | |
| 821 frame()->view()->setCanHaveScrollbars(canHaveScrollbars); | |
| 822 } | |
| 823 | |
| 824 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse
t, float contentScaleFactor) | 819 void WebLocalFrameImpl::setInputEventsTransformForEmulation(const IntSize& offse
t, float contentScaleFactor) |
| 825 { | 820 { |
| 826 m_inputEventsOffsetForEmulation = offset; | 821 m_inputEventsOffsetForEmulation = offset; |
| 827 m_inputEventsScaleFactorForEmulation = contentScaleFactor; | 822 m_inputEventsScaleFactorForEmulation = contentScaleFactor; |
| 828 if (frame()->view()) | 823 if (frame()->view()) |
| 829 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset
ForEmulation, m_inputEventsScaleFactorForEmulation); | 824 frame()->view()->setInputEventsTransformForEmulation(m_inputEventsOffset
ForEmulation, m_inputEventsScaleFactorForEmulation); |
| 830 } | 825 } |
| 831 | 826 |
| 832 void WebLocalFrameImpl::invalidateAll() const | 827 void WebLocalFrameImpl::invalidateAll() const |
| 833 { | 828 { |
| 834 ASSERT(frame() && frame()->view()); | 829 ASSERT(frame() && frame()->view()); |
| 835 FrameView* view = frame()->view(); | 830 FrameView* view = frame()->view(); |
| 836 view->invalidateRect(view->frameRect()); | 831 view->invalidateRect(view->frameRect()); |
| 837 } | 832 } |
| 838 | 833 |
| 839 } // namespace blink | 834 } // namespace blink |
| OLD | NEW |