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

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

Issue 880713003: Rename scheduleAnimation() to scheduleVisualUpdate(). (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase. Created 5 years, 10 months 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/WebViewImpl.h ('k') | sky/viewer/document_view.h » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « sky/engine/web/WebViewImpl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698