| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 friend class WebPopupMenu; // For WebPopupMenu::create. | 113 friend class WebPopupMenu; // For WebPopupMenu::create. |
| 114 friend class WTF::RefCounted<WebPopupMenuImpl>; | 114 friend class WTF::RefCounted<WebPopupMenuImpl>; |
| 115 | 115 |
| 116 WebPopupMenuImpl(WebWidgetClient*); | 116 WebPopupMenuImpl(WebWidgetClient*); |
| 117 ~WebPopupMenuImpl(); | 117 ~WebPopupMenuImpl(); |
| 118 | 118 |
| 119 // WebCore::HostWindow methods: | 119 // WebCore::HostWindow methods: |
| 120 virtual void invalidateContentsAndRootView(const WebCore::IntRect&) OVERRIDE
FINAL; | 120 virtual void invalidateContentsAndRootView(const WebCore::IntRect&) OVERRIDE
FINAL; |
| 121 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&) OVERRI
DE FINAL; | 121 virtual void invalidateContentsForSlowScroll(const WebCore::IntRect&) OVERRI
DE FINAL; |
| 122 virtual void scheduleAnimation() OVERRIDE FINAL; | 122 virtual void scheduleAnimation() OVERRIDE FINAL; |
| 123 virtual void scroll( | 123 virtual void scroll(const WebCore::IntRect& clipRect) OVERRIDE FINAL; |
| 124 const WebCore::IntSize& scrollDelta, const WebCore::IntRect& scrollRect, | |
| 125 const WebCore::IntRect& clipRect) OVERRIDE FINAL; | |
| 126 virtual WebCore::IntRect rootViewToScreen(const WebCore::IntRect&) const OVE
RRIDE FINAL; | 124 virtual WebCore::IntRect rootViewToScreen(const WebCore::IntRect&) const OVE
RRIDE FINAL; |
| 127 virtual WebScreenInfo screenInfo() const OVERRIDE FINAL; | 125 virtual WebScreenInfo screenInfo() const OVERRIDE FINAL; |
| 128 | 126 |
| 129 // WebCore::FramelessScrollViewClient methods: | 127 // WebCore::FramelessScrollViewClient methods: |
| 130 virtual void popupClosed(WebCore::FramelessScrollView*) OVERRIDE FINAL; | 128 virtual void popupClosed(WebCore::FramelessScrollView*) OVERRIDE FINAL; |
| 131 | 129 |
| 132 WebWidgetClient* m_client; | 130 WebWidgetClient* m_client; |
| 133 WebSize m_size; | 131 WebSize m_size; |
| 134 | 132 |
| 135 WebLayerTreeView* m_layerTreeView; | 133 WebLayerTreeView* m_layerTreeView; |
| 136 OwnPtr<WebContentLayer> m_rootLayer; | 134 OwnPtr<WebContentLayer> m_rootLayer; |
| 137 | 135 |
| 138 WebPoint m_lastMousePosition; | 136 WebPoint m_lastMousePosition; |
| 139 | 137 |
| 140 // This is a non-owning ref. The popup will notify us via popupClosed() | 138 // This is a non-owning ref. The popup will notify us via popupClosed() |
| 141 // before it is destroyed. | 139 // before it is destroyed. |
| 142 WebCore::FramelessScrollView* m_widget; | 140 WebCore::FramelessScrollView* m_widget; |
| 143 }; | 141 }; |
| 144 | 142 |
| 145 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); | 143 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); |
| 146 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so | 144 // WebPopupMenuImpl is the only implementation of FramelessScrollViewClient, so |
| 147 // no need for further checking. | 145 // no need for further checking. |
| 148 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); | 146 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebCore::FramelessScrollViewClient, client,
true, true); |
| 149 | 147 |
| 150 } // namespace blink | 148 } // namespace blink |
| 151 | 149 |
| 152 #endif | 150 #endif |
| OLD | NEW |