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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 75 virtual void enterForceCompositingMode(bool enter) OVERRIDE; |
76 virtual void willCloseLayerTreeView() OVERRIDE; | 76 virtual void willCloseLayerTreeView() OVERRIDE; |
77 virtual void paint(WebCanvas*, const WebRect&, PaintOptions = ReadbackFromCo
mpositorIfAvailable) OVERRIDE; | 77 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE; |
78 virtual void resize(const WebSize&) OVERRIDE; | 78 virtual void resize(const WebSize&) OVERRIDE; |
79 virtual void close() OVERRIDE; | 79 virtual void close() OVERRIDE; |
80 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; | 80 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE; |
81 virtual void setFocus(bool) OVERRIDE; | 81 virtual void setFocus(bool) OVERRIDE; |
82 virtual bool isPagePopup() const OVERRIDE { return true; } | 82 virtual bool isPagePopup() const OVERRIDE { return true; } |
83 | 83 |
84 // PageWidgetEventHandler functions | 84 // PageWidgetEventHandler functions |
85 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; | 85 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; |
86 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; | 86 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; |
87 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; | 87 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; |
(...skipping 21 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 |