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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "public/platform/WebContentLayerClient.h" | 34 #include "public/platform/WebContentLayerClient.h" |
35 #include "public/platform/WebPoint.h" | 35 #include "public/platform/WebPoint.h" |
36 #include "public/platform/WebSize.h" | 36 #include "public/platform/WebSize.h" |
37 #include "public/web/WebPopupMenu.h" | 37 #include "public/web/WebPopupMenu.h" |
38 #include "web/PopupContainerClient.h" | 38 #include "web/PopupContainerClient.h" |
39 #include "wtf/OwnPtr.h" | 39 #include "wtf/OwnPtr.h" |
40 #include "wtf/RefCounted.h" | 40 #include "wtf/RefCounted.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 class LocalFrame; | |
44 class KeyboardEvent; | |
45 class Page; | |
46 class PlatformKeyboardEvent; | |
47 class Range; | |
48 class WebContentLayer; | 43 class WebContentLayer; |
49 class WebGestureEvent; | 44 class WebGestureEvent; |
50 class WebKeyboardEvent; | 45 class WebKeyboardEvent; |
51 class WebLayerTreeView; | 46 class WebLayerTreeView; |
52 class WebMouseEvent; | 47 class WebMouseEvent; |
53 class WebMouseWheelEvent; | 48 class WebMouseWheelEvent; |
54 class WebRange; | |
55 class WebTouchEvent; | 49 class WebTouchEvent; |
56 class Widget; | |
57 struct WebRect; | 50 struct WebRect; |
58 | 51 |
59 class WebPopupMenuImpl : public WebPopupMenu, public PopupContainerClient, publi
c WebContentLayerClient, public RefCounted<WebPopupMenuImpl> { | 52 class WebPopupMenuImpl : public WebPopupMenu, public PopupContainerClient, publi
c WebContentLayerClient, public RefCounted<WebPopupMenuImpl> { |
60 WTF_MAKE_FAST_ALLOCATED; | 53 WTF_MAKE_FAST_ALLOCATED; |
61 public: | 54 public: |
62 // WebWidget functions: | 55 // WebWidget functions: |
63 virtual void close() override final; | 56 virtual void close() override final; |
64 virtual WebSize size() override final { return m_size; } | 57 virtual WebSize size() override final { return m_size; } |
65 virtual void willStartLiveResize() override final; | 58 virtual void willStartLiveResize() override final; |
66 virtual void resize(const WebSize&) override final; | 59 virtual void resize(const WebSize&) override final; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 }; | 128 }; |
136 | 129 |
137 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); | 130 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi
dget.isPopupMenu()); |
138 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so | 131 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so |
139 // no need for further checking. | 132 // no need for further checking. |
140 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); | 133 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); |
141 | 134 |
142 } // namespace blink | 135 } // namespace blink |
143 | 136 |
144 #endif | 137 #endif |
OLD | NEW |