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

Side by Side Diff: third_party/WebKit/Source/core/testing/InternalSettings.cpp

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 years 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple 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 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 InternalSettingsGenerated::trace(visitor); 364 InternalSettingsGenerated::trace(visitor);
365 #if ENABLE(OILPAN) 365 #if ENABLE(OILPAN)
366 HeapSupplement<Page>::trace(visitor); 366 HeapSupplement<Page>::trace(visitor);
367 #endif 367 #endif
368 } 368 }
369 369
370 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState) 370 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState)
371 { 371 {
372 InternalSettingsGuardForSettings(); 372 InternalSettingsGuardForSettings();
373 373
374 // Allow setting multiple pointer types by passing comma seperated list 374 // Allow setting multiple pointer types by passing comma separated list
375 // ("coarse,fine"). 375 // ("coarse,fine").
376 Vector<String> tokens; 376 Vector<String> tokens;
377 pointers.split(",", false, tokens); 377 pointers.split(",", false, tokens);
378 378
379 int pointerTypes = 0; 379 int pointerTypes = 0;
380 for (size_t i = 0; i < tokens.size(); ++i) { 380 for (size_t i = 0; i < tokens.size(); ++i) {
381 String token = tokens[i].stripWhiteSpace(); 381 String token = tokens[i].stripWhiteSpace();
382 382
383 if (token == "coarse") 383 if (token == "coarse")
384 pointerTypes |= PointerTypeCoarse; 384 pointerTypes |= PointerTypeCoarse;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 else 428 else
429 exceptionState.throwDOMException(SyntaxError, "The pointer type token (' " + token + ")' is invalid."); 429 exceptionState.throwDOMException(SyntaxError, "The pointer type token (' " + token + ")' is invalid.");
430 430
431 settings()->setPrimaryPointerType(type); 431 settings()->setPrimaryPointerType(type);
432 } 432 }
433 433
434 void InternalSettings::setAvailableHoverTypes(const String& types, ExceptionStat e& exceptionState) 434 void InternalSettings::setAvailableHoverTypes(const String& types, ExceptionStat e& exceptionState)
435 { 435 {
436 InternalSettingsGuardForSettings(); 436 InternalSettingsGuardForSettings();
437 437
438 // Allow setting multiple hover types by passing comma seperated list 438 // Allow setting multiple hover types by passing comma separated list
439 // ("on-demand,none"). 439 // ("on-demand,none").
440 Vector<String> tokens; 440 Vector<String> tokens;
441 types.split(",", false, tokens); 441 types.split(",", false, tokens);
442 442
443 int hoverTypes = 0; 443 int hoverTypes = 0;
444 for (size_t i = 0; i < tokens.size(); ++i) { 444 for (size_t i = 0; i < tokens.size(); ++i) {
445 String token = tokens[i].stripWhiteSpace(); 445 String token = tokens[i].stripWhiteSpace();
446 446
447 if (token == "none") 447 if (token == "none")
448 hoverTypes |= HoverTypeNone; 448 hoverTypes |= HoverTypeNone;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 settings()->setLogDnsPrefetchAndPreconnect(enabled); 504 settings()->setLogDnsPrefetchAndPreconnect(enabled);
505 } 505 }
506 506
507 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State) 507 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State)
508 { 508 {
509 InternalSettingsGuardForSettings(); 509 InternalSettingsGuardForSettings();
510 settings()->setLogPreload(enabled); 510 settings()->setLogPreload(enabled);
511 } 511 }
512 512
513 } 513 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGUseElement.cpp ('k') | third_party/WebKit/Source/core/timing/MemoryInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698