[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
rjw
rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:43:01 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ecd2c46093fc2385b55ec0ea0acc61b73ca6f24d
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Fri May 23 01:14:53 2003 +0000
*** Public API change ***
100% compatible. Added notification when history items
change values.
Fixed 3265672
Reviewed by John.
* History.subproj/WebHistoryItem.h:
* History.subproj/WebHistoryItem.m:
(-[WebHistoryItem setAlternateTitle:]):
(-[WebHistoryItem setURL:]):
(-[WebHistoryItem setOriginalURLString:]):
(-[WebHistoryItem setTitle:]):
(-[WebHistoryItem _setLastVisitedTimeInterval:]):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index 06a16b5..3d1380b 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,5 +1,22 @@
2003-05-22 Richard Williamson <rjw at apple.com>
+ *** Public API change ***
+ 100% compatible. Added notification when history items
+ change values.
+
+ Fixed 3265672
+ Reviewed by John.
+
+ * History.subproj/WebHistoryItem.h:
+ * History.subproj/WebHistoryItem.m:
+ (-[WebHistoryItem setAlternateTitle:]):
+ (-[WebHistoryItem setURL:]):
+ (-[WebHistoryItem setOriginalURLString:]):
+ (-[WebHistoryItem setTitle:]):
+ (-[WebHistoryItem _setLastVisitedTimeInterval:]):
+
+2003-05-22 Richard Williamson <rjw at apple.com>
+
Fixed 3266464. Build problem on panther caused by overly
pedantic gcc.
diff --git a/WebKit/History.subproj/WebHistoryItem.h b/WebKit/History.subproj/WebHistoryItem.h
index 79ebb49..d760a77 100644
--- a/WebKit/History.subproj/WebHistoryItem.h
+++ b/WebKit/History.subproj/WebHistoryItem.h
@@ -10,6 +10,14 @@
@class WebHistoryItemPrivate;
@class NSURL;
+/*
+ @discussion Notification sent when history item is modified.
+ @constant WebHistoryItemChanged Posted from whenever the value of
+ either the item's title, alternate title, url strings, or last visited interval
+ changes. The userInfo will be nil.
+*/
+extern NSString *WebHistoryItemChangedNotification;
+
/*!
@class WebHistoryItem
@discussion WebHistoryItems are created by WebKit to represent pages visited.
diff --git a/WebKit/History.subproj/WebHistoryItem.m b/WebKit/History.subproj/WebHistoryItem.m
index 4702f98..f5fe1a4 100644
--- a/WebKit/History.subproj/WebHistoryItem.m
+++ b/WebKit/History.subproj/WebHistoryItem.m
@@ -24,6 +24,9 @@ static NSString *WebTitleKey = @"title";
static NSString *WebChildrenKey = @"children";
static NSString *WebDisplayTitleKey = @"displayTitle";
+// Notification strings.
+NSString *WebHistoryItemChangedNotification = @"WebHistoryItemChangedNotification";
+
@interface WebHistoryItemPrivate : NSObject
{
@public
@@ -152,6 +155,9 @@ static NSString *WebDisplayTitleKey = @"displayTitle";
}
[_private->displayTitle release];
_private->displayTitle = newDisplayTitle;
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName: WebHistoryItemChangedNotification object: self userInfo: nil];
}
@@ -278,6 +284,9 @@ static NSString *WebDisplayTitleKey = @"displayTitle";
_private->URLString = [string copy];
[self _retainIconInDatabase:YES];
}
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName: WebHistoryItemChangedNotification object: self userInfo: nil];
}
// The first URL we loaded to get to where this history item points. Includes both client
@@ -287,6 +296,9 @@ static NSString *WebDisplayTitleKey = @"displayTitle";
NSString *newURL = [URL copy];
[_private->originalURLString release];
_private->originalURLString = newURL;
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName: WebHistoryItemChangedNotification object: self userInfo: nil];
}
- (void)setTitle:(NSString *)title
@@ -299,6 +311,9 @@ static NSString *WebDisplayTitleKey = @"displayTitle";
}
[_private->title release];
_private->title = newTitle;
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName: WebHistoryItemChangedNotification object: self userInfo: nil];
}
- (void)setTarget:(NSString *)target
@@ -323,6 +338,9 @@ static NSString *WebDisplayTitleKey = @"displayTitle";
_private->lastVisitedDate = nil;
_private->visitCount++;
}
+
+ [[NSNotificationCenter defaultCenter]
+ postNotificationName: WebHistoryItemChangedNotification object: self userInfo: nil];
}
// FIXME: Remove this accessor and related ivar.
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list