Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2343)

Unified Diff: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc

Issue 22876030: Remove using the Shell desktop Window when we don't have an acceleated widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/test/test_metro_viewer_process_host.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc
===================================================================
--- chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc (revision 217576)
+++ chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc (working copy)
@@ -84,13 +84,11 @@
void ChromeMetroViewerProcessHost::OnSetTargetSurface(
gfx::NativeViewId target_surface) {
- DLOG(INFO) << __FUNCTION__ << ", target_surface = " << target_surface;
HWND hwnd = reinterpret_cast<HWND>(target_surface);
+ // Tell our root window host that the viewer has connected.
+ aura::RemoteRootWindowHostWin::Instance()->Connected(this, hwnd);
+ // Now start the Ash shell environment.
chrome::OpenAsh();
- scoped_refptr<AcceleratedPresenter> any_window =
- AcceleratedPresenter::GetForWindow(NULL);
- any_window->SetNewTargetWindow(hwnd);
- aura::RemoteRootWindowHostWin::Instance()->Connected(this);
ash::Shell::GetInstance()->CreateLauncher();
ash::Shell::GetInstance()->ShowLauncher();
// Tell the rest of Chrome that Ash is running.
« no previous file with comments | « ash/test/test_metro_viewer_process_host.cc ('k') | ui/aura/remote_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698