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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(double) OVERRIDE; |
74 virtual void layout() OVERRIDE; | 74 virtual void layout() OVERRIDE; |
75 virtual void enterForceCompositingMode(bool enter) OVERRIDE; | |
76 virtual void willCloseLayerTreeView() OVERRIDE; | 75 virtual void willCloseLayerTreeView() OVERRIDE; |
77 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; | 76 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; |
78 virtual void resize(const WebSize&) OVERRIDE; | 77 virtual void resize(const WebSize&) OVERRIDE; |
79 virtual void close() OVERRIDE; | 78 virtual void close() OVERRIDE; |
80 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 79 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
81 virtual void setFocus(bool) OVERRIDE; | 80 virtual void setFocus(bool) OVERRIDE; |
82 virtual bool isPagePopup() const OVERRIDE { return true; } | 81 virtual bool isPagePopup() const OVERRIDE { return true; } |
83 virtual bool isAcceleratedCompositingActive() const OVERRIDE { return m_isAc
celeratedCompositingActive; } | 82 virtual bool isAcceleratedCompositingActive() const OVERRIDE { return m_isAc
celeratedCompositingActive; } |
84 | 83 |
85 // PageWidgetEventHandler functions | 84 // PageWidgetEventHandler functions |
(...skipping 24 matching lines...) Expand all Loading... |
110 friend class PagePopupChromeClient; | 109 friend class PagePopupChromeClient; |
111 }; | 110 }; |
112 | 111 |
113 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); | 112 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi
dget.isPagePopup()); |
114 // WebPagePopupImpl is the only implementation of WebCore::PagePopup, so no | 113 // WebPagePopupImpl is the only implementation of WebCore::PagePopup, so no |
115 // further checking required. | 114 // further checking required. |
116 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebCore::PagePopup, popup, true, true); | 115 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebCore::PagePopup, popup, true, true); |
117 | 116 |
118 } // namespace blink | 117 } // namespace blink |
119 #endif // WebPagePopupImpl_h | 118 #endif // WebPagePopupImpl_h |
OLD | NEW |