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

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

Issue 1087743002: Support multiple displays for PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixed IntRect inclusion Created 5 years, 8 months 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
« no previous file with comments | « Source/core/page/PagePopupController.idl ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 virtual bool handleKeyEvent(const WebKeyboardEvent&) override; 87 virtual bool handleKeyEvent(const WebKeyboardEvent&) override;
88 virtual bool handleCharEvent(const WebKeyboardEvent&) override; 88 virtual bool handleCharEvent(const WebKeyboardEvent&) override;
89 virtual bool handleGestureEvent(const WebGestureEvent&) override; 89 virtual bool handleGestureEvent(const WebGestureEvent&) override;
90 virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) ov erride; 90 virtual void handleMouseDown(LocalFrame& mainFrame, const WebMouseEvent&) ov erride;
91 virtual bool handleMouseWheel(LocalFrame& mainFrame, const WebMouseWheelEven t&) override; 91 virtual bool handleMouseWheel(LocalFrame& mainFrame, const WebMouseWheelEven t&) override;
92 92
93 bool isMouseEventInWindow(const WebMouseEvent&); 93 bool isMouseEventInWindow(const WebMouseEvent&);
94 94
95 // PagePopup function 95 // PagePopup function
96 virtual AXObject* rootAXObject() override; 96 virtual AXObject* rootAXObject() override;
97 virtual void setWindowRect(const IntRect&) override;
97 98
98 explicit WebPagePopupImpl(WebWidgetClient*); 99 explicit WebPagePopupImpl(WebWidgetClient*);
99 bool initializePage(); 100 bool initializePage();
100 void destroyPage(); 101 void destroyPage();
101 void setRootGraphicsLayer(GraphicsLayer*); 102 void setRootGraphicsLayer(GraphicsLayer*);
102 void setIsAcceleratedCompositingActive(bool enter); 103 void setIsAcceleratedCompositingActive(bool enter);
103 104
104 WebWidgetClient* m_widgetClient; 105 WebWidgetClient* m_widgetClient;
105 WebRect m_windowRectInScreen; 106 WebRect m_windowRectInScreen;
106 WebViewImpl* m_webView; 107 WebViewImpl* m_webView;
(...skipping 11 matching lines...) Expand all
118 friend class PagePopupChromeClient; 119 friend class PagePopupChromeClient;
119 }; 120 };
120 121
121 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi dget.isPagePopup()); 122 DEFINE_TYPE_CASTS(WebPagePopupImpl, WebWidget, widget, widget->isPagePopup(), wi dget.isPagePopup());
122 // WebPagePopupImpl is the only implementation of PagePopup, so no 123 // WebPagePopupImpl is the only implementation of PagePopup, so no
123 // further checking required. 124 // further checking required.
124 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); 125 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true);
125 126
126 } // namespace blink 127 } // namespace blink
127 #endif // WebPagePopupImpl_h 128 #endif // WebPagePopupImpl_h
OLDNEW
« no previous file with comments | « Source/core/page/PagePopupController.idl ('k') | Source/web/WebPagePopupImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698