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

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: Created 5 years, 1 month 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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 InternalSettingsGenerated::trace(visitor); 365 InternalSettingsGenerated::trace(visitor);
366 #if ENABLE(OILPAN) 366 #if ENABLE(OILPAN)
367 HeapSupplement<Page>::trace(visitor); 367 HeapSupplement<Page>::trace(visitor);
368 #endif 368 #endif
369 } 369 }
370 370
371 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState) 371 void InternalSettings::setAvailablePointerTypes(const String& pointers, Exceptio nState& exceptionState)
372 { 372 {
373 InternalSettingsGuardForSettings(); 373 InternalSettingsGuardForSettings();
374 374
375 // Allow setting multiple pointer types by passing comma seperated list 375 // Allow setting multiple pointer types by passing comma separated list
376 // ("coarse,fine"). 376 // ("coarse,fine").
377 Vector<String> tokens; 377 Vector<String> tokens;
378 pointers.split(",", false, tokens); 378 pointers.split(",", false, tokens);
379 379
380 int pointerTypes = 0; 380 int pointerTypes = 0;
381 for (size_t i = 0; i < tokens.size(); ++i) { 381 for (size_t i = 0; i < tokens.size(); ++i) {
382 String token = tokens[i].stripWhiteSpace(); 382 String token = tokens[i].stripWhiteSpace();
383 383
384 if (token == "coarse") 384 if (token == "coarse")
385 pointerTypes |= PointerTypeCoarse; 385 pointerTypes |= PointerTypeCoarse;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 else 429 else
430 exceptionState.throwDOMException(SyntaxError, "The pointer type token (' " + token + ")' is invalid."); 430 exceptionState.throwDOMException(SyntaxError, "The pointer type token (' " + token + ")' is invalid.");
431 431
432 settings()->setPrimaryPointerType(type); 432 settings()->setPrimaryPointerType(type);
433 } 433 }
434 434
435 void InternalSettings::setAvailableHoverTypes(const String& types, ExceptionStat e& exceptionState) 435 void InternalSettings::setAvailableHoverTypes(const String& types, ExceptionStat e& exceptionState)
436 { 436 {
437 InternalSettingsGuardForSettings(); 437 InternalSettingsGuardForSettings();
438 438
439 // Allow setting multiple hover types by passing comma seperated list 439 // Allow setting multiple hover types by passing comma separated list
440 // ("on-demand,none"). 440 // ("on-demand,none").
441 Vector<String> tokens; 441 Vector<String> tokens;
442 types.split(",", false, tokens); 442 types.split(",", false, tokens);
443 443
444 int hoverTypes = 0; 444 int hoverTypes = 0;
445 for (size_t i = 0; i < tokens.size(); ++i) { 445 for (size_t i = 0; i < tokens.size(); ++i) {
446 String token = tokens[i].stripWhiteSpace(); 446 String token = tokens[i].stripWhiteSpace();
447 447
448 if (token == "none") 448 if (token == "none")
449 hoverTypes |= HoverTypeNone; 449 hoverTypes |= HoverTypeNone;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 settings()->setLogDnsPrefetchAndPreconnect(enabled); 505 settings()->setLogDnsPrefetchAndPreconnect(enabled);
506 } 506 }
507 507
508 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State) 508 void InternalSettings::setPreloadLogging(bool enabled, ExceptionState& exception State)
509 { 509 {
510 InternalSettingsGuardForSettings(); 510 InternalSettingsGuardForSettings();
511 settings()->setLogPreload(enabled); 511 settings()->setLogPreload(enabled);
512 } 512 }
513 513
514 } 514 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698