- 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:
Marshall Greenblatt
2014-09-04 22:15:45 +00:00
parent f693c4a6d2
commit 45d9e3f357
5 changed files with 46 additions and 12 deletions

View File

@ -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() {