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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class PlatformKeyboardEvent; | 44 class PlatformKeyboardEvent; |
45 } | 45 } |
46 | 46 |
47 namespace blink { | 47 namespace blink { |
48 | 48 |
49 class PagePopupChromeClient; | 49 class PagePopupChromeClient; |
50 class WebLayerTreeView; | 50 class WebLayerTreeView; |
51 class WebLayer; | 51 class WebLayer; |
52 class WebViewImpl; | 52 class WebViewImpl; |
53 | 53 |
54 class WebPagePopupImpl FINAL : | 54 class WebPagePopupImpl FINAL |
55 public WebPagePopup, | 55 : public WebPagePopup |
56 public PageWidgetEventHandler, | 56 , public PageWidgetEventHandler |
57 public blink::PagePopup, | 57 , public blink::PagePopup |
58 public RefCounted<WebPagePopupImpl> { | 58 , public RefCounted<WebPagePopupImpl> { |
59 WTF_MAKE_NONCOPYABLE(WebPagePopupImpl); | 59 WTF_MAKE_NONCOPYABLE(WebPagePopupImpl); |
60 WTF_MAKE_FAST_ALLOCATED; | 60 WTF_MAKE_FAST_ALLOCATED; |
61 | 61 |
62 public: | 62 public: |
63 virtual ~WebPagePopupImpl(); | 63 virtual ~WebPagePopupImpl(); |
64 bool initialize(WebViewImpl*, blink::PagePopupClient*, const blink::IntRect&
originBoundsInRootView); | 64 bool initialize(WebViewImpl*, blink::PagePopupClient*, const blink::IntRect&
originBoundsInRootView); |
65 bool handleKeyEvent(const blink::PlatformKeyboardEvent&); | 65 bool handleKeyEvent(const blink::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; } |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 blink::PagePopup, so no | 113 // WebPagePopupImpl is the only implementation of blink::PagePopup, so no |
114 // further checking required. | 114 // further checking required. |
115 DEFINE_TYPE_CASTS(WebPagePopupImpl, blink::PagePopup, popup, true, true); | 115 DEFINE_TYPE_CASTS(WebPagePopupImpl, blink::PagePopup, popup, true, true); |
116 | 116 |
117 } // namespace blink | 117 } // namespace blink |
118 #endif // WebPagePopupImpl_h | 118 #endif // WebPagePopupImpl_h |
OLD | NEW |