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

Side by Side Diff: chrome/browser/accessibility/accessibility_events.h

Issue 9665026: Make views Slider accessible on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change value to stringValue 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 | chrome/browser/accessibility/accessibility_events.cc » ('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 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698