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

Side by Side Diff: ash/focus_cycler.h

Issue 9455063: Makes windows scale slightly when dragging the caption. Also wired (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes tests Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/wm/toplevel_window_event_filter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef FOCUS_CYCLER_H_ 5 #ifndef FOCUS_CYCLER_H_
6 #define FOCUS_CYCLER_H_ 6 #define FOCUS_CYCLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
12 #include "ui/base/accelerators/accelerator.h" 13 #include "ui/base/accelerators/accelerator.h"
13 14
14 namespace views { 15 namespace views {
15 class Widget; 16 class Widget;
16 } // namespace views 17 } // namespace views
17 18
18 namespace ash { 19 namespace ash {
19 20
20 namespace internal { 21 namespace internal {
21 22
22 // This class handles moving focus between a set of widgets and the main browser 23 // This class handles moving focus between a set of widgets and the main browser
23 // window. 24 // window.
24 class FocusCycler : public ui::AcceleratorTarget { 25 class ASH_EXPORT FocusCycler : public ui::AcceleratorTarget {
25 public: 26 public:
26 enum Direction { 27 enum Direction {
27 FORWARD, 28 FORWARD,
28 BACKWARD 29 BACKWARD
29 }; 30 };
30 31
31 FocusCycler(); 32 FocusCycler();
32 virtual ~FocusCycler(); 33 virtual ~FocusCycler();
33 34
34 // Returns the widget the FocusCycler is attempting to activate or NULL if 35 // Returns the widget the FocusCycler is attempting to activate or NULL if
(...skipping 18 matching lines...) Expand all
53 views::Widget* widget_activating_; 54 views::Widget* widget_activating_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(FocusCycler); 56 DISALLOW_COPY_AND_ASSIGN(FocusCycler);
56 }; 57 };
57 58
58 } // namespace internal 59 } // namespace internal
59 60
60 } // namespace ash 61 } // namespace ash
61 62
62 #endif // FOCUS_CYCLER_H_ 63 #endif // FOCUS_CYCLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/toplevel_window_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698