| 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 2828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2839 page()->focusController().advanceFocus(reverse ? WebFocusTypeBackward | 2839 page()->focusController().advanceFocus(reverse ? WebFocusTypeBackward |
| 2840 : WebFocusTypeForward); | 2840 : WebFocusTypeForward); |
| 2841 } | 2841 } |
| 2842 | 2842 |
| 2843 void WebViewImpl::advanceFocusAcrossFrames(WebFocusType type, | 2843 void WebViewImpl::advanceFocusAcrossFrames(WebFocusType type, |
| 2844 WebRemoteFrame* from, | 2844 WebRemoteFrame* from, |
| 2845 WebLocalFrame* to) { | 2845 WebLocalFrame* to) { |
| 2846 // TODO(alexmos): Pass in proper with sourceCapabilities. | 2846 // TODO(alexmos): Pass in proper with sourceCapabilities. |
| 2847 page()->focusController().advanceFocusAcrossFrames( | 2847 page()->focusController().advanceFocusAcrossFrames( |
| 2848 type, toWebRemoteFrameImpl(from)->frame(), | 2848 type, toWebRemoteFrameImpl(from)->frame(), |
| 2849 toWebLocalFrameImpl(to)->frame()); | 2849 toWebLocalFrameImpl(to)->frame(), InputDeviceCapabilities::Null); |
| 2850 } | 2850 } |
| 2851 | 2851 |
| 2852 double WebViewImpl::zoomLevel() { | 2852 double WebViewImpl::zoomLevel() { |
| 2853 return m_zoomLevel; | 2853 return m_zoomLevel; |
| 2854 } | 2854 } |
| 2855 | 2855 |
| 2856 void WebViewImpl::propagateZoomFactorToLocalFrameRoots(Frame* frame, | 2856 void WebViewImpl::propagateZoomFactorToLocalFrameRoots(Frame* frame, |
| 2857 float zoomFactor) { | 2857 float zoomFactor) { |
| 2858 if (frame->isLocalRoot()) { | 2858 if (frame->isLocalRoot()) { |
| 2859 LocalFrame* localFrame = toLocalFrame(frame); | 2859 LocalFrame* localFrame = toLocalFrame(frame); |
| (...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4166 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4167 return nullptr; | 4167 return nullptr; |
| 4168 return focusedFrame; | 4168 return focusedFrame; |
| 4169 } | 4169 } |
| 4170 | 4170 |
| 4171 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4171 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4172 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4172 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4173 } | 4173 } |
| 4174 | 4174 |
| 4175 } // namespace blink | 4175 } // namespace blink |
| OLD | NEW |