| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |