Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 bool get(const String&, RefPtr<VoidCallback>&) const; | 96 bool get(const String&, RefPtr<VoidCallback>&) const; |
| 97 bool get(const String&, v8::Local<v8::Value>&) const; | 97 bool get(const String&, v8::Local<v8::Value>&) const; |
| 98 | 98 |
| 99 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; | 99 bool getOwnPropertiesAsStringHashMap(HashMap<String, String>&) const; |
| 100 bool getOwnPropertyNames(Vector<String>&) const; | 100 bool getOwnPropertyNames(Vector<String>&) const; |
| 101 | 101 |
| 102 bool getWithUndefinedOrNullCheck(const String&, String&) const; | 102 bool getWithUndefinedOrNullCheck(const String&, String&) const; |
| 103 | 103 |
| 104 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; } | 104 PassRefPtr<EventListener> getEventListener(const String&, Notification*) con st { return 0; } |
| 105 | 105 |
| 106 bool contains(const String&) const; | |
|
abarth-chromium
2013/08/23 19:25:50
This is not a good idea. The problem is that Java
eroman
2013/08/23 22:04:03
Thanks. I have tried to address this, please take
| |
| 107 | |
| 106 private: | 108 private: |
| 107 bool getKey(const String& key, v8::Local<v8::Value>&) const; | 109 bool getKey(const String& key, v8::Local<v8::Value>&) const; |
| 108 | 110 |
| 109 // This object can only be used safely when stack allocated because of v8::L ocal. | 111 // This object can only be used safely when stack allocated because of v8::L ocal. |
| 110 static void* operator new(size_t); | 112 static void* operator new(size_t); |
| 111 static void* operator new[](size_t); | 113 static void* operator new[](size_t); |
| 112 static void operator delete(void *); | 114 static void operator delete(void *); |
| 113 | 115 |
| 114 v8::Local<v8::Value> m_options; | 116 v8::Local<v8::Value> m_options; |
| 115 v8::Isolate* m_isolate; | 117 v8::Isolate* m_isolate; |
| 116 }; | 118 }; |
| 117 | 119 |
| 118 } | 120 } |
| 119 | 121 |
| 120 #endif // Dictionary_h | 122 #endif // Dictionary_h |
| OLD | NEW |