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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 WebSize WebFrameWidgetImpl::size() | 118 WebSize WebFrameWidgetImpl::size() |
119 { | 119 { |
120 return m_size; | 120 return m_size; |
121 } | 121 } |
122 | 122 |
123 void WebFrameWidgetImpl::willStartLiveResize() | 123 void WebFrameWidgetImpl::willStartLiveResize() |
124 { | 124 { |
125 if (m_localRoot->frameView()) | 125 if (m_localRoot->frameView()) |
126 m_localRoot->frameView()->willStartLiveResize(); | 126 m_localRoot->frameView()->willStartLiveResize(); |
127 | |
128 LocalFrame* frame = m_localRoot->frame(); | |
129 WebPluginContainerImpl* pluginContainer = WebLocalFrameImpl::pluginContainer
FromFrame(frame); | |
130 if (pluginContainer) | |
131 pluginContainer->willStartLiveResize(); | |
132 } | 127 } |
133 | 128 |
134 void WebFrameWidgetImpl::resize(const WebSize& newSize) | 129 void WebFrameWidgetImpl::resize(const WebSize& newSize) |
135 { | 130 { |
136 if (m_size == newSize) | 131 if (m_size == newSize) |
137 return; | 132 return; |
138 | 133 |
139 FrameView* view = m_localRoot->frameView(); | 134 FrameView* view = m_localRoot->frameView(); |
140 if (!view) | 135 if (!view) |
141 return; | 136 return; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void WebFrameWidgetImpl::setIgnoreInputEvents(bool newValue) | 193 void WebFrameWidgetImpl::setIgnoreInputEvents(bool newValue) |
199 { | 194 { |
200 ASSERT(m_ignoreInputEvents != newValue); | 195 ASSERT(m_ignoreInputEvents != newValue); |
201 m_ignoreInputEvents = newValue; | 196 m_ignoreInputEvents = newValue; |
202 } | 197 } |
203 | 198 |
204 void WebFrameWidgetImpl::willEndLiveResize() | 199 void WebFrameWidgetImpl::willEndLiveResize() |
205 { | 200 { |
206 if (m_localRoot->frameView()) | 201 if (m_localRoot->frameView()) |
207 m_localRoot->frameView()->willEndLiveResize(); | 202 m_localRoot->frameView()->willEndLiveResize(); |
208 | |
209 LocalFrame* frame = m_localRoot->frame(); | |
210 WebPluginContainerImpl* pluginContainer = WebLocalFrameImpl::pluginContainer
FromFrame(frame); | |
211 if (pluginContainer) | |
212 pluginContainer->willEndLiveResize(); | |
213 } | 203 } |
214 | 204 |
215 void WebFrameWidgetImpl::willEnterFullScreen() | 205 void WebFrameWidgetImpl::willEnterFullScreen() |
216 { | 206 { |
217 // FIXME: Implement full screen for out-of-process iframes. | 207 // FIXME: Implement full screen for out-of-process iframes. |
218 } | 208 } |
219 | 209 |
220 void WebFrameWidgetImpl::didEnterFullScreen() | 210 void WebFrameWidgetImpl::didEnterFullScreen() |
221 { | 211 { |
222 // FIXME: Implement full screen for out-of-process iframes. | 212 // FIXME: Implement full screen for out-of-process iframes. |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. | 1045 // correspond to Page visibility, but is necessary until we properly sort ou
t OOPIF visibility. |
1056 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); | 1046 m_page->setVisibilityState(static_cast<PageVisibilityState>(visibilityState)
, isInitialState); |
1057 | 1047 |
1058 if (m_layerTreeView) { | 1048 if (m_layerTreeView) { |
1059 bool visible = visibilityState == WebPageVisibilityStateVisible; | 1049 bool visible = visibilityState == WebPageVisibilityStateVisible; |
1060 m_layerTreeView->setVisible(visible); | 1050 m_layerTreeView->setVisible(visible); |
1061 } | 1051 } |
1062 } | 1052 } |
1063 | 1053 |
1064 } // namespace blink | 1054 } // namespace blink |
OLD | NEW |