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

Side by Side Diff: ash/shell.cc

Issue 10870036: Allow storing display preferences per device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/chromeos/display/OWNERS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/accelerators/focus_manager_factory.h" 10 #include "ash/accelerators/focus_manager_factory.h"
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 // Pass ownership of the filter to the Env. 360 // Pass ownership of the filter to the Env.
361 aura::Env::GetInstance()->SetEventFilter(env_filter_); 361 aura::Env::GetInstance()->SetEventFilter(env_filter_);
362 362
363 cursor_manager_.set_delegate(this); 363 cursor_manager_.set_delegate(this);
364 364
365 focus_manager_.reset(new aura::FocusManager); 365 focus_manager_.reset(new aura::FocusManager);
366 activation_controller_.reset( 366 activation_controller_.reset(
367 new internal::ActivationController(focus_manager_.get())); 367 new internal::ActivationController(focus_manager_.get()));
368 368
369 screen_position_controller_.reset(new internal::ScreenPositionController); 369 screen_position_controller_.reset(new internal::ScreenPositionController);
370 display_controller_.reset(new internal::DisplayController); 370 display_controller_.reset(new DisplayController);
371 display_controller_->InitPrimaryDisplay(); 371 display_controller_->InitPrimaryDisplay();
372 aura::RootWindow* root_window = display_controller_->GetPrimaryRootWindow(); 372 aura::RootWindow* root_window = display_controller_->GetPrimaryRootWindow();
373 active_root_window_ = root_window; 373 active_root_window_ = root_window;
374 374
375 #if !defined(OS_MACOSX) 375 #if !defined(OS_MACOSX)
376 nested_dispatcher_controller_.reset(new NestedDispatcherController); 376 nested_dispatcher_controller_.reset(new NestedDispatcherController);
377 accelerator_controller_.reset(new AcceleratorController); 377 accelerator_controller_.reset(new AcceleratorController);
378 #endif 378 #endif
379 shell_context_menu_.reset(new internal::ShellContextMenu); 379 shell_context_menu_.reset(new internal::ShellContextMenu);
380 380
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 } 769 }
770 770
771 void Shell::ShowCursor(bool visible) { 771 void Shell::ShowCursor(bool visible) {
772 RootWindowList root_windows = GetAllRootWindows(); 772 RootWindowList root_windows = GetAllRootWindows();
773 for (RootWindowList::iterator iter = root_windows.begin(); 773 for (RootWindowList::iterator iter = root_windows.begin();
774 iter != root_windows.end(); ++iter) 774 iter != root_windows.end(); ++iter)
775 (*iter)->ShowCursor(visible); 775 (*iter)->ShowCursor(visible);
776 } 776 }
777 777
778 } // namespace ash 778 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | chrome/browser/chromeos/display/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698