Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: Source/web/WebPagePopupImpl.h

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 public: 60 public:
61 virtual ~WebPagePopupImpl(); 61 virtual ~WebPagePopupImpl();
62 bool initialize(WebViewImpl*, PagePopupClient*, const IntRect& originBoundsI nRootView); 62 bool initialize(WebViewImpl*, PagePopupClient*, const IntRect& originBoundsI nRootView);
63 bool handleKeyEvent(const PlatformKeyboardEvent&); 63 bool handleKeyEvent(const PlatformKeyboardEvent&);
64 void closePopup(); 64 void closePopup();
65 WebWidgetClient* widgetClient() const { return m_widgetClient; } 65 WebWidgetClient* widgetClient() const { return m_widgetClient; }
66 bool hasSamePopupClient(WebPagePopupImpl* other) { return other && m_popupCl ient == other->m_popupClient; } 66 bool hasSamePopupClient(WebPagePopupImpl* other) { return other && m_popupCl ient == other->m_popupClient; }
67 LocalDOMWindow* window(); 67 LocalDOMWindow* window();
68 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) override; 68 virtual void compositeAndReadbackAsync(WebCompositeAndReadbackAsyncCallback* ) override;
69 virtual WebPoint positionRelativeToOwner() override; 69 virtual WebPoint positionRelativeToOwner() override;
70 virtual void postMessage(const String& message) override;
70 71
71 private: 72 private:
72 // WebWidget functions 73 // WebWidget functions
73 virtual WebSize size() override; 74 virtual WebSize size() override;
74 virtual void beginFrame(const WebBeginFrameArgs&) override; 75 virtual void beginFrame(const WebBeginFrameArgs&) override;
75 virtual void layout() override; 76 virtual void layout() override;
76 virtual void willCloseLayerTreeView() override; 77 virtual void willCloseLayerTreeView() override;
77 virtual void paint(WebCanvas*, const WebRect&) override; 78 virtual void paint(WebCanvas*, const WebRect&) override;
78 virtual void resize(const WebSize&) override; 79 virtual void resize(const WebSize&) override;
79 virtual void close() override; 80 virtual void close() override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 friend class PagePopupChromeClient; 114 friend class PagePopupChromeClient;
114 }; 115 };
115 116
116 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi dget.isPagePopup()); 117 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi dget.isPagePopup());
117 // WebPagePopupImpl is the only implementation of PagePopup, so no 118 // WebPagePopupImpl is the only implementation of PagePopup, so no
118 // further checking required. 119 // further checking required.
119 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); 120 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true);
120 121
121 } // namespace blink 122 } // namespace blink
122 #endif // WebPagePopupImpl_h 123 #endif // WebPagePopupImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698