mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Fix initial state of the |is_showing_| flag in CefRenderWidgetHostViewOSR (issue #1363).
- Windows: Modify the cefclient OSR example to call WasHidden(true) when the app is minimized. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/2062@1819 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -192,6 +192,16 @@ void OSRWindow::Invalidate() {
|
||||
kRenderDelay);
|
||||
}
|
||||
|
||||
void OSRWindow::WasHidden(bool hidden) {
|
||||
if (hidden == hidden_)
|
||||
return;
|
||||
CefRefPtr<CefBrowser> browser = browser_provider_->GetBrowser();
|
||||
if (!browser)
|
||||
return;
|
||||
browser->GetHost()->WasHidden(hidden);
|
||||
hidden_ = hidden;
|
||||
}
|
||||
|
||||
CefBrowserHost::DragOperationsMask
|
||||
OSRWindow::OnDragEnter(CefRefPtr<CefDragData> drag_data,
|
||||
CefMouseEvent ev,
|
||||
@ -226,9 +236,10 @@ OSRWindow::OSRWindow(OSRBrowserProvider* browser_provider, bool transparent)
|
||||
hWnd_(NULL),
|
||||
hDC_(NULL),
|
||||
hRC_(NULL),
|
||||
current_drag_op_(DRAG_OPERATION_NONE),
|
||||
painting_popup_(false),
|
||||
render_task_pending_(false),
|
||||
current_drag_op_(DRAG_OPERATION_NONE) {
|
||||
hidden_(false) {
|
||||
}
|
||||
|
||||
OSRWindow::~OSRWindow() {
|
||||
|
Reference in New Issue
Block a user