| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 #include "WebKit.h" | 39 #include "WebKit.h" |
| 40 #include "WebKitClient.h" | 40 #include "WebKitClient.h" |
| 41 #include "WebString.h" | 41 #include "WebString.h" |
| 42 | 42 |
| 43 namespace WebCore { | 43 namespace WebCore { |
| 44 | 44 |
| 45 void StorageEventDispatcher::dispatch(const String& key, const String& oldValue, | 45 void StorageEventDispatcher::dispatch(const String& key, const String& oldValue, |
| 46 const String& newValue, StorageType storageType, | 46 const String& newValue, StorageType storageType, |
| 47 SecurityOrigin* origin, Frame* sourceFrame) | 47 SecurityOrigin* origin, Frame* sourceFrame) |
| 48 { | 48 { |
| 49 // FIXME: Implement. | 49 ASSERT(!sourceFrame); // Sad, but true. |
| 50 WebKit::webKitClient()->dispatchStorageEvent(key, oldValue, newValue, origin->toString(), storageType == LocalStorage); |
| 50 } | 51 } |
| 51 | 52 |
| 52 } // namespace WebCore | 53 } // namespace WebCore |
| 53 | 54 |
| 54 #endif // ENABLE(DOM_STORAGE) | 55 #endif // ENABLE(DOM_STORAGE) |
| OLD | NEW |