OLD | NEW |
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 CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 protected: | 185 protected: |
186 BrowserAccessibilityManager( | 186 BrowserAccessibilityManager( |
187 BrowserAccessibilityDelegate* delegate, | 187 BrowserAccessibilityDelegate* delegate, |
188 BrowserAccessibilityFactory* factory); | 188 BrowserAccessibilityFactory* factory); |
189 | 189 |
190 BrowserAccessibilityManager( | 190 BrowserAccessibilityManager( |
191 const ui::AXTreeUpdate& initial_tree, | 191 const ui::AXTreeUpdate& initial_tree, |
192 BrowserAccessibilityDelegate* delegate, | 192 BrowserAccessibilityDelegate* delegate, |
193 BrowserAccessibilityFactory* factory); | 193 BrowserAccessibilityFactory* factory); |
194 | 194 |
| 195 // Called at the end of updating the tree. |
| 196 virtual void OnTreeUpdateFinished() {} |
| 197 |
195 private: | 198 private: |
196 // The following states keep track of whether or not the | 199 // The following states keep track of whether or not the |
197 // on-screen keyboard is allowed to be shown. | 200 // on-screen keyboard is allowed to be shown. |
198 enum OnScreenKeyboardState { | 201 enum OnScreenKeyboardState { |
199 // Never show the on-screen keyboard because this tab is hidden. | 202 // Never show the on-screen keyboard because this tab is hidden. |
200 OSK_DISALLOWED_BECAUSE_TAB_HIDDEN, | 203 OSK_DISALLOWED_BECAUSE_TAB_HIDDEN, |
201 | 204 |
202 // This tab was just shown, so don't pop-up the on-screen keyboard if a | 205 // This tab was just shown, so don't pop-up the on-screen keyboard if a |
203 // text field gets focus that wasn't the result of an explicit touch. | 206 // text field gets focus that wasn't the result of an explicit touch. |
204 OSK_DISALLOWED_BECAUSE_TAB_JUST_APPEARED, | 207 OSK_DISALLOWED_BECAUSE_TAB_JUST_APPEARED, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 | 251 |
249 // The on-screen keyboard state. | 252 // The on-screen keyboard state. |
250 OnScreenKeyboardState osk_state_; | 253 OnScreenKeyboardState osk_state_; |
251 | 254 |
252 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 255 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
253 }; | 256 }; |
254 | 257 |
255 } // namespace content | 258 } // namespace content |
256 | 259 |
257 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 260 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |