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

Unified Diff: ash/display/display_controller.cc

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos Created 6 years, 7 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/display/display_controller.h ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_controller.cc
diff --git a/ash/display/display_controller.cc b/ash/display/display_controller.cc
index 35ae9d3ab5215cad0e37542a7dfa385629754f34..22ad0781c0a6265664fadcf4468b8258c453b5b2 100644
--- a/ash/display/display_controller.cc
+++ b/ash/display/display_controller.cc
@@ -225,11 +225,12 @@ bool DisplayController::DisplayChangeLimiter::IsThrottled() const {
////////////////////////////////////////////////////////////////////////////////
// DisplayController
-DisplayController::DisplayController()
- : primary_tree_host_for_replace_(NULL),
+DisplayController::DisplayController(ui::ContextFactory* context_factory)
+ : context_factory_(context_factory),
+ primary_tree_host_for_replace_(NULL),
focus_activation_store_(new FocusActivationStore()),
cursor_window_controller_(new CursorWindowController()),
- mirror_window_controller_(new MirrorWindowController()) {
+ mirror_window_controller_(new MirrorWindowController(context_factory)) {
#if defined(OS_CHROMEOS)
if (base::SysInfo::IsRunningOnChromeOS())
limiter_.reset(new DisplayChangeLimiter);
@@ -246,7 +247,7 @@ void DisplayController::Start() {
// Created here so that Shell has finished being created. Adds itself
// as a ShellObserver.
virtual_keyboard_window_controller_.reset(
- new VirtualKeyboardWindowController);
+ new VirtualKeyboardWindowController(context_factory_));
Shell::GetScreen()->AddObserver(this);
Shell::GetInstance()->display_manager()->set_delegate(this);
}
@@ -712,6 +713,7 @@ AshWindowTreeHost* DisplayController::AddWindowTreeHostForDisplay(
GetDisplayManager()->GetDisplayInfo(display.id());
AshWindowTreeHostInitParams params_with_bounds(init_params);
params_with_bounds.initial_bounds = display_info.bounds_in_native();
+ params_with_bounds.context_factory = context_factory_;
AshWindowTreeHost* ash_host = AshWindowTreeHost::Create(params_with_bounds);
aura::WindowTreeHost* host = ash_host->AsWindowTreeHost();
« no previous file with comments | « ash/display/display_controller.h ('k') | ash/display/mirror_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698