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

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

Issue 783393006: Remove relayout due to scrollbars taking up width (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 } 690 }
691 691
692 bool WebViewImpl::isTrackingRepaints() const 692 bool WebViewImpl::isTrackingRepaints() const
693 { 693 {
694 if (!page()) 694 if (!page())
695 return false; 695 return false;
696 FrameView* view = page()->mainFrame()->view(); 696 FrameView* view = page()->mainFrame()->view();
697 return view->isTrackingPaintInvalidations(); 697 return view->isTrackingPaintInvalidations();
698 } 698 }
699 699
700 bool WebViewImpl::hasHorizontalScrollbar()
701 {
702 // FIXME(sky): Remove
703 return false;
704 }
705
706 bool WebViewImpl::hasVerticalScrollbar()
707 {
708 // FIXME(sky): Remove
709 return false;
710 }
711
712 const WebInputEvent* WebViewImpl::m_currentInputEvent = 0; 700 const WebInputEvent* WebViewImpl::m_currentInputEvent = 0;
713 701
714 // FIXME: autogenerate this kind of code, and use it throughout Blink rather tha n 702 // FIXME: autogenerate this kind of code, and use it throughout Blink rather tha n
715 // the one-offs for subsets of these values. 703 // the one-offs for subsets of these values.
716 static String inputTypeToName(WebInputEvent::Type type) 704 static String inputTypeToName(WebInputEvent::Type type)
717 { 705 {
718 switch (type) { 706 switch (type) {
719 case WebInputEvent::MouseDown: 707 case WebInputEvent::MouseDown:
720 return EventTypeNames::mousedown; 708 return EventTypeNames::mousedown;
721 case WebInputEvent::MouseUp: 709 case WebInputEvent::MouseUp:
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1453 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState, 1441 void WebViewImpl::setVisibilityState(WebPageVisibilityState visibilityState,
1454 bool isInitialState) { 1442 bool isInitialState) {
1455 if (!page()) 1443 if (!page())
1456 return; 1444 return;
1457 1445
1458 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState = = WebPageVisibilityStateHidden); 1446 ASSERT(visibilityState == WebPageVisibilityStateVisible || visibilityState = = WebPageVisibilityStateHidden);
1459 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int> (visibilityState)), isInitialState); 1447 m_page->setVisibilityState(static_cast<PageVisibilityState>(static_cast<int> (visibilityState)), isInitialState);
1460 } 1448 }
1461 1449
1462 } // namespace blink 1450 } // namespace blink
OLDNEW
« sky/engine/core/rendering/RenderLayerScrollableArea.cpp ('K') | « sky/engine/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698