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

Unified Diff: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc

Issue 2505403003: TouchView Mojom (Closed)
Patch Set: Minor param rename Created 4 years 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 | « chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc
diff --git a/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc b/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc
deleted file mode 100644
index f16aa1ae2151b4283823eaae1b7ee70cfced5352..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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 "chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h"
-
-#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
-#include "ash/common/wm_shell.h"
-
-namespace chromeos {
-
-TouchViewControllerDelegate::TouchViewControllerDelegate() {
- ash::WmShell::Get()->AddShellObserver(this);
-}
-
-TouchViewControllerDelegate::~TouchViewControllerDelegate() {
- ash::WmShell::Get()->RemoveShellObserver(this);
-}
-
-void TouchViewControllerDelegate::AddObserver(Observer* observer) {
- observers_.AddObserver(observer);
-}
-
-void TouchViewControllerDelegate::RemoveObserver(Observer* observer) {
- observers_.RemoveObserver(observer);
-}
-
-bool TouchViewControllerDelegate::IsMaximizeModeEnabled() const {
- return ash::WmShell::Get()
- ->maximize_mode_controller()
- ->IsMaximizeModeWindowManagerEnabled();
-}
-
-void TouchViewControllerDelegate::OnMaximizeModeStarted() {
- for (Observer& observer : observers_)
- observer.OnMaximizeModeStarted();
-}
-
-void TouchViewControllerDelegate::OnMaximizeModeEnded() {
- for (Observer& observer : observers_)
- observer.OnMaximizeModeEnded();
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698