OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 protected: | 103 protected: |
104 friend class WebPopupMenu; // For WebPopupMenu::create. | 104 friend class WebPopupMenu; // For WebPopupMenu::create. |
105 friend class WTF::RefCounted<WebPopupMenuImpl>; | 105 friend class WTF::RefCounted<WebPopupMenuImpl>; |
106 | 106 |
107 explicit WebPopupMenuImpl(WebWidgetClient*); | 107 explicit WebPopupMenuImpl(WebWidgetClient*); |
108 ~WebPopupMenuImpl(); | 108 ~WebPopupMenuImpl(); |
109 | 109 |
110 // HostWindow methods: | 110 // HostWindow methods: |
111 virtual void invalidateRect(const IntRect&) override final; | 111 virtual void invalidateRect(const IntRect&) override final; |
112 virtual void scheduleAnimation() override final; | 112 virtual void scheduleAnimation() override final; |
113 virtual IntRect rootViewToScreen(const IntRect&) const override final; | 113 virtual IntRect viewportToScreen(const IntRect&) const override final; |
114 virtual WebScreenInfo screenInfo() const override final; | 114 virtual WebScreenInfo screenInfo() const override final; |
115 | 115 |
116 // PopupContainerClient methods: | 116 // PopupContainerClient methods: |
117 virtual void popupClosed(PopupContainer*) override final; | 117 virtual void popupClosed(PopupContainer*) override final; |
118 void invalidateDisplayItemClient(DisplayItemClient) override final; | 118 void invalidateDisplayItemClient(DisplayItemClient) override final; |
119 void invalidateAllDisplayItems() override final; | 119 void invalidateAllDisplayItems() override final; |
120 | 120 |
121 DisplayItemList* displayItemList(); | 121 DisplayItemList* displayItemList(); |
122 | 122 |
123 WebWidgetClient* m_client; | 123 WebWidgetClient* m_client; |
(...skipping 12 matching lines...) Expand all Loading... |
136 }; | 136 }; |
137 | 137 |
138 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); | 138 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); |
139 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so | 139 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so |
140 // no need for further checking. | 140 // no need for further checking. |
141 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); | 141 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); |
142 | 142 |
143 } // namespace blink | 143 } // namespace blink |
144 | 144 |
145 #endif | 145 #endif |
OLD | NEW |