| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 virtual bool handleKeyEvent(const WebKeyboardEvent&) override; | 87 virtual bool handleKeyEvent(const WebKeyboardEvent&) override; |
| 88 virtual bool handleCharEvent(const WebKeyboardEvent&) override; | 88 virtual bool handleCharEvent(const WebKeyboardEvent&) override; |
| 89 virtual bool handleGestureEvent(const WebGestureEvent&) override; | 89 virtual bool handleGestureEvent(const WebGestureEvent&) override; |
| 90 virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) ov
erride; | 90 virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) ov
erride; |
| 91 virtual bool handleMouseWheel(LocalFrame& mainFrame, const WebMouseWheelEven
t&) override; | 91 virtual bool handleMouseWheel(LocalFrame& mainFrame, const WebMouseWheelEven
t&) override; |
| 92 | 92 |
| 93 bool isMouseEventInWindow(const WebMouseEvent&); | 93 bool isMouseEventInWindow(const WebMouseEvent&); |
| 94 | 94 |
| 95 // PagePopup function | 95 // PagePopup function |
| 96 virtual AXObject* rootAXObject() override; | 96 virtual AXObject* rootAXObject() override; |
| 97 virtual void setWindowRect(const IntRect&) override; |
| 97 | 98 |
| 98 explicit WebPagePopupImpl(WebWidgetClient*); | 99 explicit WebPagePopupImpl(WebWidgetClient*); |
| 99 bool initializePage(); | 100 bool initializePage(); |
| 100 void destroyPage(); | 101 void destroyPage(); |
| 101 void setRootGraphicsLayer(GraphicsLayer*); | 102 void setRootGraphicsLayer(GraphicsLayer*); |
| 102 void setIsAcceleratedCompositingActive(bool enter); | 103 void setIsAcceleratedCompositingActive(bool enter); |
| 103 | 104 |
| 104 WebWidgetClient* m_widgetClient; | 105 WebWidgetClient* m_widgetClient; |
| 105 WebRect m_windowRectInScreen; | 106 WebRect m_windowRectInScreen; |
| 106 WebViewImpl* m_webView; | 107 WebViewImpl* m_webView; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 118 friend class PagePopupChromeClient; | 119 friend class PagePopupChromeClient; |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); | 122 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); |
| 122 // WebPagePopupImpl is the only implementation of PagePopup, so no | 123 // WebPagePopupImpl is the only implementation of PagePopup, so no |
| 123 // further checking required. | 124 // further checking required. |
| 124 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); | 125 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); |
| 125 | 126 |
| 126 } // namespace blink | 127 } // namespace blink |
| 127 #endif // WebPagePopupImpl_h | 128 #endif // WebPagePopupImpl_h |
| OLD | NEW |