| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Android Open Source Project | 2 * Copyright 2010 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 | 8 |
| 9 #ifndef SkPDFTypes_DEFINED | 9 #ifndef SkPDFTypes_DEFINED |
| 10 #define SkPDFTypes_DEFINED | 10 #define SkPDFTypes_DEFINED |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 */ | 346 */ |
| 347 void insertObject(const char key[], SkPDFObject* value); | 347 void insertObject(const char key[], SkPDFObject* value); |
| 348 void insertObject(const SkString& key, SkPDFObject* value); | 348 void insertObject(const SkString& key, SkPDFObject* value); |
| 349 void insertObjRef(const char key[], SkPDFObject* value); | 349 void insertObjRef(const char key[], SkPDFObject* value); |
| 350 void insertObjRef(const SkString& key, SkPDFObject* value); | 350 void insertObjRef(const SkString& key, SkPDFObject* value); |
| 351 | 351 |
| 352 /** Add the value to the dictionary with the given key. | 352 /** Add the value to the dictionary with the given key. |
| 353 * @param key The text of the key for this dictionary entry. | 353 * @param key The text of the key for this dictionary entry. |
| 354 * @param value The value for this dictionary entry. | 354 * @param value The value for this dictionary entry. |
| 355 */ | 355 */ |
| 356 void insertBool(const char key[], bool value); |
| 356 void insertInt(const char key[], int32_t value); | 357 void insertInt(const char key[], int32_t value); |
| 357 void insertInt(const char key[], size_t value); | 358 void insertInt(const char key[], size_t value); |
| 358 void insertScalar(const char key[], SkScalar value); | 359 void insertScalar(const char key[], SkScalar value); |
| 359 void insertName(const char key[], const char nameValue[]); | 360 void insertName(const char key[], const char nameValue[]); |
| 360 void insertName(const char key[], const SkString& nameValue); | 361 void insertName(const char key[], const SkString& nameValue); |
| 361 void insertString(const char key[], const char value[]); | 362 void insertString(const char key[], const char value[]); |
| 362 void insertString(const char key[], const SkString& value); | 363 void insertString(const char key[], const SkString& value); |
| 363 | 364 |
| 364 /** Remove all entries from the dictionary. | 365 /** Remove all entries from the dictionary. |
| 365 */ | 366 */ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 429 |
| 429 SkPDFObject* operator()(SkPDFObject* o) const { | 430 SkPDFObject* operator()(SkPDFObject* o) const { |
| 430 return this->getSubstitute(o); | 431 return this->getSubstitute(o); |
| 431 } | 432 } |
| 432 | 433 |
| 433 private: | 434 private: |
| 434 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; | 435 SkTHashMap<SkPDFObject*, SkPDFObject*> fSubstituteMap; |
| 435 }; | 436 }; |
| 436 | 437 |
| 437 #endif | 438 #endif |
| OLD | NEW |