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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EVENTS_H_ 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_EVENTS_H_
6 #define CHROME_BROWSER_ACCESSIBILITY_EVENTS_H_ 6 #define CHROME_BROWSER_ACCESSIBILITY_EVENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 class AccessibilityControlInfo; 11 class AccessibilityControlInfo;
12 class DictionaryValue; 12 class DictionaryValue;
13 class NotificationType;
14 class Profile; 13 class Profile;
15 14
16 // Use the NotificationService to post the given accessibility 15 // Use the NotificationService to post the given accessibility
17 // notification type with AccessibilityControlInfo details to any 16 // notification type with AccessibilityControlInfo details to any
18 // listeners. Will not send if the profile's pause level is nonzero 17 // listeners. Will not send if the profile's pause level is nonzero
19 // (using profile->PauseAccessibilityEvents). 18 // (using profile->PauseAccessibilityEvents).
20 void SendAccessibilityNotification( 19 void SendAccessibilityNotification(
21 NotificationType type, AccessibilityControlInfo* info); 20 int type, AccessibilityControlInfo* info);
22 21
23 // Abstract parent class for accessibility information about a control 22 // Abstract parent class for accessibility information about a control
24 // passed to event listeners. 23 // passed to event listeners.
25 class AccessibilityControlInfo { 24 class AccessibilityControlInfo {
26 public: 25 public:
27 virtual ~AccessibilityControlInfo(); 26 virtual ~AccessibilityControlInfo();
28 27
29 // Serialize this class as a DictionaryValue that can be converted to 28 // Serialize this class as a DictionaryValue that can be converted to
30 // a JavaScript object. 29 // a JavaScript object.
31 virtual void SerializeToDict(DictionaryValue* dict) const; 30 virtual void SerializeToDict(DictionaryValue* dict) const;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 bool has_submenu() const { return has_submenu_; } 271 bool has_submenu() const { return has_submenu_; }
273 272
274 private: 273 private:
275 bool has_submenu_; 274 bool has_submenu_;
276 // The 0-based index of the current item and the number of total items. 275 // The 0-based index of the current item and the number of total items.
277 int item_index_; 276 int item_index_;
278 int item_count_; 277 int item_count_;
279 }; 278 };
280 279
281 #endif // CHROME_BROWSER_ACCESSIBILITY_EVENTS_H_ 280 #endif // CHROME_BROWSER_ACCESSIBILITY_EVENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/renderer_accessibility_browsertest.cc ('k') | chrome/browser/accessibility_events.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698