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

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

Issue 634893002: Replace OVERRIDE and FINAL with override and final in WebKit/public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/web/PageOverlay.cpp ('k') | Source/web/PopupContainerTest.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 29 matching lines...) Expand all
40 40
41 class ChromeClient; 41 class ChromeClient;
42 class FrameView; 42 class FrameView;
43 class PopupContainerClient; 43 class PopupContainerClient;
44 class PopupMenuClient; 44 class PopupMenuClient;
45 struct WebPopupMenuInfo; 45 struct WebPopupMenuInfo;
46 46
47 // This class wraps a PopupListBox. It positions the popup, paints the border 47 // This class wraps a PopupListBox. It positions the popup, paints the border
48 // around it, and forwards input events. 48 // around it, and forwards input events.
49 // FIXME(skobes): This class can probably be combined with PopupListBox. 49 // FIXME(skobes): This class can probably be combined with PopupListBox.
50 class PopupContainer FINAL : public Widget { 50 class PopupContainer final : public Widget {
51 public: 51 public:
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; 62 virtual IntPoint convertChildToSelf(const Widget* child, const IntPoint&) co nst override;
63 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint&) co nst OVERRIDE; 63 virtual IntPoint convertSelfToChild(const Widget* child, const IntPoint&) co nst override;
64 64
65 // PopupContainer methods 65 // PopupContainer methods
66 66
67 bool handleMouseDownEvent(const PlatformMouseEvent&); 67 bool handleMouseDownEvent(const PlatformMouseEvent&);
68 bool handleMouseMoveEvent(const PlatformMouseEvent&); 68 bool handleMouseMoveEvent(const PlatformMouseEvent&);
69 bool handleMouseReleaseEvent(const PlatformMouseEvent&); 69 bool handleMouseReleaseEvent(const PlatformMouseEvent&);
70 bool handleWheelEvent(const PlatformWheelEvent&); 70 bool handleWheelEvent(const PlatformWheelEvent&);
71 bool handleKeyEvent(const PlatformKeyboardEvent&); 71 bool handleKeyEvent(const PlatformKeyboardEvent&);
72 bool handleTouchEvent(const PlatformTouchEvent&); 72 bool handleTouchEvent(const PlatformTouchEvent&);
73 bool handleGestureEvent(const PlatformGestureEvent&); 73 bool handleGestureEvent(const PlatformGestureEvent&);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 // Whether the popup is currently open. 165 // Whether the popup is currently open.
166 bool m_popupOpen; 166 bool m_popupOpen;
167 167
168 PopupContainerClient* m_client; 168 PopupContainerClient* m_client;
169 }; 169 };
170 170
171 } // namespace blink 171 } // namespace blink
172 172
173 #endif 173 #endif
OLDNEW
« no previous file with comments | « Source/web/PageOverlay.cpp ('k') | Source/web/PopupContainerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698