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 CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 int item_count() const { return item_count_; } | 307 int item_count() const { return item_count_; } |
308 bool has_submenu() const { return has_submenu_; } | 308 bool has_submenu() const { return has_submenu_; } |
309 | 309 |
310 private: | 310 private: |
311 bool has_submenu_; | 311 bool has_submenu_; |
312 // The 0-based index of the current item and the number of total items. | 312 // The 0-based index of the current item and the number of total items. |
313 int item_index_; | 313 int item_index_; |
314 int item_count_; | 314 int item_count_; |
315 }; | 315 }; |
316 | 316 |
| 317 // Accessibility information about a slider passed to onControlFocused |
| 318 // and onControlAction event listeners. |
| 319 class AccessibilitySliderInfo : public AccessibilityControlInfo { |
| 320 public: |
| 321 AccessibilitySliderInfo(Profile* profile, |
| 322 const std::string& name, |
| 323 const std::string& context, |
| 324 const std::string& value); |
| 325 |
| 326 virtual const char* type() const OVERRIDE; |
| 327 |
| 328 virtual void SerializeToDict(base::DictionaryValue* dict) const OVERRIDE; |
| 329 |
| 330 const std::string& value() const { return value_; } |
| 331 |
| 332 private: |
| 333 std::string value_; |
| 334 }; |
| 335 |
317 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ | 336 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EVENTS_H_ |
OLD | NEW |