@@ -117,6 +117,13 @@ class CefBrowser : public virtual CefBase {
117117 /* --cef()--*/
118118 virtual int GetIdentifier () =0;
119119
120+ // /
121+ // Returns true if this object is pointing to the same handle as |that|
122+ // object.
123+ // /
124+ /* --cef()--*/
125+ virtual bool IsSame (CefRefPtr<CefBrowser> that) =0;
126+
120127 // /
121128 // Returns true if the window is a popup window.
122129 // /
@@ -211,14 +218,16 @@ class CefRunFileDialogCallback : public virtual CefBase {
211218class CefBrowserHost : public virtual CefBase {
212219 public:
213220 typedef cef_file_dialog_mode_t FileDialogMode;
221+ typedef cef_mouse_button_type_t MouseButtonType;
222+ typedef cef_paint_element_type_t PaintElementType;
214223
215224 // /
216225 // Create a new browser window using the window parameters specified by
217226 // |windowInfo|. All values will be copied internally and the actual window
218227 // will be created on the UI thread. This method can be called on any browser
219228 // process thread and will not block.
220229 // /
221- /* --cef(optional_param=url)--*/
230+ /* --cef(optional_param=client,optional_param= url)--*/
222231 static bool CreateBrowser (const CefWindowInfo& windowInfo,
223232 CefRefPtr<CefClient> client,
224233 const CefString& url,
@@ -229,7 +238,7 @@ class CefBrowserHost : public virtual CefBase {
229238 // |windowInfo|. This method can only be called on the browser process UI
230239 // thread.
231240 // /
232- /* --cef(optional_param=url)--*/
241+ /* --cef(optional_param=client,optional_param= url)--*/
233242 static CefRefPtr<CefBrowser> CreateBrowserSync (
234243 const CefWindowInfo& windowInfo,
235244 CefRefPtr<CefClient> client,
@@ -241,7 +250,7 @@ class CefBrowserHost : public virtual CefBase {
241250 // /
242251 /* --cef()--*/
243252 virtual CefRefPtr<CefBrowser> GetBrowser () =0;
244-
253+
245254 // /
246255 // Call this method before destroying a contained browser window. This method
247256 // performs any internal cleanup that may be needed before the browser window
@@ -329,6 +338,75 @@ class CefBrowserHost : public virtual CefBase {
329338 const CefString& default_file_name,
330339 const std::vector<CefString>& accept_types,
331340 CefRefPtr<CefRunFileDialogCallback> callback) =0;
341+
342+ // /
343+ // Returns true if window rendering is disabled.
344+ // /
345+ /* --cef()--*/
346+ virtual bool IsWindowRenderingDisabled () =0;
347+
348+ // /
349+ // Notify the browser that the widget has been resized. The browser will first
350+ // call CefRenderHandler::GetViewRect to get the new size and then call
351+ // CefRenderHandler::OnPaint asynchronously with the updated regions. This
352+ // method is only used when window rendering is disabled.
353+ // /
354+ /* --cef()--*/
355+ virtual void WasResized () =0;
356+
357+ // /
358+ // Invalidate the |dirtyRect| region of the view. The browser will call
359+ // CefRenderHandler::OnPaint asynchronously with the updated regions. This
360+ // method is only used when window rendering is disabled.
361+ // /
362+ /* --cef()--*/
363+ virtual void Invalidate (const CefRect& dirtyRect, PaintElementType type) =0;
364+
365+ // /
366+ // Send a key event to the browser.
367+ // /
368+ /* --cef()--*/
369+ virtual void SendKeyEvent (const CefKeyEvent& event) =0;
370+
371+ // /
372+ // Send a mouse click event to the browser. The |x| and |y| coordinates are
373+ // relative to the upper-left corner of the view.
374+ // /
375+ /* --cef()--*/
376+ virtual void SendMouseClickEvent (const CefMouseEvent& event,
377+ MouseButtonType type,
378+ bool mouseUp, int clickCount) =0;
379+
380+ // /
381+ // Send a mouse move event to the browser. The |x| and |y| coordinates are
382+ // relative to the upper-left corner of the view.
383+ // /
384+ /* --cef()--*/
385+ virtual void SendMouseMoveEvent (const CefMouseEvent& event,
386+ bool mouseLeave) =0;
387+
388+ // /
389+ // Send a mouse wheel event to the browser. The |x| and |y| coordinates are
390+ // relative to the upper-left corner of the view. The |deltaX| and |deltaY|
391+ // values represent the movement delta in the X and Y directions respectively.
392+ // In order to scroll inside select popups with window rendering disabled
393+ // CefRenderHandler::GetScreenPoint should be implemented properly.
394+ // /
395+ /* --cef()--*/
396+ virtual void SendMouseWheelEvent (const CefMouseEvent& event,
397+ int deltaX, int deltaY) =0;
398+
399+ // /
400+ // Send a focus event to the browser.
401+ // /
402+ /* --cef()--*/
403+ virtual void SendFocusEvent (bool setFocus) =0;
404+
405+ // /
406+ // Send a capture lost event to the browser.
407+ // /
408+ /* --cef()--*/
409+ virtual void SendCaptureLostEvent () =0;
332410};
333411
334412#endif // CEF_INCLUDE_CEF_BROWSER_H_
0 commit comments