| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // Indicates two things: | 163 // Indicates two things: |
| 164 // 1) This view may have a new layout now. | 164 // 1) This view may have a new layout now. |
| 165 // 2) Calling layout() is a no-op. | 165 // 2) Calling layout() is a no-op. |
| 166 // After calling WebWidget::layout(), expect to get this notification | 166 // After calling WebWidget::layout(), expect to get this notification |
| 167 // unless the view did not need a layout. | 167 // unless the view did not need a layout. |
| 168 void layoutUpdated(WebLocalFrameImpl*); | 168 void layoutUpdated(WebLocalFrameImpl*); |
| 169 | 169 |
| 170 void updateMainFrameLayoutSize(); | 170 void updateMainFrameLayoutSize(); |
| 171 | 171 |
| 172 // Returns the input event we're currently processing. This is used in some | |
| 173 // cases where the WebCore DOM event doesn't have the information we need. | |
| 174 static const WebInputEvent* currentInputEvent() | |
| 175 { | |
| 176 return m_currentInputEvent; | |
| 177 } | |
| 178 | |
| 179 void scheduleAnimation(); | 172 void scheduleAnimation(); |
| 180 | 173 |
| 181 virtual void setVisibilityState(WebPageVisibilityState, bool) override; | 174 virtual void setVisibilityState(WebPageVisibilityState, bool) override; |
| 182 | 175 |
| 183 // Returns true if the event leads to scrolling. | 176 // Returns true if the event leads to scrolling. |
| 184 static bool mapKeyCodeForScroll( | 177 static bool mapKeyCodeForScroll( |
| 185 int keyCode, | 178 int keyCode, |
| 186 ScrollDirection*, | 179 ScrollDirection*, |
| 187 ScrollGranularity*); | 180 ScrollGranularity*); |
| 188 | 181 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 WebColor m_backgroundColorOverride; | 290 WebColor m_backgroundColorOverride; |
| 298 }; | 291 }; |
| 299 | 292 |
| 300 // We have no ways to check if the specified WebView is an instance of | 293 // We have no ways to check if the specified WebView is an instance of |
| 301 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 294 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 302 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 295 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 303 | 296 |
| 304 } // namespace blink | 297 } // namespace blink |
| 305 | 298 |
| 306 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ | 299 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ |
| OLD | NEW |