Changeset 159480 in webkit
- Timestamp:
- Nov 18, 2013 9:14:36 PM (10 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r159460 r159480 1 2013-11-18 Mark Rowe <mrowe@apple.com> 2 3 Disable deprecation warnings related to NSCalendarDate in WebHistory. 4 5 Reviewed by Anders Carlsson. 6 7 * History/WebHistory.h: Use a #pragma to have the compiler treat this header as 8 a system header, even when not included from a system location. This has the effect 9 of suppressing warnings when including this header. It's a more general effect than 10 we're after but is also less invasive than disabling deprecation warnings around 11 the APIs that are defined in terms of NSCalendarDate. We'll hopefully revisit this 12 in the future. 13 * History/WebHistory.mm: Disable deprecation warnings around uses of NSCalendarDate. 14 1 15 2013-11-18 David Hyatt <hyatt@apple.com> 2 16 -
trunk/Source/WebKit/mac/History/WebHistory.h
r159434 r159480 28 28 29 29 #import <Foundation/Foundation.h> 30 31 #pragma GCC system_header 30 32 31 33 @class NSError; -
trunk/Source/WebKit/mac/History/WebHistory.mm
r159311 r159480 93 93 94 94 - (NSArray *)orderedLastVisitedDays; 95 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)calendarDate;96 95 - (BOOL)containsURL:(NSURL *)URL; 97 96 - (WebHistoryItem *)itemForURL:(NSURL *)URL; … … 101 100 - (BOOL)loadFromURL:(NSURL *)URL collectDiscardedItemsInto:(NSMutableArray *)discardedItems error:(NSError **)error; 102 101 - (BOOL)saveToURL:(NSURL *)URL error:(NSError **)error; 103 104 - (NSCalendarDate *)ageLimitDate;105 102 106 103 - (void)setHistoryItemLimit:(int)limit; … … 446 443 // MARK: DATE-BASED RETRIEVAL 447 444 445 #pragma clang diagnostic push 446 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 447 448 448 - (NSArray *)orderedLastVisitedDays 449 449 { … … 476 476 } 477 477 478 #pragma clang diagnostic pop 479 478 480 // MARK: URL MATCHING 479 481 … … 526 528 } 527 529 530 #pragma clang diagnostic push 531 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 532 528 533 // Return a date that marks the age limit for history entries saved to or 529 534 // loaded from disk. Any entry older than this item should be rejected. … … 533 538 hours:0 minutes:0 seconds:0]; 534 539 } 540 541 #pragma clang diagnostic pop 535 542 536 543 - (BOOL)loadHistoryGutsFromURL:(NSURL *)URL savedItemsCount:(int *)numberOfItemsLoaded collectDiscardedItemsInto:(NSMutableArray *)discardedItems error:(NSError **)error … … 775 782 } 776 783 784 #pragma clang diagnostic push 785 #pragma clang diagnostic ignored "-Wdeprecated-declarations" 786 777 787 - (NSArray *)orderedItemsLastVisitedOnDay:(NSCalendarDate *)date 778 788 { 779 789 return [_historyPrivate orderedItemsLastVisitedOnDay:date]; 780 790 } 791 792 #pragma clang diagnostic pop 781 793 782 794 // MARK: URL MATCHING
Note: See TracChangeset
for help on using the changeset viewer.