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

Side by Side Diff: Source/core/inspector/CodeGeneratorInspectorStrings.py

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 # Copyright (c) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 """) 84 """)
85 85
86 callback_failure_method = ( 86 callback_failure_method = (
87 """void InspectorBackendDispatcher::$agentName::$callbackName::sendFailure(const ErrorString& error, $parameter) 87 """void InspectorBackendDispatcher::$agentName::$callbackName::sendFailure(const ErrorString& error, $parameter)
88 { 88 {
89 ASSERT(error.length()); 89 ASSERT(error.length());
90 RefPtr<JSONValue> errorDataValue; 90 RefPtr<JSONValue> errorDataValue;
91 if (error) { 91 if (error) {
92 errorDataValue = $argument; 92 errorDataValue = $argument;
93 } 93 }
94 sendIfActive(0, error, errorDataValue.release()); 94 sendIfActive(nullptr, error, errorDataValue.release());
95 } 95 }
96 """) 96 """)
97 97
98 98
99 frontend_h = ( 99 frontend_h = (
100 """#ifndef InspectorFrontend_h 100 """#ifndef InspectorFrontend_h
101 #define InspectorFrontend_h 101 #define InspectorFrontend_h
102 102
103 #include "InspectorTypeBuilder.h" 103 #include "InspectorTypeBuilder.h"
104 #include "platform/JSONValues.h" 104 #include "platform/JSONValues.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 } 489 }
490 490
491 InspectorBackendDispatcher::CallbackBase::CallbackBase(PassRefPtr<InspectorBacke ndDispatcherImpl> backendImpl, int id) 491 InspectorBackendDispatcher::CallbackBase::CallbackBase(PassRefPtr<InspectorBacke ndDispatcherImpl> backendImpl, int id)
492 : m_backendImpl(backendImpl), m_id(id), m_alreadySent(false) {} 492 : m_backendImpl(backendImpl), m_id(id), m_alreadySent(false) {}
493 493
494 InspectorBackendDispatcher::CallbackBase::~CallbackBase() {} 494 InspectorBackendDispatcher::CallbackBase::~CallbackBase() {}
495 495
496 void InspectorBackendDispatcher::CallbackBase::sendFailure(const ErrorString& er ror) 496 void InspectorBackendDispatcher::CallbackBase::sendFailure(const ErrorString& er ror)
497 { 497 {
498 ASSERT(error.length()); 498 ASSERT(error.length());
499 sendIfActive(0, error, PassRefPtr<JSONValue>()); 499 sendIfActive(nullptr, error, PassRefPtr<JSONValue>());
500 } 500 }
501 501
502 bool InspectorBackendDispatcher::CallbackBase::isActive() 502 bool InspectorBackendDispatcher::CallbackBase::isActive()
503 { 503 {
504 return !m_alreadySent && m_backendImpl->isActive(); 504 return !m_alreadySent && m_backendImpl->isActive();
505 } 505 }
506 506
507 void InspectorBackendDispatcher::CallbackBase::sendIfActive(PassRefPtr<JSONObjec t> partialMessage, const ErrorString& invocationError, PassRefPtr<JSONValue> err orData) 507 void InspectorBackendDispatcher::CallbackBase::sendIfActive(PassRefPtr<JSONObjec t> partialMessage, const ErrorString& invocationError, PassRefPtr<JSONValue> err orData)
508 { 508 {
509 if (m_alreadySent) 509 if (m_alreadySent)
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
938 }; 938 };
939 939
940 """) 940 """)
941 941
942 class_binding_builder_part_4 = ( 942 class_binding_builder_part_4 = (
943 """ static Builder<NoFieldsSet> create() 943 """ static Builder<NoFieldsSet> create()
944 { 944 {
945 return Builder<NoFieldsSet>(JSONObject::create()); 945 return Builder<NoFieldsSet>(JSONObject::create());
946 } 946 }
947 """) 947 """)
OLDNEW
« no previous file with comments | « Source/core/inspector/AsyncCallStackTracker.cpp ('k') | Source/core/inspector/ConsoleMessage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698