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

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

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
Index: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h
diff --git a/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h b/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h
deleted file mode 100644
index cbba94303276eebec95202196d77f2e07c528c3e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h
+++ /dev/null
@@ -1,53 +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.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_
-#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_
-
-#include "ash/common/shell_observer.h"
-#include "base/macros.h"
-#include "base/observer_list.h"
-
-namespace chromeos {
-
-// An interface for ash::MaximizeModeController.
-class TouchViewControllerDelegate : public ash::ShellObserver {
- public:
- // Observer that reports changes to the state of MaximizeModeController's
- // rotation lock.
- class Observer {
- public:
- // Invoked when maximize mode started/ended.
- virtual void OnMaximizeModeStarted() {}
- virtual void OnMaximizeModeEnded() {}
-
- protected:
- virtual ~Observer() {}
- };
-
- TouchViewControllerDelegate();
- ~TouchViewControllerDelegate() override;
-
- // Add/Remove observers.
- void AddObserver(Observer* observer);
- void RemoveObserver(Observer* observer);
-
- // Test if the Maximize Mode is enabled or not.
- bool IsMaximizeModeEnabled() const;
-
-
- private:
- // ash::ShellObserver implementation:
- void OnMaximizeModeStarted() override;
- void OnMaximizeModeEnded() override;
-
- // Mode state change observers.
- base::ObserverList<Observer> observers_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchViewControllerDelegate);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698