| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 | 208 |
| 209 void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) | 209 void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) |
| 210 { | 210 { |
| 211 // TODO(alexmos, kenrb): resizing behavior such as this should be changed | 211 // TODO(alexmos, kenrb): resizing behavior such as this should be changed |
| 212 // to use Page messages. https://crbug.com/599688. | 212 // to use Page messages. https://crbug.com/599688. |
| 213 page()->frameHost().visualViewport().setSize(newSize); | 213 page()->frameHost().visualViewport().setSize(newSize); |
| 214 page()->frameHost().visualViewport().clampToBoundaries(); | 214 page()->frameHost().visualViewport().clampToBoundaries(); |
| 215 | 215 |
| 216 view()->didUpdateFullScreenSize(); | 216 view()->didUpdateFullscreenSize(); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void WebFrameWidgetImpl::updateMainFrameLayoutSize() | 219 void WebFrameWidgetImpl::updateMainFrameLayoutSize() |
| 220 { | 220 { |
| 221 if (!m_localRoot) | 221 if (!m_localRoot) |
| 222 return; | 222 return; |
| 223 | 223 |
| 224 FrameView* view = m_localRoot->frameView(); | 224 FrameView* view = m_localRoot->frameView(); |
| 225 if (!view) | 225 if (!view) |
| 226 return; | 226 return; |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1460 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
| 1461 { | 1461 { |
| 1462 if (!m_imeAcceptEvents) | 1462 if (!m_imeAcceptEvents) |
| 1463 return nullptr; | 1463 return nullptr; |
| 1464 return focusedLocalFrameInWidget(); | 1464 return focusedLocalFrameInWidget(); |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 } // namespace blink | 1467 } // namespace blink |
| OLD | NEW |