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

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

Issue 2395393003: Remove grow box rect support, renderer part. (Closed)
Patch Set: rebase Created 4 years, 2 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 | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebView.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 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
2934 if (page()) 2934 if (page())
2935 page()->pointerLockController().didNotAcquirePointerLock(); 2935 page()->pointerLockController().didNotAcquirePointerLock();
2936 } 2936 }
2937 2937
2938 void WebViewImpl::didLosePointerLock() { 2938 void WebViewImpl::didLosePointerLock() {
2939 m_pointerLockGestureToken.clear(); 2939 m_pointerLockGestureToken.clear();
2940 if (page()) 2940 if (page())
2941 page()->pointerLockController().didLosePointerLock(); 2941 page()->pointerLockController().didLosePointerLock();
2942 } 2942 }
2943 2943
2944 void WebViewImpl::didChangeWindowResizerRect() {
2945 if (mainFrameImpl()->frameView())
2946 mainFrameImpl()->frameView()->windowResizerRectChanged();
2947 }
2948
2949 // TODO(ekaramad):This method is almost duplicated in WebFrameWidgetImpl as 2944 // TODO(ekaramad):This method is almost duplicated in WebFrameWidgetImpl as
2950 // well. This code needs to be refactored (http://crbug.com/629721). 2945 // well. This code needs to be refactored (http://crbug.com/629721).
2951 bool WebViewImpl::getCompositionCharacterBounds(WebVector<WebRect>& bounds) { 2946 bool WebViewImpl::getCompositionCharacterBounds(WebVector<WebRect>& bounds) {
2952 WebRange range = compositionRange(); 2947 WebRange range = compositionRange();
2953 if (range.isEmpty()) 2948 if (range.isEmpty())
2954 return false; 2949 return false;
2955 2950
2956 WebLocalFrame* frame = focusedFrame(); 2951 WebLocalFrame* frame = focusedFrame();
2957 2952
2958 // Only consider frames whose local root is the main frame. For other 2953 // Only consider frames whose local root is the main frame. For other
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
4748 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) 4743 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame())
4749 return nullptr; 4744 return nullptr;
4750 return focusedFrame; 4745 return focusedFrame;
4751 } 4746 }
4752 4747
4753 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { 4748 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const {
4754 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; 4749 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr;
4755 } 4750 }
4756 4751
4757 } // namespace blink 4752 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698