| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 20 matching lines...) Expand all Loading... |
| 31 #ifndef ExternalPopupMenu_h | 31 #ifndef ExternalPopupMenu_h |
| 32 #define ExternalPopupMenu_h | 32 #define ExternalPopupMenu_h |
| 33 | 33 |
| 34 #include "platform/PopupMenu.h" | 34 #include "platform/PopupMenu.h" |
| 35 #include "platform/Timer.h" | 35 #include "platform/Timer.h" |
| 36 #include "public/platform/WebCanvas.h" | 36 #include "public/platform/WebCanvas.h" |
| 37 #include "public/platform/WebScrollbar.h" | 37 #include "public/platform/WebScrollbar.h" |
| 38 #include "public/web/WebExternalPopupMenuClient.h" | 38 #include "public/web/WebExternalPopupMenuClient.h" |
| 39 #include "web/WebExport.h" | 39 #include "web/WebExport.h" |
| 40 #include "wtf/Compiler.h" | 40 #include "wtf/Compiler.h" |
| 41 #include <memory> | |
| 42 | 41 |
| 43 namespace blink { | 42 namespace blink { |
| 44 | 43 |
| 45 class HTMLSelectElement; | 44 class HTMLSelectElement; |
| 46 class LocalFrame; | 45 class LocalFrame; |
| 47 class WebExternalPopupMenu; | 46 class WebExternalPopupMenu; |
| 48 class WebMouseEvent; | 47 class WebMouseEvent; |
| 49 class WebViewImpl; | 48 class WebViewImpl; |
| 50 struct WebPopupMenuInfo; | 49 struct WebPopupMenuInfo; |
| 51 | 50 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 79 void didAcceptIndices(const WebVector<int>& indices) override; | 78 void didAcceptIndices(const WebVector<int>& indices) override; |
| 80 void didCancel() override; | 79 void didCancel() override; |
| 81 | 80 |
| 82 bool showInternal(); | 81 bool showInternal(); |
| 83 void dispatchEvent(Timer<ExternalPopupMenu>*); | 82 void dispatchEvent(Timer<ExternalPopupMenu>*); |
| 84 void update(); | 83 void update(); |
| 85 | 84 |
| 86 Member<HTMLSelectElement> m_ownerElement; | 85 Member<HTMLSelectElement> m_ownerElement; |
| 87 Member<LocalFrame> m_localFrame; | 86 Member<LocalFrame> m_localFrame; |
| 88 WebViewImpl& m_webView; | 87 WebViewImpl& m_webView; |
| 89 std::unique_ptr<WebMouseEvent> m_syntheticEvent; | 88 OwnPtr<WebMouseEvent> m_syntheticEvent; |
| 90 Timer<ExternalPopupMenu> m_dispatchEventTimer; | 89 Timer<ExternalPopupMenu> m_dispatchEventTimer; |
| 91 // The actual implementor of the show menu. | 90 // The actual implementor of the show menu. |
| 92 WebExternalPopupMenu* m_webExternalPopupMenu; | 91 WebExternalPopupMenu* m_webExternalPopupMenu; |
| 93 bool m_needsUpdate = false; | 92 bool m_needsUpdate = false; |
| 94 }; | 93 }; |
| 95 | 94 |
| 96 } // namespace blink | 95 } // namespace blink |
| 97 | 96 |
| 98 #endif // ExternalPopupMenu_h | 97 #endif // ExternalPopupMenu_h |
| OLD | NEW |