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

Side by Side Diff: content/shell/renderer/test_runner/event_sender.cc

Issue 629143003: Replace OVERRIDE and FINAL with override and final in content/shell/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/test_runner/event_sender.h" 5 #include "content/shell/renderer/test_runner/event_sender.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "content/public/common/page_zoom.h" 10 #include "content/public/common/page_zoom.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 return WebMouseEvent::ButtonMiddle; 226 return WebMouseEvent::ButtonMiddle;
227 } 227 }
228 228
229 class MouseDownTask : public WebMethodTask<EventSender> { 229 class MouseDownTask : public WebMethodTask<EventSender> {
230 public: 230 public:
231 MouseDownTask(EventSender* obj, int button_number, int modifiers) 231 MouseDownTask(EventSender* obj, int button_number, int modifiers)
232 : WebMethodTask<EventSender>(obj), 232 : WebMethodTask<EventSender>(obj),
233 button_number_(button_number), 233 button_number_(button_number),
234 modifiers_(modifiers) {} 234 modifiers_(modifiers) {}
235 235
236 virtual void RunIfValid() OVERRIDE { 236 virtual void RunIfValid() override {
237 object_->MouseDown(button_number_, modifiers_); 237 object_->MouseDown(button_number_, modifiers_);
238 } 238 }
239 239
240 private: 240 private:
241 int button_number_; 241 int button_number_;
242 int modifiers_; 242 int modifiers_;
243 }; 243 };
244 244
245 class MouseUpTask : public WebMethodTask<EventSender> { 245 class MouseUpTask : public WebMethodTask<EventSender> {
246 public: 246 public:
247 MouseUpTask(EventSender* obj, int button_number, int modifiers) 247 MouseUpTask(EventSender* obj, int button_number, int modifiers)
248 : WebMethodTask<EventSender>(obj), 248 : WebMethodTask<EventSender>(obj),
249 button_number_(button_number), 249 button_number_(button_number),
250 modifiers_(modifiers) {} 250 modifiers_(modifiers) {}
251 251
252 virtual void RunIfValid() OVERRIDE { 252 virtual void RunIfValid() override {
253 object_->MouseUp(button_number_, modifiers_); 253 object_->MouseUp(button_number_, modifiers_);
254 } 254 }
255 255
256 private: 256 private:
257 int button_number_; 257 int button_number_;
258 int modifiers_; 258 int modifiers_;
259 }; 259 };
260 260
261 class KeyDownTask : public WebMethodTask<EventSender> { 261 class KeyDownTask : public WebMethodTask<EventSender> {
262 public: 262 public:
263 KeyDownTask(EventSender* obj, 263 KeyDownTask(EventSender* obj,
264 const std::string code_str, 264 const std::string code_str,
265 int modifiers, 265 int modifiers,
266 KeyLocationCode location) 266 KeyLocationCode location)
267 : WebMethodTask<EventSender>(obj), 267 : WebMethodTask<EventSender>(obj),
268 code_str_(code_str), 268 code_str_(code_str),
269 modifiers_(modifiers), 269 modifiers_(modifiers),
270 location_(location) {} 270 location_(location) {}
271 271
272 virtual void RunIfValid() OVERRIDE { 272 virtual void RunIfValid() override {
273 object_->KeyDown(code_str_, modifiers_, location_); 273 object_->KeyDown(code_str_, modifiers_, location_);
274 } 274 }
275 275
276 private: 276 private:
277 std::string code_str_; 277 std::string code_str_;
278 int modifiers_; 278 int modifiers_;
279 KeyLocationCode location_; 279 KeyLocationCode location_;
280 }; 280 };
281 281
282 bool NeedsShiftModifier(int keyCode) { 282 bool NeedsShiftModifier(int keyCode) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 static void Install(base::WeakPtr<EventSender> sender, 342 static void Install(base::WeakPtr<EventSender> sender,
343 blink::WebFrame* frame); 343 blink::WebFrame* frame);
344 344
345 private: 345 private:
346 explicit EventSenderBindings(base::WeakPtr<EventSender> sender); 346 explicit EventSenderBindings(base::WeakPtr<EventSender> sender);
347 virtual ~EventSenderBindings(); 347 virtual ~EventSenderBindings();
348 348
349 // gin::Wrappable: 349 // gin::Wrappable:
350 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder( 350 virtual gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
351 v8::Isolate* isolate) OVERRIDE; 351 v8::Isolate* isolate) override;
352 352
353 // Bound methods: 353 // Bound methods:
354 void EnableDOMUIEventLogging(); 354 void EnableDOMUIEventLogging();
355 void FireKeyboardEventsToElement(); 355 void FireKeyboardEventsToElement();
356 void ClearKillRing(); 356 void ClearKillRing();
357 std::vector<std::string> ContextClick(); 357 std::vector<std::string> ContextClick();
358 void TextZoomIn(); 358 void TextZoomIn();
359 void TextZoomOut(); 359 void TextZoomOut();
360 void ZoomPageIn(); 360 void ZoomPageIn();
361 void ZoomPageOut(); 361 void ZoomPageOut();
(...skipping 1934 matching lines...) Expand 10 before | Expand all | Expand 10 after
2296 } 2296 }
2297 default: 2297 default:
2298 NOTREACHED(); 2298 NOTREACHED();
2299 } 2299 }
2300 } 2300 }
2301 2301
2302 replaying_saved_events_ = false; 2302 replaying_saved_events_ = false;
2303 } 2303 }
2304 2304
2305 } // namespace content 2305 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698