| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 void sendResizeEventAndRepaint(); | 133 void sendResizeEventAndRepaint(); |
| 134 | 134 |
| 135 void updateMainFrameLayoutSize(); | 135 void updateMainFrameLayoutSize(); |
| 136 | 136 |
| 137 void setIgnoreInputEvents(bool newValue); | 137 void setIgnoreInputEvents(bool newValue); |
| 138 | 138 |
| 139 // Returns the page object associated with this widget. This may be null whe
n | 139 // Returns the page object associated with this widget. This may be null whe
n |
| 140 // the page is shutting down, but will be valid at all other times. | 140 // the page is shutting down, but will be valid at all other times. |
| 141 Page* page() const { return m_page; } | 141 Page* page() const { return m_page; } |
| 142 | 142 |
| 143 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 144 |
| 143 // Returns true if the event leads to scrolling. | 145 // Returns true if the event leads to scrolling. |
| 144 static bool mapKeyCodeForScroll( | 146 static bool mapKeyCodeForScroll( |
| 145 int keyCode, | 147 int keyCode, |
| 146 ScrollDirection*, | 148 ScrollDirection*, |
| 147 ScrollGranularity*); | 149 ScrollGranularity*); |
| 148 | 150 |
| 149 private: | 151 private: |
| 150 friend class WebFrameWidget; // For WebFrameWidget::create. | 152 friend class WebFrameWidget; // For WebFrameWidget::create. |
| 151 friend class WTF::RefCounted<WebFrameWidgetImpl>; | 153 friend class WTF::RefCounted<WebFrameWidgetImpl>; |
| 152 | 154 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 bool m_suppressNextKeypressEvent; | 205 bool m_suppressNextKeypressEvent; |
| 204 | 206 |
| 205 bool m_ignoreInputEvents; | 207 bool m_ignoreInputEvents; |
| 206 | 208 |
| 207 static const WebInputEvent* m_currentInputEvent; | 209 static const WebInputEvent* m_currentInputEvent; |
| 208 }; | 210 }; |
| 209 | 211 |
| 210 } // namespace blink | 212 } // namespace blink |
| 211 | 213 |
| 212 #endif | 214 #endif |
| OLD | NEW |