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

Unified Diff: ash/common/focus_cycler.h

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: 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/drag_drop/drag_image_view_unittest.cc ('k') | ash/common/focus_cycler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/focus_cycler.h
diff --git a/ash/common/focus_cycler.h b/ash/common/focus_cycler.h
deleted file mode 100644
index 03286fdc0567cd208af9cd4fa9e5818e1f5be275..0000000000000000000000000000000000000000
--- a/ash/common/focus_cycler.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 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_FOCUS_CYCLER_H_
-#define ASH_COMMON_FOCUS_CYCLER_H_
-
-#include <vector>
-
-#include "ash/ash_export.h"
-#include "base/macros.h"
-
-namespace views {
-class Widget;
-} // namespace views
-
-namespace ash {
-
-// This class handles moving focus between a set of widgets and the main browser
-// window.
-class ASH_EXPORT FocusCycler {
- public:
- enum Direction { FORWARD, BACKWARD };
-
- FocusCycler();
- ~FocusCycler();
-
- // Returns the widget the FocusCycler is attempting to activate or NULL if
- // FocusCycler is not activating any widgets.
- const views::Widget* widget_activating() const { return widget_activating_; }
-
- // Add a widget to the focus cycle. The widget needs to have an
- // AccessiblePaneView as the content view.
- void AddWidget(views::Widget* widget);
-
- // Remove a widget from the focus cycle.
- void RemoveWidget(views::Widget* widget);
-
- // Move focus to the next widget.
- void RotateFocus(Direction direction);
-
- // Moves focus the specified widget. Returns true if the widget was activated.
- bool FocusWidget(views::Widget* widget);
-
- private:
- std::vector<views::Widget*> widgets_;
-
- // See description above getter.
- views::Widget* widget_activating_;
-
- DISALLOW_COPY_AND_ASSIGN(FocusCycler);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_FOCUS_CYCLER_H_
« no previous file with comments | « ash/common/drag_drop/drag_image_view_unittest.cc ('k') | ash/common/focus_cycler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698