| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 void* webView() const override | 138 void* webView() const override |
| 139 { | 139 { |
| 140 return m_popup->m_webView; | 140 return m_popup->m_webView; |
| 141 } | 141 } |
| 142 | 142 |
| 143 IntSize minimumWindowSize() const override | 143 IntSize minimumWindowSize() const override |
| 144 { | 144 { |
| 145 return IntSize(0, 0); | 145 return IntSize(0, 0); |
| 146 } | 146 } |
| 147 | 147 |
| 148 void setCursor(const Cursor& cursor) override | 148 void setCursor(const Cursor& cursor, LocalFrame* localRoot) override |
| 149 { | 149 { |
| 150 if (m_popup->m_webView->client()) | 150 if (m_popup->m_webView->client()) |
| 151 m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor))
; | 151 m_popup->m_webView->client()->didChangeCursor(WebCursorInfo(cursor))
; |
| 152 } | 152 } |
| 153 | 153 |
| 154 void needTouchEvents(bool needsTouchEvents) override | 154 void needTouchEvents(bool needsTouchEvents) override |
| 155 { | 155 { |
| 156 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents); | 156 m_popup->widgetClient()->hasTouchEventHandlers(needsTouchEvents); |
| 157 } | 157 } |
| 158 | 158 |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 // A WebPagePopupImpl instance usually has two references. | 527 // A WebPagePopupImpl instance usually has two references. |
| 528 // - One owned by the instance itself. It represents the visible widget. | 528 // - One owned by the instance itself. It represents the visible widget. |
| 529 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 529 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
| 530 // WebPagePopupImpl to close. | 530 // WebPagePopupImpl to close. |
| 531 // We need them because the closing operation is asynchronous and the widget | 531 // We need them because the closing operation is asynchronous and the widget |
| 532 // can be closed while the WebViewImpl is unaware of it. | 532 // can be closed while the WebViewImpl is unaware of it. |
| 533 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 533 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
| 534 } | 534 } |
| 535 | 535 |
| 536 } // namespace blink | 536 } // namespace blink |
| OLD | NEW |