| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual ~WebPagePopupImpl(); | 63 virtual ~WebPagePopupImpl(); |
| 64 bool initialize(WebViewImpl*, WebCore::PagePopupClient*, const WebCore::IntR
ect& originBoundsInRootView); | 64 bool initialize(WebViewImpl*, WebCore::PagePopupClient*, const WebCore::IntR
ect& originBoundsInRootView); |
| 65 bool handleKeyEvent(const WebCore::PlatformKeyboardEvent&); | 65 bool handleKeyEvent(const WebCore::PlatformKeyboardEvent&); |
| 66 void closePopup(); | 66 void closePopup(); |
| 67 WebWidgetClient* widgetClient() const { return m_widgetClient; } | 67 WebWidgetClient* widgetClient() const { return m_widgetClient; } |
| 68 bool hasSamePopupClient(WebPagePopupImpl* other) { return other && m_popupCl
ient == other->m_popupClient; } | 68 bool hasSamePopupClient(WebPagePopupImpl* other) { return other && m_popupCl
ient == other->m_popupClient; } |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // WebWidget functions | 71 // WebWidget functions |
| 72 virtual WebSize size() OVERRIDE; | 72 virtual WebSize size() OVERRIDE; |
| 73 virtual void animate(double) OVERRIDE; | 73 virtual void animate(WebFrameTime) OVERRIDE; |
| 74 virtual void layout() OVERRIDE; | 74 virtual void layout() OVERRIDE; |
| 75 virtual void willCloseLayerTreeView() OVERRIDE; | 75 virtual void willCloseLayerTreeView() OVERRIDE; |
| 76 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; | 76 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; |
| 77 virtual void resize(const WebSize&) OVERRIDE; | 77 virtual void resize(const WebSize&) OVERRIDE; |
| 78 virtual void close() OVERRIDE; | 78 virtual void close() OVERRIDE; |
| 79 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 79 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
| 80 virtual void setFocus(bool) OVERRIDE; | 80 virtual void setFocus(bool) OVERRIDE; |
| 81 virtual bool isPagePopup() const OVERRIDE { return true; } | 81 virtual bool isPagePopup() const OVERRIDE { return true; } |
| 82 virtual bool isAcceleratedCompositingActive() const OVERRIDE { return m_isAc
celeratedCompositingActive; } | 82 virtual bool isAcceleratedCompositingActive() const OVERRIDE { return m_isAc
celeratedCompositingActive; } |
| 83 | 83 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 109 friend class PagePopupChromeClient; | 109 friend class PagePopupChromeClient; |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); | 112 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); |
| 113 // WebPagePopupImpl is the only implementation of WebCore::PagePopup, so no | 113 // WebPagePopupImpl is the only implementation of WebCore::PagePopup, so no |
| 114 // further checking required. | 114 // further checking required. |
| 115 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebCore::PagePopup, popup, true, true); | 115 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebCore::PagePopup, popup, true, true); |
| 116 | 116 |
| 117 } // namespace blink | 117 } // namespace blink |
| 118 #endif // WebPagePopupImpl_h | 118 #endif // WebPagePopupImpl_h |
| OLD | NEW |