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

Side by Side Diff: ash/root_window_controller.cc

Issue 18163006: Add persisted preference for projection touch HUD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/ash_constants.h" 9 #include "ash/ash_constants.h"
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 } 461 }
462 462
463 void RootWindowController::UpdateShelfVisibility() { 463 void RootWindowController::UpdateShelfVisibility() {
464 shelf_->shelf_layout_manager()->UpdateVisibilityState(); 464 shelf_->shelf_layout_manager()->UpdateVisibilityState();
465 } 465 }
466 466
467 void RootWindowController::InitTouchHuds() { 467 void RootWindowController::InitTouchHuds() {
468 CommandLine* command_line = CommandLine::ForCurrentProcess(); 468 CommandLine* command_line = CommandLine::ForCurrentProcess();
469 if (command_line->HasSwitch(switches::kAshTouchHud)) 469 if (command_line->HasSwitch(switches::kAshTouchHud))
470 set_touch_hud_debug(new TouchHudDebug(root_window_.get())); 470 set_touch_hud_debug(new TouchHudDebug(root_window_.get()));
471 if (Shell::GetInstance()->is_touch_hud_projection_enabled()) 471 if (Shell::GetInstance()->delegate()->IsTouchHudProjectionEnabled())
472 EnableTouchHudProjection(); 472 EnableTouchHudProjection();
473 } 473 }
474 474
475 aura::Window* RootWindowController::GetFullscreenWindow() const { 475 aura::Window* RootWindowController::GetFullscreenWindow() const {
476 aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow(); 476 aura::Window* container = workspace_controller_->GetActiveWorkspaceWindow();
477 for (size_t i = 0; i < container->children().size(); ++i) { 477 for (size_t i = 0; i < container->children().size(); ++i) {
478 aura::Window* child = container->children()[i]; 478 aura::Window* child = container->children()[i];
479 if (ash::wm::IsWindowFullscreen(child)) 479 if (ash::wm::IsWindowFullscreen(child))
480 return child; 480 return child;
481 } 481 }
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 "OverlayContainer", 662 "OverlayContainer",
663 lock_screen_related_containers); 663 lock_screen_related_containers);
664 SetUsesScreenCoordinates(overlay_container); 664 SetUsesScreenCoordinates(overlay_container);
665 665
666 CreateContainer(kShellWindowId_PowerButtonAnimationContainer, 666 CreateContainer(kShellWindowId_PowerButtonAnimationContainer,
667 "PowerButtonAnimationContainer", root_window) ; 667 "PowerButtonAnimationContainer", root_window) ;
668 } 668 }
669 669
670 } // namespace internal 670 } // namespace internal
671 } // namespace ash 671 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698