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

Side by Side Diff: Source/bindings/v8/Dictionary.h

Issue 300223009: Implement basic parts of hit regions on canvas2d. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 6 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 28 matching lines...) Expand all
39 #include "wtf/HashSet.h" 39 #include "wtf/HashSet.h"
40 #include "wtf/Vector.h" 40 #include "wtf/Vector.h"
41 #include "wtf/text/AtomicString.h" 41 #include "wtf/text/AtomicString.h"
42 #include "wtf/text/WTFString.h" 42 #include "wtf/text/WTFString.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 class ArrayValue; 46 class ArrayValue;
47 class DOMError; 47 class DOMError;
48 class DOMWindow; 48 class DOMWindow;
49 class Element;
49 class Gamepad; 50 class Gamepad;
50 class MediaStream; 51 class MediaStream;
51 class HeaderMap; 52 class HeaderMap;
52 class IDBKeyRange; 53 class IDBKeyRange;
53 class MIDIPort; 54 class MIDIPort;
54 class MediaKeyError; 55 class MediaKeyError;
55 class Notification; 56 class Notification;
56 class SpeechRecognitionError; 57 class SpeechRecognitionError;
57 class SpeechRecognitionResult; 58 class SpeechRecognitionResult;
58 class SpeechRecognitionResultList; 59 class SpeechRecognitionResultList;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 template<template <typename> class PointerType, typename T> 172 template<template <typename> class PointerType, typename T>
172 bool convert(ConversionContext&, const String&, PointerType<T>&) const; 173 bool convert(ConversionContext&, const String&, PointerType<T>&) const;
173 174
174 template<typename StringType> 175 template<typename StringType>
175 bool getStringType(const String&, StringType&) const; 176 bool getStringType(const String&, StringType&) const;
176 177
177 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; 178 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const;
178 bool getOwnPropertyNames(Vector<String>&) const; 179 bool getOwnPropertyNames(Vector<String>&) const;
179 180
180 bool getWithUndefinedOrNullCheck(const String&, String&) const; 181 bool getWithUndefinedOrNullCheck(const String&, String&) const;
182 bool getWithUndefinedOrNullCheck(const String&, RefPtr<Element>&) const;
Justin Novosad 2014/06/02 22:56:13 Should be RefPtrWillBeMember, and the correspondin
zino 2014/06/06 06:35:15 Done.
181 183
182 bool hasProperty(const String&) const; 184 bool hasProperty(const String&) const;
183 185
184 private: 186 private:
185 bool getKey(const String& key, v8::Local<v8::Value>&) const; 187 bool getKey(const String& key, v8::Local<v8::Value>&) const;
186 188
187 v8::Handle<v8::Value> m_options; 189 v8::Handle<v8::Value> m_options;
188 v8::Isolate* m_isolate; 190 v8::Isolate* m_isolate;
189 }; 191 };
190 192
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) 344 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value))
343 return true; 345 return true;
344 346
345 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type.")); 347 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type."));
346 return false; 348 return false;
347 } 349 }
348 350
349 } 351 }
350 352
351 #endif // Dictionary_h 353 #endif // Dictionary_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698