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

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

Issue 572943003: Fix point conversions in PopupContainer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | Source/web/PopupContainer.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 /* 2 /*
3 * Copyright (c) 2011, Google Inc. All rights reserved. 3 * Copyright (c) 2011, Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 static PassRefPtr<PopupContainer> create(PopupMenuClient*, bool deviceSuppor tsTouch); 52 static PassRefPtr<PopupContainer> create(PopupMenuClient*, bool deviceSuppor tsTouch);
53 53
54 // Whether a key event should be sent to this popup. 54 // Whether a key event should be sent to this popup.
55 bool isInterestedInEventForKey(int keyCode); 55 bool isInterestedInEventForKey(int keyCode);
56 56
57 // Widget 57 // Widget
58 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE; 58 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE;
59 virtual void hide() OVERRIDE; 59 virtual void hide() OVERRIDE;
60 virtual HostWindow* hostWindow() const OVERRIDE; 60 virtual HostWindow* hostWindow() const OVERRIDE;
61 virtual void invalidateRect(const IntRect&) OVERRIDE; 61 virtual void invalidateRect(const IntRect&) OVERRIDE;
62 virtual IntPoint convertChildToSelf(const Widget* child, const IntPoint&) co nst OVERRIDE;
63 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint&) co nst OVERRIDE;
62 64
63 // PopupContainer methods 65 // PopupContainer methods
64 66
65 bool handleMouseDownEvent(const PlatformMouseEvent&); 67 bool handleMouseDownEvent(const PlatformMouseEvent&);
66 bool handleMouseMoveEvent(const PlatformMouseEvent&); 68 bool handleMouseMoveEvent(const PlatformMouseEvent&);
67 bool handleMouseReleaseEvent(const PlatformMouseEvent&); 69 bool handleMouseReleaseEvent(const PlatformMouseEvent&);
68 bool handleWheelEvent(const PlatformWheelEvent&); 70 bool handleWheelEvent(const PlatformWheelEvent&);
69 bool handleKeyEvent(const PlatformKeyboardEvent&); 71 bool handleKeyEvent(const PlatformKeyboardEvent&);
70 bool handleTouchEvent(const PlatformTouchEvent&); 72 bool handleTouchEvent(const PlatformTouchEvent&);
71 bool handleGestureEvent(const PlatformGestureEvent&); 73 bool handleGestureEvent(const PlatformGestureEvent&);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 164
163 // Whether the popup is currently open. 165 // Whether the popup is currently open.
164 bool m_popupOpen; 166 bool m_popupOpen;
165 167
166 PopupContainerClient* m_client; 168 PopupContainerClient* m_client;
167 }; 169 };
168 170
169 } // namespace blink 171 } // namespace blink
170 172
171 #endif 173 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/PopupContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698