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

Unified Diff: ash/wm/screen_pinning_controller.cc

Issue 2115663002: Folds methods in WmShellCommon to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 6 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/wm/screen_pinning_controller.h ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/screen_pinning_controller.cc
diff --git a/ash/wm/screen_pinning_controller.cc b/ash/wm/screen_pinning_controller.cc
index 2cb568d9e52a385d5476cb3c69adc2838ba5103d..bdc66fd2aa61a51d49774004028a3e8f13f3b394 100644
--- a/ash/wm/screen_pinning_controller.cc
+++ b/ash/wm/screen_pinning_controller.cc
@@ -10,7 +10,7 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/window_state.h"
-#include "ash/common/wm_shell_common.h"
+#include "ash/common/wm_shell.h"
#include "ash/common/wm_window.h"
#include "ash/common/wm_window_observer.h"
#include "ash/display/window_tree_host_manager.h"
@@ -40,9 +40,9 @@ std::vector<WmWindow*> GetSystemModalWindowsExceptPinned(
WmWindow* pinned_root = pinned_window->GetRootWindow();
std::vector<WmWindow*> result;
- for (WmWindow* system_modal : WmWindowAura::FromAuraWindows(
- ash::Shell::GetContainersFromAllRootWindows(
- kShellWindowId_SystemModalContainer, nullptr))) {
+ for (WmWindow* system_modal :
+ WmWindowAura::FromAuraWindows(Shell::GetContainersFromAllRootWindows(
+ kShellWindowId_SystemModalContainer, nullptr))) {
if (system_modal->GetRootWindow() == pinned_root)
continue;
result.push_back(system_modal);
@@ -180,10 +180,8 @@ class ScreenPinningController::DimWindowObserver : public aura::WindowObserver {
};
ScreenPinningController::ScreenPinningController(
- WmShellCommon* wm_shell_common,
WindowTreeHostManager* window_tree_host_manager)
- : wm_shell_common_(wm_shell_common),
- window_tree_host_manager_(window_tree_host_manager),
+ : window_tree_host_manager_(window_tree_host_manager),
pinned_container_window_observer_(
new PinnedContainerWindowObserver(this)),
pinned_container_child_window_observer_(
@@ -281,7 +279,7 @@ void ScreenPinningController::SetPinnedWindow(WmWindow* pinned_window) {
pinned_window_ = nullptr;
}
- wm_shell_common_->NotifyPinnedStateChanged(pinned_window);
+ WmShell::Get()->NotifyPinnedStateChanged(pinned_window);
}
void ScreenPinningController::OnWindowAddedToPinnedContainer(
« no previous file with comments | « ash/wm/screen_pinning_controller.h ('k') | ash/wm/window_cycle_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698