Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: sky/engine/web/WebLocalFrameImpl.cpp

Issue 680703002: Remove more frame-level scrolling machinery. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698