Home | History | Annotate | Download | only in cpp

Lines Matching refs:instance

9 /// This file defines the C++ wrapper for an instance.
39 class Instance {
41 /// Default constructor. Construction of an instance should only be done in
43 /// Otherwise, the instance will lack the proper bookkeeping in the browser
49 explicit Instance(PP_Instance instance);
51 /// Destructor. When the instance is removed from the web page,
52 /// the <code>pp::Instance</code> object will be deleted. You should never
53 /// delete the <code>Instance</code> object yourself since the lifetime is
58 /// call so the instance can perform cleanup-related tasks. Once this function
64 /// call so the instance can perform cleanup-related tasks. Once this function
68 virtual ~Instance();
76 /// Init() initializes this instance with the provided arguments. This
77 /// function will be called immediately after the instance object is
94 /// @return true on success. Returning false causes the instance to be
101 /// DidChangeView() is called when the view information for the Instance
125 /// @param[in] position The location on the page of the instance. The
129 /// relative to the instance so the absolute position isn't useful in most
132 /// @param[in] clip The visible region of the instance. This is relative to
133 /// the top left of the instance's coordinate system (not the page). If the
134 /// instance is invisible, <code>clip</code> will be (0, 0, 0, 0).
139 /// the clip when the instance is partially visible. Instead, update the
146 /// DidChangeFocus() is called when an instance has gained or lost focus.
147 /// Having focus means that keyboard events will be sent to the instance.
148 /// An instance's default condition is that it will not have focus.
153 /// selected in the window, and the instance must be the focused element on
167 /// @param[in] has_focus Indicates the new focused state of the instance.
179 /// rules. So it is important that an instance respond accurately with whether
183 /// event, typically the instance will be given focus. Returning false from
185 /// the click will be given to a lower part of the page and your instance will
186 /// not receive focus. This allows an instance to be partially transparent,
203 /// non-filtered event handler) for mouse events. Otherwise, the instance will
220 /// instance that was instantiated based on the MIME type of a DOMWindow
236 /// @param[in] url_loader An open <code>URLLoader</code> instance.
242 /// is invoked on the DOM element for the instance in JavaScript. Note
256 /// the instance on which it was invoked, with <code>message</code> being a
285 /// The contents of this device is what will be displayed in the instance's
289 /// as the device parameter to unbind all devices from the given instance.
290 /// The instance will then appear transparent. Re-binding the same device
294 /// a device when it is already bound to another instance. If you want
305 /// instance, so the caller can release its reference if it chooses.
316 /// instance, so the caller can release its reference if it chooses.
319 /// IsFullFrame() determines if the instance is full-frame (repr).
320 /// Such an instance represents the entire document in a frame rather than an
325 /// @return true if the instance is full-frame, false if not.
329 /// given input events are delivered to the instance.
333 /// the instance. Calling this function will override any previous setting for
362 /// the instance is requesting. The flags are combined by logically ORing
366 /// <code>PP_ERROR_BADARGUMENT</code> if instance is invalid, or
373 /// to the given input events are delivered to the instance for filtering.
383 /// delivering them to the instance. As such, you should only request
385 /// that it requires the browser to stop and block for the instance to handle
401 /// the instance is requesting. The flags are combined by logically ORing
405 /// <code>PP_ERROR_BADARGUMENT</code> if instance is invalid, or
412 /// given input classes no longer be delivered to the instance.
417 /// for the given instance. This will allow greater browser performance for
429 /// instance is no longer interested in.
433 /// the DOM element for the given instance. A call to PostMessage() will
453 /// The instance then invokes PostMessage() as follows:
492 /// given plugin instance with the given logging level. The name of the plugin
511 /// AddPerInstanceObject() associates an instance with an interface,
514 /// Many optional interfaces are associated with a plugin instance. For
515 /// example, the find in PPP_Find interface receives updates on a per-instance
516 /// basis. This "per-instance" tracking allows such objects to associate
517 /// themselves with an instance as "the" handler for that interface name.
520 /// associated instance in its constructor and unregisters in its destructor.
527 /// instance.
537 /// instance
546 /// instance
551 /// with all other instance functions, this must only be called on the main
553 static void RemovePerInstanceObject(const InstanceHandle& instance,
557 /// Look up an object previously associated with an instance. Returns NULL
558 /// if the instance is invalid or there is no object for the given interface
559 /// name on the instance.
563 /// @param[in] instance
565 /// instance.
566 static void* GetPerInstanceObject(PP_Instance instance,