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

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

Issue 135753002: Update web classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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/web/PopupContainer.h ('k') | Source/web/PopupMenuChromium.h » ('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) 2011, Google Inc. All rights reserved. 2 * Copyright (c) 2011, 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 String label; 77 String label;
78 Type type; 78 Type type;
79 int yOffset; // y offset of this item, relative to the top of the popup. 79 int yOffset; // y offset of this item, relative to the top of the popup.
80 TextDirection textDirection; 80 TextDirection textDirection;
81 bool hasTextDirectionOverride; 81 bool hasTextDirectionOverride;
82 bool enabled; 82 bool enabled;
83 }; 83 };
84 84
85 // This class uses WebCore code to paint and handle events for a drop-down list 85 // This class uses WebCore code to paint and handle events for a drop-down list
86 // box ("combobox" on Windows). 86 // box ("combobox" on Windows).
87 class PopupListBox : public FramelessScrollView, public PopupContent { 87 class PopupListBox FINAL : public FramelessScrollView, public PopupContent {
88 public: 88 public:
89 static PassRefPtr<PopupListBox> create(PopupMenuClient* client, bool deviceS upportsTouch) 89 static PassRefPtr<PopupListBox> create(PopupMenuClient* client, bool deviceS upportsTouch)
90 { 90 {
91 return adoptRef(new PopupListBox(client, deviceSupportsTouch)); 91 return adoptRef(new PopupListBox(client, deviceSupportsTouch));
92 } 92 }
93 93
94 // FramelessScrollView 94 // FramelessScrollView
95 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE; 95 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE;
96 virtual bool handleMouseDownEvent(const PlatformMouseEvent&) OVERRIDE; 96 virtual bool handleMouseDownEvent(const PlatformMouseEvent&) OVERRIDE;
97 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&) OVERRIDE; 97 virtual bool handleMouseMoveEvent(const PlatformMouseEvent&) OVERRIDE;
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 // If width exeeds screen width, we have to clip it. 271 // If width exeeds screen width, we have to clip it.
272 int m_maxWindowWidth; 272 int m_maxWindowWidth;
273 273
274 // To forward last mouse release event. 274 // To forward last mouse release event.
275 RefPtr<Element> m_focusedElement; 275 RefPtr<Element> m_focusedElement;
276 }; 276 };
277 277
278 } // namespace WebCore 278 } // namespace WebCore
279 279
280 #endif 280 #endif
OLDNEW
« no previous file with comments | « Source/web/PopupContainer.h ('k') | Source/web/PopupMenuChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698