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

Unified Diff: ash/ash_touch_exploration_manager_chromeos.cc

Issue 2620153003: Folds WmRootWindowController into RootWindowController (Closed)
Patch Set: merge Created 3 years, 11 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/app_list/app_list_presenter_delegate.cc ('k') | ash/aura/wm_lookup_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ash_touch_exploration_manager_chromeos.cc
diff --git a/ash/ash_touch_exploration_manager_chromeos.cc b/ash/ash_touch_exploration_manager_chromeos.cc
index a6faf964be2c1b048a41fbe7a240ad5825404788..1cd1ccd0f65ae20dcacd00110b5150331e9f6695 100644
--- a/ash/ash_touch_exploration_manager_chromeos.cc
+++ b/ash/ash_touch_exploration_manager_chromeos.cc
@@ -6,7 +6,6 @@
#include "ash/common/accessibility_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
-#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/root_window_controller.h"
@@ -96,10 +95,8 @@ void AshTouchExplorationManager::HandleAccessibilityGesture(
void AshTouchExplorationManager::OnDisplayMetricsChanged(
const display::Display& display,
uint32_t changed_metrics) {
- if (root_window_controller_->wm_root_window_controller()
- ->GetWindow()
- ->GetDisplayNearestWindow()
- .id() == display.id())
+ if (root_window_controller_->GetWindow()->GetDisplayNearestWindow().id() ==
+ display.id())
UpdateTouchExplorationState();
}
@@ -157,11 +154,9 @@ void AshTouchExplorationManager::UpdateTouchExplorationState() {
touch_accessibility_enabler_.get());
}
if (pass_through_surface) {
- const gfx::Rect& work_area =
- root_window_controller_->wm_root_window_controller()
- ->GetWindow()
- ->GetDisplayNearestWindow()
- .work_area();
+ const gfx::Rect& work_area = root_window_controller_->GetWindow()
+ ->GetDisplayNearestWindow()
+ .work_area();
touch_exploration_controller_->SetExcludeBounds(work_area);
SilenceSpokenFeedback();
WmShell::Get()->accessibility_delegate()->ClearFocusHighlight();
« no previous file with comments | « ash/app_list/app_list_presenter_delegate.cc ('k') | ash/aura/wm_lookup_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698