MCPcopy Create free account
hub / github.com/cztomczak/cefpython / Add

Method Add

src/include/base/cef_callback_list.h:145–149  ·  view source on GitHub ↗

Add a callback to the list. The callback will remain registered until the returned Subscription is destroyed, which must occur before the CallbackList is destroyed.

Source from the content-addressed store, hash-verified

143 // returned Subscription is destroyed, which must occur before the
144 // CallbackList is destroyed.
145 scoped_ptr<Subscription> Add(const CallbackType& cb) WARN_UNUSED_RESULT {
146 DCHECK(!cb.is_null());
147 return scoped_ptr<Subscription>(
148 new Subscription(this, callbacks_.insert(callbacks_.end(), cb)));
149 }
150
151 // Sets a callback which will be run when a subscription list is changed.
152 void set_removal_callback(const Closure& callback) {

Callers 6

_LayoutComponentsMethod · 0.80
__init__Method · 0.80
layoutComponentsMethod · 0.80
__init__Method · 0.80
_LayoutComponentsMethod · 0.80
_LayoutComponentsMethod · 0.80

Calls 1

is_nullMethod · 0.45

Tested by

no test coverage detected