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

Side by Side Diff: Source/WebKit/chromium/src/WebDOMCustomEvent.cpp

Issue 15271012: Clean up WebDOMEvent ownership of WebCore::Event. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Improve comments per review. Created 7 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 24 matching lines...) Expand all
35 #include "bindings/v8/SerializedScriptValue.h" 35 #include "bindings/v8/SerializedScriptValue.h"
36 #include "core/dom/CustomEvent.h" 36 #include "core/dom/CustomEvent.h"
37 #include <public/WebString.h> 37 #include <public/WebString.h>
38 38
39 using namespace WebCore; 39 using namespace WebCore;
40 40
41 namespace WebKit { 41 namespace WebKit {
42 42
43 void WebDOMCustomEvent::initCustomEvent(const WebString& type, bool canBubble, b ool cancelable, const WebSerializedScriptValue& webSerializedScriptValue) 43 void WebDOMCustomEvent::initCustomEvent(const WebString& type, bool canBubble, b ool cancelable, const WebSerializedScriptValue& webSerializedScriptValue)
44 { 44 {
45 ASSERT(m_private); 45 ASSERT(m_private.get());
46 RefPtr<SerializedScriptValue> serializedScriptValue; 46 RefPtr<SerializedScriptValue> serializedScriptValue;
47 serializedScriptValue = webSerializedScriptValue; 47 serializedScriptValue = webSerializedScriptValue;
48 unwrap<CustomEvent>()->initCustomEvent(type, canBubble, cancelable, serializ edScriptValue.get()); 48 unwrap<CustomEvent>()->initCustomEvent(type, canBubble, cancelable, serializ edScriptValue.get());
49 } 49 }
50 50
51 } // namespace WebKit 51 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebSpeechInputResult.h ('k') | Source/WebKit/chromium/src/WebDOMEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698