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

Side by Side Diff: Source/web/WebPopupMenuImpl.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/WebPluginScrollbarImpl.h ('k') | Source/web/WebRemoteFrameImpl.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class WebMouseWheelEvent; 53 class WebMouseWheelEvent;
54 class WebRange; 54 class WebRange;
55 class WebTouchEvent; 55 class WebTouchEvent;
56 class Widget; 56 class Widget;
57 struct WebRect; 57 struct WebRect;
58 58
59 class WebPopupMenuImpl : public WebPopupMenu, public PopupContainerClient, publi c WebContentLayerClient, public RefCounted<WebPopupMenuImpl> { 59 class WebPopupMenuImpl : public WebPopupMenu, public PopupContainerClient, publi c WebContentLayerClient, public RefCounted<WebPopupMenuImpl> {
60 WTF_MAKE_FAST_ALLOCATED; 60 WTF_MAKE_FAST_ALLOCATED;
61 public: 61 public:
62 // WebWidget functions: 62 // WebWidget functions:
63 virtual void close() OVERRIDE FINAL; 63 virtual void close() override final;
64 virtual WebSize size() OVERRIDE FINAL { return m_size; } 64 virtual WebSize size() override final { return m_size; }
65 virtual void willStartLiveResize() OVERRIDE FINAL; 65 virtual void willStartLiveResize() override final;
66 virtual void resize(const WebSize&) OVERRIDE FINAL; 66 virtual void resize(const WebSize&) override final;
67 virtual void willEndLiveResize() OVERRIDE FINAL; 67 virtual void willEndLiveResize() override final;
68 virtual void beginFrame(const WebBeginFrameArgs&) OVERRIDE FINAL; 68 virtual void beginFrame(const WebBeginFrameArgs&) override final;
69 virtual void layout() OVERRIDE FINAL; 69 virtual void layout() override final;
70 virtual void paint(WebCanvas*, const WebRect&) OVERRIDE FINAL; 70 virtual void paint(WebCanvas*, const WebRect&) override final;
71 virtual void themeChanged() OVERRIDE FINAL; 71 virtual void themeChanged() override final;
72 virtual bool handleInputEvent(const WebInputEvent&) OVERRIDE FINAL; 72 virtual bool handleInputEvent(const WebInputEvent&) override final;
73 virtual void mouseCaptureLost() OVERRIDE FINAL; 73 virtual void mouseCaptureLost() override final;
74 virtual void setFocus(bool enable) OVERRIDE FINAL; 74 virtual void setFocus(bool enable) override final;
75 virtual bool setComposition( 75 virtual bool setComposition(
76 const WebString& text, 76 const WebString& text,
77 const WebVector<WebCompositionUnderline>& underlines, 77 const WebVector<WebCompositionUnderline>& underlines,
78 int selectionStart, int selectionEnd) OVERRIDE FINAL; 78 int selectionStart, int selectionEnd) override final;
79 virtual bool confirmComposition() OVERRIDE FINAL; 79 virtual bool confirmComposition() override final;
80 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) OVERRIDE FINAL; 80 virtual bool confirmComposition(ConfirmCompositionBehavior selectionBehavior ) override final;
81 virtual bool confirmComposition(const WebString& text) OVERRIDE FINAL; 81 virtual bool confirmComposition(const WebString& text) override final;
82 virtual bool compositionRange(size_t* location, size_t* length) OVERRIDE FIN AL; 82 virtual bool compositionRange(size_t* location, size_t* length) override fin al;
83 virtual bool caretOrSelectionRange(size_t* location, size_t* length) OVERRID E FINAL; 83 virtual bool caretOrSelectionRange(size_t* location, size_t* length) overrid e final;
84 virtual void setTextDirection(WebTextDirection) OVERRIDE FINAL; 84 virtual void setTextDirection(WebTextDirection) override final;
85 virtual bool isAcceleratedCompositingActive() const OVERRIDE FINAL { return false; } 85 virtual bool isAcceleratedCompositingActive() const override final { return false; }
86 virtual bool isPopupMenu() const OVERRIDE FINAL { return true; } 86 virtual bool isPopupMenu() const override final { return true; }
87 virtual void willCloseLayerTreeView() OVERRIDE FINAL; 87 virtual void willCloseLayerTreeView() override final;
88 88
89 // WebContentLayerClient 89 // WebContentLayerClient
90 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) OVE RRIDE FINAL; 90 virtual void paintContents(WebCanvas*, const WebRect& clip, bool canPaintLCD Test, WebContentLayerClient::GraphicsContextStatus = GraphicsContextEnabled) ove rride final;
91 91
92 // WebPopupMenuImpl 92 // WebPopupMenuImpl
93 void initialize(PopupContainer* widget, const WebRect& bounds); 93 void initialize(PopupContainer* widget, const WebRect& bounds);
94 94
95 WebWidgetClient* client() { return m_client; } 95 WebWidgetClient* client() { return m_client; }
96 96
97 void handleMouseMove(const WebMouseEvent&); 97 void handleMouseMove(const WebMouseEvent&);
98 void handleMouseLeave(const WebMouseEvent&); 98 void handleMouseLeave(const WebMouseEvent&);
99 void handleMouseDown(const WebMouseEvent&); 99 void handleMouseDown(const WebMouseEvent&);
100 void handleMouseUp(const WebMouseEvent&); 100 void handleMouseUp(const WebMouseEvent&);
101 void handleMouseDoubleClick(const WebMouseEvent&); 101 void handleMouseDoubleClick(const WebMouseEvent&);
102 void handleMouseWheel(const WebMouseWheelEvent&); 102 void handleMouseWheel(const WebMouseWheelEvent&);
103 bool handleGestureEvent(const WebGestureEvent&); 103 bool handleGestureEvent(const WebGestureEvent&);
104 bool handleTouchEvent(const WebTouchEvent&); 104 bool handleTouchEvent(const WebTouchEvent&);
105 bool handleKeyEvent(const WebKeyboardEvent&); 105 bool handleKeyEvent(const WebKeyboardEvent&);
106 106
107 protected: 107 protected:
108 friend class WebPopupMenu; // For WebPopupMenu::create. 108 friend class WebPopupMenu; // For WebPopupMenu::create.
109 friend class WTF::RefCounted<WebPopupMenuImpl>; 109 friend class WTF::RefCounted<WebPopupMenuImpl>;
110 110
111 explicit WebPopupMenuImpl(WebWidgetClient*); 111 explicit WebPopupMenuImpl(WebWidgetClient*);
112 ~WebPopupMenuImpl(); 112 ~WebPopupMenuImpl();
113 113
114 // HostWindow methods: 114 // HostWindow methods:
115 virtual void invalidateContentsAndRootView(const IntRect&) OVERRIDE FINAL; 115 virtual void invalidateContentsAndRootView(const IntRect&) override final;
116 virtual void invalidateContentsForSlowScroll(const IntRect&) OVERRIDE FINAL; 116 virtual void invalidateContentsForSlowScroll(const IntRect&) override final;
117 virtual void scheduleAnimation() OVERRIDE FINAL; 117 virtual void scheduleAnimation() override final;
118 virtual IntRect rootViewToScreen(const IntRect&) const OVERRIDE FINAL; 118 virtual IntRect rootViewToScreen(const IntRect&) const override final;
119 virtual WebScreenInfo screenInfo() const OVERRIDE FINAL; 119 virtual WebScreenInfo screenInfo() const override final;
120 120
121 // PopupContainerClient methods: 121 // PopupContainerClient methods:
122 virtual void popupClosed(PopupContainer*) OVERRIDE FINAL; 122 virtual void popupClosed(PopupContainer*) override final;
123 123
124 WebWidgetClient* m_client; 124 WebWidgetClient* m_client;
125 WebSize m_size; 125 WebSize m_size;
126 126
127 WebLayerTreeView* m_layerTreeView; 127 WebLayerTreeView* m_layerTreeView;
128 OwnPtr<WebContentLayer> m_rootLayer; 128 OwnPtr<WebContentLayer> m_rootLayer;
129 129
130 WebPoint m_lastMousePosition; 130 WebPoint m_lastMousePosition;
131 131
132 // This is a non-owning ref. The popup will notify us via popupClosed() 132 // This is a non-owning ref. The popup will notify us via popupClosed()
133 // before it is destroyed. 133 // before it is destroyed.
134 PopupContainer* m_widget; 134 PopupContainer* m_widget;
135 }; 135 };
136 136
137 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu()); 137 DEFINE_TYPE_CASTS(WebPopupMenuImpl, WebWidget, widget, widget->isPopupMenu(), wi dget.isPopupMenu());
138 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so 138 // WebPopupMenuImpl is the only implementation of PopupContainerClient, so
139 // no need for further checking. 139 // no need for further checking.
140 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true); 140 DEFINE_TYPE_CASTS(WebPopupMenuImpl, PopupContainerClient, client, true, true);
141 141
142 } // namespace blink 142 } // namespace blink
143 143
144 #endif 144 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPluginScrollbarImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698