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