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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix copyright Created 5 years, 9 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
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 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 { 2014 {
2015 m_fullscreenController->exitFullScreenForElement(element); 2015 m_fullscreenController->exitFullScreenForElement(element);
2016 } 2016 }
2017 2017
2018 void WebViewImpl::clearCompositedSelectionBounds() 2018 void WebViewImpl::clearCompositedSelectionBounds()
2019 { 2019 {
2020 if (m_layerTreeView) 2020 if (m_layerTreeView)
2021 m_layerTreeView->clearSelection(); 2021 m_layerTreeView->clearSelection();
2022 } 2022 }
2023 2023
2024 void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBound& ancho r, const WebSelectionBound& focus) 2024 void WebViewImpl::updateCompositedSelectionBounds(const WebSelectionBounds& boun ds)
2025 { 2025 {
2026 if (m_layerTreeView) 2026 if (m_layerTreeView)
2027 m_layerTreeView->registerSelection(anchor, focus); 2027 m_layerTreeView->registerSelection(bounds);
2028 } 2028 }
2029 2029
2030 bool WebViewImpl::hasHorizontalScrollbar() 2030 bool WebViewImpl::hasHorizontalScrollbar()
2031 { 2031 {
2032 return mainFrameImpl()->frameView()->horizontalScrollbar(); 2032 return mainFrameImpl()->frameView()->horizontalScrollbar();
2033 } 2033 }
2034 2034
2035 bool WebViewImpl::hasVerticalScrollbar() 2035 bool WebViewImpl::hasVerticalScrollbar()
2036 { 2036 {
2037 return mainFrameImpl()->frameView()->verticalScrollbar(); 2037 return mainFrameImpl()->frameView()->verticalScrollbar();
(...skipping 2604 matching lines...) Expand 10 before | Expand all | Expand 10 after
4642 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4642 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4643 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4643 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4644 } 4644 }
4645 4645
4646 void WebViewImpl::forceNextWebGLContextCreationToFail() 4646 void WebViewImpl::forceNextWebGLContextCreationToFail()
4647 { 4647 {
4648 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); 4648 WebGLRenderingContext::forceNextWebGLContextCreationToFail();
4649 } 4649 }
4650 4650
4651 } // namespace blink 4651 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698