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

Unified Diff: ash/common/wm/immersive_context_ash.cc

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/common/wm/immersive_context_ash.h ('k') | ash/common/wm/lock_layout_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/immersive_context_ash.cc
diff --git a/ash/common/wm/immersive_context_ash.cc b/ash/common/wm/immersive_context_ash.cc
deleted file mode 100644
index c1cff55ec4fd33e1454244250ae8eebc7a3cfbe3..0000000000000000000000000000000000000000
--- a/ash/common/wm/immersive_context_ash.cc
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/wm/immersive_context_ash.h"
-
-#include "ash/common/shelf/wm_shelf.h"
-#include "ash/common/wm/window_state.h"
-#include "ash/common/wm_shell.h"
-#include "ash/common/wm_window.h"
-#include "ash/shared/immersive_fullscreen_controller.h"
-#include "base/logging.h"
-#include "ui/display/display.h"
-#include "ui/display/screen.h"
-#include "ui/views/widget/widget.h"
-
-namespace ash {
-
-ImmersiveContextAsh::ImmersiveContextAsh() {}
-
-ImmersiveContextAsh::~ImmersiveContextAsh() {}
-
-void ImmersiveContextAsh::InstallResizeHandleWindowTargeter(
- ImmersiveFullscreenController* controller) {
- WmWindow* window = WmWindow::Get(controller->widget()->GetNativeWindow());
- window->InstallResizeHandleWindowTargeter(controller);
-}
-
-void ImmersiveContextAsh::OnEnteringOrExitingImmersive(
- ImmersiveFullscreenController* controller,
- bool entering) {
- WmWindow* window = WmWindow::Get(controller->widget()->GetNativeWindow());
- wm::WindowState* window_state = window->GetWindowState();
- // Auto hide the shelf in immersive fullscreen instead of hiding it.
- window_state->set_hide_shelf_when_fullscreen(!entering);
- // Update the window's immersive mode state for the window manager.
- window_state->set_in_immersive_fullscreen(entering);
-
- for (WmWindow* root_window : WmShell::Get()->GetAllRootWindows())
- WmShelf::ForWindow(root_window)->UpdateVisibilityState();
-}
-
-gfx::Rect ImmersiveContextAsh::GetDisplayBoundsInScreen(views::Widget* widget) {
- WmWindow* window = WmWindow::Get(widget->GetNativeWindow());
- return window->GetDisplayNearestWindow().bounds();
-}
-
-void ImmersiveContextAsh::AddPointerWatcher(
- views::PointerWatcher* watcher,
- views::PointerWatcherEventTypes events) {
- WmShell::Get()->AddPointerWatcher(watcher, events);
-}
-
-void ImmersiveContextAsh::RemovePointerWatcher(views::PointerWatcher* watcher) {
- WmShell::Get()->RemovePointerWatcher(watcher);
-}
-
-bool ImmersiveContextAsh::DoesAnyWindowHaveCapture() {
- return WmShell::Get()->GetCaptureWindow() != nullptr;
-}
-
-bool ImmersiveContextAsh::IsMouseEventsEnabled() {
- return WmShell::Get()->IsMouseEventsEnabled();
-}
-
-} // namespace ash
« no previous file with comments | « ash/common/wm/immersive_context_ash.h ('k') | ash/common/wm/lock_layout_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698