Lines Matching full:instance
9 /// This file defines the C++ wrapper for an instance.
42 class Instance {
44 /// Default constructor. Construction of an instance should only be done in
46 /// Otherwise, the instance will lack the proper bookkeeping in the browser
52 explicit Instance(PP_Instance instance);
54 /// Destructor. When the instance is removed from the web page,
55 /// the <code>pp::Instance</code> object will be deleted. You should never
56 /// delete the <code>Instance</code> object yourself since the lifetime is
61 /// call so the instance can perform cleanup-related tasks. Once this function
67 /// call so the instance can perform cleanup-related tasks. Once this function
71 virtual ~Instance();
79 /// Init() initializes this instance with the provided arguments. This
80 /// function will be called immediately after the instance object is
97 /// @return true on success. Returning false causes the instance to be
104 /// DidChangeView() is called when the view information for the Instance
128 /// @param[in] position The location on the page of the instance. The
132 /// relative to the instance so the absolute position isn't useful in most
135 /// @param[in] clip The visible region of the instance. This is relative to
136 /// the top left of the instance's coordinate system (not the page). If the
137 /// instance is invisible, <code>clip</code> will be (0, 0, 0, 0).
142 /// the clip when the instance is partially visible. Instead, update the
149 /// DidChangeFocus() is called when an instance has gained or lost focus.
150 /// Having focus means that keyboard events will be sent to the instance.
151 /// An instance's default condition is that it will not have focus.
156 /// selected in the window, and the instance must be the focused element on
170 /// @param[in] has_focus Indicates the new focused state of the instance.
182 /// handler. So it is important that an instance respond accurately with
186 /// event, typically the instance will be given focus. Returning false from
188 /// the click will be given to a lower part of the page and your instance will
189 /// not receive focus. This allows an instance to be partially transparent,
206 /// non-filtered event handler) for mouse events. Otherwise, the instance will
223 /// instance that was instantiated based on the MIME type of a DOMWindow
239 /// @param[in] url_loader An open <code>URLLoader</code> instance.
245 /// is invoked on the DOM element for the instance in JavaScript. Note
259 /// the instance on which it was invoked, with <code>message</code> being a
288 /// The contents of this device is what will be displayed in the instance's
292 /// as the device parameter to unbind all devices from the given instance.
293 /// The instance will then appear transparent. Re-binding the same device
297 /// a device when it is already bound to another instance. If you want
308 /// instance, so the caller can release its reference if it chooses.
319 /// instance, so the caller can release its reference if it chooses.
330 /// instance, so the caller can release its reference if it chooses.
333 /// IsFullFrame() determines if the instance is full-frame (repr).
334 /// Such an instance represents the entire document in a frame rather than an
339 /// @return true if the instance is full-frame, false if not.
343 /// given input events are delivered to the instance.
347 /// the instance. Calling this function will override any previous setting for
376 /// the instance is requesting. The flags are combined by logically ORing
380 /// <code>PP_ERROR_BADARGUMENT</code> if instance is invalid, or
387 /// to the given input events are delivered to the instance for filtering.
397 /// delivering them to the instance. As such, you should only request
399 /// that it requires the browser to stop and block for the instance to handle
415 /// the instance is requesting. The flags are combined by logically ORing
419 /// <code>PP_ERROR_BADARGUMENT</code> if instance is invalid, or
426 /// given input classes no longer be delivered to the instance.
431 /// for the given instance. This will allow greater browser performance for
443 /// instance is no longer interested in.
447 /// the DOM element for the given instance. A call to PostMessage() will
467 /// The instance then invokes PostMessage() as follows:
503 /// is registered this way, it will replace the Instance's HandleMessage
523 /// (pp::Instance::HandleMessage()). Messages will stop arriving at the prior
528 /// messages. The instance does not take ownership of the pointer; it is up
537 /// Unregisters the current message handler for this instance if one is
541 /// using postMessage() will be dispatched to pp::Instance::HandleMessage()
555 /// given plugin instance with the given logging level. The name of the plugin
574 /// AddPerInstanceObject() associates an instance with an interface,
577 /// Many optional interfaces are associated with a plugin instance. For
578 /// example, the find in PPP_Find interface receives updates on a per-instance
579 /// basis. This "per-instance" tracking allows such objects to associate
580 /// themselves with an instance as "the" handler for that interface name.
583 /// associated instance in its constructor and unregisters in its destructor.
590 /// instance.
600 /// instance
609 /// instance
614 /// with all other instance functions, this must only be called on the main
616 static void RemovePerInstanceObject(const InstanceHandle& instance,
620 /// Look up an object previously associated with an instance. Returns NULL
621 /// if the instance is invalid or there is no object for the given interface
622 /// name on the instance.
626 /// @param[in] instance
628 /// instance.
629 static void* GetPerInstanceObject(PP_Instance instance,