mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-30 11:04:52 +01:00
8078afe7bf
- Add new CefSettings.windowless_rendering_enabled value that must be enabled when using windowless (off-screen) rendering. - Improve naming and documentation for CefWindowInfo members. - CefBeginTracing now completes asynchronously. - Rename CefEndTracingAsync to CefEndTracing. - Rename CefCompletionHandler to CefCompletionCallback. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1592 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
50 lines
1.9 KiB
Diff
50 lines
1.9 KiB
Diff
Index: desktop_aura/desktop_root_window_host_win.cc
|
|
===================================================================
|
|
--- desktop_aura/desktop_root_window_host_win.cc (revision 248478)
|
|
+++ desktop_aura/desktop_root_window_host_win.cc (working copy)
|
|
@@ -132,7 +132,9 @@
|
|
native_widget_delegate_);
|
|
|
|
HWND parent_hwnd = NULL;
|
|
- if (params.parent && params.parent->GetDispatcher()) {
|
|
+ if (params.parent_widget) {
|
|
+ parent_hwnd = params.parent_widget;
|
|
+ } else if (params.parent && params.parent->GetDispatcher()) {
|
|
parent_hwnd =
|
|
params.parent->GetDispatcher()->host()->GetAcceleratedWidget();
|
|
}
|
|
@@ -771,7 +773,7 @@
|
|
|
|
void DesktopWindowTreeHostWin::HandleCreate() {
|
|
// TODO(beng): moar
|
|
- NOTIMPLEMENTED();
|
|
+ // NOTIMPLEMENTED();
|
|
|
|
native_widget_delegate_->OnNativeWidgetCreated(true);
|
|
|
|
Index: desktop_aura/desktop_screen_win.cc
|
|
===================================================================
|
|
--- desktop_aura/desktop_screen_win.cc (revision 248478)
|
|
+++ desktop_aura/desktop_screen_win.cc (working copy)
|
|
@@ -54,6 +54,8 @@
|
|
}
|
|
|
|
HWND DesktopScreenWin::GetHWNDFromNativeView(gfx::NativeView window) const {
|
|
+ if (!window)
|
|
+ return NULL;
|
|
aura::WindowEventDispatcher* dispatcher = window->GetDispatcher();
|
|
return dispatcher ? dispatcher->host()->GetAcceleratedWidget() : NULL;
|
|
}
|
|
Index: widget.h
|
|
===================================================================
|
|
--- widget.h (revision 248478)
|
|
+++ widget.h (working copy)
|
|
@@ -197,6 +197,7 @@
|
|
// Should the widget be double buffered? Default is false.
|
|
bool double_buffer;
|
|
gfx::NativeView parent;
|
|
+ gfx::AcceleratedWidget parent_widget;
|
|
// Specifies the initial bounds of the Widget. Default is empty, which means
|
|
// the NativeWidget may specify a default size. If the parent is specified,
|
|
// |bounds| is in the parent's coordinate system. If the parent is not
|