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

Unified Diff: athena/input/accelerator_manager_impl.h

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « athena/input/DEPS ('k') | athena/input/accelerator_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/input/accelerator_manager_impl.h
diff --git a/athena/input/accelerator_manager_impl.h b/athena/input/accelerator_manager_impl.h
deleted file mode 100644
index bd0c9a751e35b4f54b9691e1254b034b3cc9d8b5..0000000000000000000000000000000000000000
--- a/athena/input/accelerator_manager_impl.h
+++ /dev/null
@@ -1,90 +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 ATHENA_INPUT_ACCELERATOR_MANAGER_H_
-#define ATHENA_INPUT_ACCELERATOR_MANAGER_H_
-
-#include "athena/input/public/accelerator_manager.h"
-
-#include <map>
-
-#include "base/macros.h"
-#include "ui/base/accelerators/accelerator.h"
-#include "ui/base/accelerators/accelerator_history.h"
-#include "ui/events/event_target_iterator.h"
-
-namespace aura {
-class Window;
-}
-
-namespace wm {
-class AcceleratorFilter;
-class NestedAcceleratorController;
-}
-
-namespace athena {
-
-// AcceleratorManagerImpl provides a API to register accelerators
-// for athena modules. It hides various details on accelerator handling
-// such as how to handle accelerator in a nested loop, reserved accelerators
-// and repeated accelerators.
-class AcceleratorManagerImpl : public AcceleratorManager,
- public ui::AcceleratorTarget {
- public:
- class AcceleratorWrapper;
-
- // Creates an AcceleratorManager for global accelerators.
- // This is the one returned by AcceleratorManager::Get()
- static AcceleratorManagerImpl* CreateGlobalAcceleratorManager();
-
- // Creates an AcceleratorManager for focus manager.
- static scoped_ptr<AcceleratorManager> CreateForFocusManager(
- views::FocusManager* focus_manager);
-
- ~AcceleratorManagerImpl() override;
-
- void Init();
-
- void OnRootWindowCreated(aura::Window* root_window);
-
- bool Process(const ui::Accelerator& accelerator);
-
- // AcceleratorManager:
- // This is made public so that implementation classes can use this.
- virtual bool IsRegistered(const ui::Accelerator& accelerator,
- int flags) const override;
-
- private:
- class InternalData;
-
- AcceleratorManagerImpl(AcceleratorWrapper* wrapper, bool global);
-
- // AcceleratorManager:
- virtual void RegisterAccelerators(const AcceleratorData accelerators[],
- size_t num_accelerators,
- AcceleratorHandler* handler) override;
- virtual void RegisterAccelerator(const AcceleratorData& accelerator_data,
- AcceleratorHandler* handler) override;
- virtual void UnregisterAccelerator(const AcceleratorData& accelerator_data,
- AcceleratorHandler* handler) override;
- virtual void SetDebugAcceleratorsEnabled(bool enabled) override;
-
- // ui::AcceleratorTarget:
- virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
- virtual bool CanHandleAccelerators() const override;
-
- std::map<ui::Accelerator, InternalData> accelerators_;
- scoped_ptr<AcceleratorWrapper> accelerator_wrapper_;
- scoped_ptr<ui::AcceleratorHistory> accelerator_history_;
- scoped_ptr<wm::AcceleratorFilter> accelerator_filter_;
- scoped_ptr<wm::NestedAcceleratorController> nested_accelerator_controller_;
- bool debug_accelerators_enabled_;
- bool global_;
-
- DISALLOW_COPY_AND_ASSIGN(AcceleratorManagerImpl);
-};
-
-} // namespace athena
-
-#endif // ATHENA_INPUT_ACCELERATOR_MANAGER_H_
« no previous file with comments | « athena/input/DEPS ('k') | athena/input/accelerator_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698