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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollbarTheme.cpp

Issue 2849903002: Replace ASSERT_NOT_REACHED with NOTREACHED in platform/ (Closed)
Patch Set: rebase Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 switch (part) { 419 switch (part) {
420 case kBackButtonStartPart: 420 case kBackButtonStartPart:
421 return DisplayItem::kScrollbarBackButtonStart; 421 return DisplayItem::kScrollbarBackButtonStart;
422 case kBackButtonEndPart: 422 case kBackButtonEndPart:
423 return DisplayItem::kScrollbarBackButtonEnd; 423 return DisplayItem::kScrollbarBackButtonEnd;
424 case kForwardButtonStartPart: 424 case kForwardButtonStartPart:
425 return DisplayItem::kScrollbarForwardButtonStart; 425 return DisplayItem::kScrollbarForwardButtonStart;
426 case kForwardButtonEndPart: 426 case kForwardButtonEndPart:
427 return DisplayItem::kScrollbarForwardButtonEnd; 427 return DisplayItem::kScrollbarForwardButtonEnd;
428 default: 428 default:
429 ASSERT_NOT_REACHED(); 429 NOTREACHED();
430 return DisplayItem::kScrollbarBackButtonStart; 430 return DisplayItem::kScrollbarBackButtonStart;
431 } 431 }
432 } 432 }
433 433
434 DisplayItem::Type ScrollbarTheme::TrackPiecePartToDisplayItemType( 434 DisplayItem::Type ScrollbarTheme::TrackPiecePartToDisplayItemType(
435 ScrollbarPart part) { 435 ScrollbarPart part) {
436 switch (part) { 436 switch (part) {
437 case kBackTrackPart: 437 case kBackTrackPart:
438 return DisplayItem::kScrollbarBackTrack; 438 return DisplayItem::kScrollbarBackTrack;
439 case kForwardTrackPart: 439 case kForwardTrackPart:
440 return DisplayItem::kScrollbarForwardTrack; 440 return DisplayItem::kScrollbarForwardTrack;
441 default: 441 default:
442 ASSERT_NOT_REACHED(); 442 NOTREACHED();
443 return DisplayItem::kScrollbarBackTrack; 443 return DisplayItem::kScrollbarBackTrack;
444 } 444 }
445 } 445 }
446 446
447 } // namespace blink 447 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698