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

Unified Diff: ash/common/accelerators/accelerator_controller_delegate.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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/accelerators/accelerator_controller.cc ('k') | ash/common/accelerators/accelerator_router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/accelerators/accelerator_controller_delegate.h
diff --git a/ash/common/accelerators/accelerator_controller_delegate.h b/ash/common/accelerators/accelerator_controller_delegate.h
deleted file mode 100644
index 291d9fd5c1ca4ae6f9ae7e5d5ba9d0aa4a3b6487..0000000000000000000000000000000000000000
--- a/ash/common/accelerators/accelerator_controller_delegate.h
+++ /dev/null
@@ -1,50 +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.
-
-#ifndef ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
-#define ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
-
-#include "ash/ash_export.h"
-#include "ash/common/accelerators/accelerator_table.h"
-
-namespace ui {
-class Accelerator;
-}
-
-namespace ash {
-
-// Used by AcceleratorController to handle environment specific commands. This
-// file is temporary while ash supports both mus and aura.
-class ASH_EXPORT AcceleratorControllerDelegate {
- public:
- // Returns true if the delegate is responsible for handling |action|. This
- // should not return whether the action may be enabled, only if this delegate
- // handles the action.
- virtual bool HandlesAction(AcceleratorAction action) = 0;
-
- // Returns true if the delegate can perform the action at this time. Only
- // invoked if HandlesAction() returns true.
- virtual bool CanPerformAction(
- AcceleratorAction action,
- const ui::Accelerator& accelerator,
- const ui::Accelerator& previous_accelerator) = 0;
-
- // Performs the specified action.
- virtual void PerformAction(AcceleratorAction action,
- const ui::Accelerator& accelerator) = 0;
-
- // Shows a warning the user is using a deprecated accelerator.
- virtual void ShowDeprecatedAcceleratorNotification(
- const char* const notification_id,
- int message_id,
- int old_shortcut_id,
- int new_shortcut_id) = 0;
-
- protected:
- virtual ~AcceleratorControllerDelegate() {}
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_ACCELERATORS_ACCELERATOR_CONTROLLER_DELEGATE_H_
« no previous file with comments | « ash/common/accelerators/accelerator_controller.cc ('k') | ash/common/accelerators/accelerator_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698