| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 } else { | 191 } else { |
| 192 WebRect damagedRect(0, 0, m_size.width, m_size.height); | 192 WebRect damagedRect(0, 0, m_size.width, m_size.height); |
| 193 m_client->didInvalidateRect(damagedRect); | 193 m_client->didInvalidateRect(damagedRect); |
| 194 } | 194 } |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) { | 198 void WebFrameWidgetImpl::resizeVisualViewport(const WebSize& newSize) { |
| 199 // TODO(alexmos, kenrb): resizing behavior such as this should be changed | 199 // TODO(alexmos, kenrb): resizing behavior such as this should be changed |
| 200 // to use Page messages. https://crbug.com/599688. | 200 // to use Page messages. https://crbug.com/599688. |
| 201 page()->frameHost().visualViewport().setSize(newSize); | 201 page()->visualViewport().setSize(newSize); |
| 202 page()->frameHost().visualViewport().clampToBoundaries(); | 202 page()->visualViewport().clampToBoundaries(); |
| 203 | 203 |
| 204 view()->didUpdateFullscreenSize(); | 204 view()->didUpdateFullscreenSize(); |
| 205 } | 205 } |
| 206 | 206 |
| 207 void WebFrameWidgetImpl::updateMainFrameLayoutSize() { | 207 void WebFrameWidgetImpl::updateMainFrameLayoutSize() { |
| 208 if (!m_localRoot) | 208 if (!m_localRoot) |
| 209 return; | 209 return; |
| 210 | 210 |
| 211 FrameView* view = m_localRoot->frameView(); | 211 FrameView* view = m_localRoot->frameView(); |
| 212 if (!view) | 212 if (!view) |
| (...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1142 return nullptr; | 1142 return nullptr; |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { | 1145 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const { |
| 1146 if (!m_imeAcceptEvents) | 1146 if (!m_imeAcceptEvents) |
| 1147 return nullptr; | 1147 return nullptr; |
| 1148 return focusedLocalFrameInWidget(); | 1148 return focusedLocalFrameInWidget(); |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 } // namespace blink | 1151 } // namespace blink |
| OLD | NEW |