OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 View* focused_now); | 51 View* focused_now); |
52 | 52 |
53 // Overridden from views::FocusTraversable: | 53 // Overridden from views::FocusTraversable: |
54 virtual views::FocusSearch* GetFocusSearch(); | 54 virtual views::FocusSearch* GetFocusSearch(); |
55 virtual FocusTraversable* GetFocusTraversableParent(); | 55 virtual FocusTraversable* GetFocusTraversableParent(); |
56 virtual View* GetFocusTraversableParentView(); | 56 virtual View* GetFocusTraversableParentView(); |
57 | 57 |
58 protected: | 58 protected: |
59 // A subclass can override this to provide a default focusable child | 59 // A subclass can override this to provide a default focusable child |
60 // other than the first focusable child. | 60 // other than the first focusable child. |
61 virtual views::View* GetDefaultFocusableChild() { return NULL; } | 61 virtual views::View* GetDefaultFocusableChild(); |
62 | 62 |
63 // Remove pane focus. | 63 // Remove pane focus. |
64 virtual void RemovePaneFocus(); | 64 virtual void RemovePaneFocus(); |
65 | 65 |
66 // Select all text in the location bar | 66 // Select all text in the location bar |
67 virtual void LocationBarSelectAll(); | 67 virtual void LocationBarSelectAll(); |
68 | 68 |
69 void RestoreLastFocusedView(); | 69 void RestoreLastFocusedView(); |
70 | 70 |
71 View* GetFirstFocusableChild(); | 71 View* GetFirstFocusableChild(); |
(...skipping 19 matching lines...) Expand all Loading... |
91 views::Accelerator left_key_; | 91 views::Accelerator left_key_; |
92 views::Accelerator right_key_; | 92 views::Accelerator right_key_; |
93 | 93 |
94 // Last focused view that issued this traversal. | 94 // Last focused view that issued this traversal. |
95 int last_focused_view_storage_id_; | 95 int last_focused_view_storage_id_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(AccessiblePaneView); | 97 DISALLOW_COPY_AND_ASSIGN(AccessiblePaneView); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ | 100 #endif // CHROME_BROWSER_UI_VIEWS_ACCESSIBLE_PANE_VIEW_H_ |
OLD | NEW |