| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |