- add sources.
[platform/framework/web/crosswalk.git] / src / ui / base / win / accessibility_ids_win.h
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 #ifndef UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_
5 #define UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_
6
7 namespace base {
8 namespace win {
9
10 // Windows accessibility (MSAA) notifications are posted on an
11 // accessible object using its owning HWND and a long integer child id.
12 // Positive child ids can be used to enumerate the children of an object,
13 // so in Chromium we use only negative values to represent ids of specific
14 // accessible objects.
15 //
16 // Chromium currently has two separate systems that use accessibility ids:
17 // * views (ui/views/accessibility), and
18 // * web (content/browser/accessibility)
19 //
20 // These constants ensure they use non-overlapping id ranges.
21
22 const long kFirstViewsAccessibilityId = -1;
23 const long kLastViewsAccessibilityId = -999;
24 const long kFirstBrowserAccessibilityManagerAccessibilityId = -1000;
25 const long kLastBrowserAccessibilityManagerAccessibilityId = INT_MIN;
26
27 }  // win
28 }  // base
29
30 #endif  // UI_BASE_WIN_ACCESSIBILITY_IDS_WIN_H_