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

Side by Side Diff: Source/bindings/core/v8/V8NPUtils.cpp

Issue 398673003: Rename WebCore namespace to blink in bindings and web (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8NodeFilterCondition.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 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 23 matching lines...) Expand all
34 #include "bindings/core/v8/NPV8Object.h" 34 #include "bindings/core/v8/NPV8Object.h"
35 #include "bindings/core/v8/V8Binding.h" 35 #include "bindings/core/v8/V8Binding.h"
36 #include "bindings/core/v8/V8NPObject.h" 36 #include "bindings/core/v8/V8NPObject.h"
37 #include "bindings/core/v8/npruntime_impl.h" 37 #include "bindings/core/v8/npruntime_impl.h"
38 #include "bindings/core/v8/npruntime_priv.h" 38 #include "bindings/core/v8/npruntime_priv.h"
39 #include "core/frame/LocalDOMWindow.h" 39 #include "core/frame/LocalDOMWindow.h"
40 #include "wtf/text/WTFString.h" 40 #include "wtf/text/WTFString.h"
41 41
42 #include <stdlib.h> 42 #include <stdlib.h>
43 43
44 namespace WebCore { 44 namespace blink {
45 45
46 void convertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject* owner, NP Variant* result, v8::Isolate* isolate) 46 void convertV8ObjectToNPVariant(v8::Local<v8::Value> object, NPObject* owner, NP Variant* result, v8::Isolate* isolate)
47 { 47 {
48 VOID_TO_NPVARIANT(*result); 48 VOID_TO_NPVARIANT(*result);
49 49
50 // It is really the caller's responsibility to deal with the empty handle ca se because there could be different actions to 50 // It is really the caller's responsibility to deal with the empty handle ca se because there could be different actions to
51 // take in different contexts. 51 // take in different contexts.
52 ASSERT(!object.IsEmpty()); 52 ASSERT(!object.IsEmpty());
53 53
54 if (object.IsEmpty()) 54 if (object.IsEmpty())
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 ExceptionCatcher::~ExceptionCatcher() 162 ExceptionCatcher::~ExceptionCatcher()
163 { 163 {
164 if (!m_tryCatch.HasCaught()) 164 if (!m_tryCatch.HasCaught())
165 return; 165 return;
166 166
167 if (topHandler) 167 if (topHandler)
168 topHandler->handler(topHandler->data, *v8::String::Utf8Value(m_tryCatch. Exception())); 168 topHandler->handler(topHandler->data, *v8::String::Utf8Value(m_tryCatch. Exception()));
169 } 169 }
170 170
171 } // namespace WebCore 171 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8NodeFilterCondition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698