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

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

Issue 183313003: Added non-prefixed navigator.getGamepads() with updated API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
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 27 matching lines...) Expand all
38 #include "wtf/HashSet.h" 38 #include "wtf/HashSet.h"
39 #include "wtf/Vector.h" 39 #include "wtf/Vector.h"
40 #include "wtf/text/AtomicString.h" 40 #include "wtf/text/AtomicString.h"
41 #include "wtf/text/WTFString.h" 41 #include "wtf/text/WTFString.h"
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
45 class ArrayValue; 45 class ArrayValue;
46 class DOMError; 46 class DOMError;
47 class DOMWindow; 47 class DOMWindow;
48 class Gamepad;
48 class IDBKeyRange; 49 class IDBKeyRange;
49 class MIDIPort; 50 class MIDIPort;
50 class MediaKeyError; 51 class MediaKeyError;
51 class Notification; 52 class Notification;
52 class SpeechRecognitionError; 53 class SpeechRecognitionError;
53 class SpeechRecognitionResult; 54 class SpeechRecognitionResult;
54 class SpeechRecognitionResultList; 55 class SpeechRecognitionResultList;
55 class Storage; 56 class Storage;
56 class TrackBase; 57 class TrackBase;
57 class VoidCallback; 58 class VoidCallback;
(...skipping 25 matching lines...) Expand all
83 bool get(const String&, RefPtrWillBeRawPtr<Storage>&) const; 84 bool get(const String&, RefPtrWillBeRawPtr<Storage>&) const;
84 bool get(const String&, MessagePortArray&) const; 85 bool get(const String&, MessagePortArray&) const;
85 bool get(const String&, RefPtr<Uint8Array>&) const; 86 bool get(const String&, RefPtr<Uint8Array>&) const;
86 bool get(const String&, RefPtr<ArrayBufferView>&) const; 87 bool get(const String&, RefPtr<ArrayBufferView>&) const;
87 bool get(const String&, RefPtr<MIDIPort>&) const; 88 bool get(const String&, RefPtr<MIDIPort>&) const;
88 bool get(const String&, RefPtr<MediaKeyError>&) const; 89 bool get(const String&, RefPtr<MediaKeyError>&) const;
89 bool get(const String&, RefPtr<TrackBase>&) const; 90 bool get(const String&, RefPtr<TrackBase>&) const;
90 bool get(const String&, RefPtr<SpeechRecognitionError>&) const; 91 bool get(const String&, RefPtr<SpeechRecognitionError>&) const;
91 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const; 92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResult>&) const;
92 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co nst; 93 bool get(const String&, RefPtrWillBeRawPtr<SpeechRecognitionResultList>&) co nst;
94 bool get(const String&, RefPtrWillBeRawPtr<Gamepad>&) const;
93 bool get(const String&, RefPtr<MediaStream>&) const; 95 bool get(const String&, RefPtr<MediaStream>&) const;
94 bool get(const String&, RefPtr<EventTarget>&) const; 96 bool get(const String&, RefPtr<EventTarget>&) const;
95 bool get(const String&, HashSet<AtomicString>&) const; 97 bool get(const String&, HashSet<AtomicString>&) const;
96 bool get(const String&, Dictionary&) const; 98 bool get(const String&, Dictionary&) const;
97 bool get(const String&, Vector<String>&) const; 99 bool get(const String&, Vector<String>&) const;
98 bool get(const String&, ArrayValue&) const; 100 bool get(const String&, ArrayValue&) const;
99 bool get(const String&, RefPtr<DOMError>&) const; 101 bool get(const String&, RefPtr<DOMError>&) const;
100 bool get(const String&, OwnPtr<VoidCallback>&) const; 102 bool get(const String&, OwnPtr<VoidCallback>&) const;
101 bool get(const String&, v8::Local<v8::Value>&) const; 103 bool get(const String&, v8::Local<v8::Value>&) const;
102 104
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value)) 319 if (context.isNullable() && WebCore::isUndefinedOrNull(v8Value))
318 return true; 320 return true;
319 321
320 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type.")); 322 context.throwTypeError(ExceptionMessages::incorrectPropertyType(key, "does n ot have a " + context.typeName() + " type."));
321 return false; 323 return false;
322 } 324 }
323 325
324 } 326 }
325 327
326 #endif // Dictionary_h 328 #endif // Dictionary_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/Dictionary.cpp » ('j') | Source/modules/gamepad/NavigatorGamepad.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698