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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_win.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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
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 #include "content/browser/accessibility/browser_accessibility_manager_win.h" 5 #include "content/browser/accessibility/browser_accessibility_manager_win.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <vector> 10 #include <vector>
8 11
9 #include "base/command_line.h" 12 #include "base/command_line.h"
10 #include "base/win/scoped_comptr.h" 13 #include "base/win/scoped_comptr.h"
11 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
12 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 15 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
13 #include "content/browser/accessibility/browser_accessibility_win.h" 16 #include "content/browser/accessibility/browser_accessibility_win.h"
14 #include "content/browser/renderer_host/legacy_render_widget_host_win.h" 17 #include "content/browser/renderer_host/legacy_render_widget_host_win.h"
15 #include "content/common/accessibility_messages.h" 18 #include "content/common/accessibility_messages.h"
16 #include "ui/base/win/atl_module.h" 19 #include "ui/base/win/atl_module.h"
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 event_id = EVENT_SYSTEM_SCROLLINGEND; 264 event_id = EVENT_SYSTEM_SCROLLINGEND;
262 break; 265 break;
263 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: 266 case ui::AX_EVENT_SCROLLED_TO_ANCHOR:
264 event_id = EVENT_SYSTEM_SCROLLINGSTART; 267 event_id = EVENT_SYSTEM_SCROLLINGSTART;
265 break; 268 break;
266 case ui::AX_EVENT_SELECTED_CHILDREN_CHANGED: 269 case ui::AX_EVENT_SELECTED_CHILDREN_CHANGED:
267 event_id = EVENT_OBJECT_SELECTIONWITHIN; 270 event_id = EVENT_OBJECT_SELECTIONWITHIN;
268 break; 271 break;
269 case ui::AX_EVENT_DOCUMENT_SELECTION_CHANGED: { 272 case ui::AX_EVENT_DOCUMENT_SELECTION_CHANGED: {
270 // Fire the event on the object where the focus of the selection is. 273 // Fire the event on the object where the focus of the selection is.
271 int32 focus_id = GetTreeData().sel_focus_object_id; 274 int32_t focus_id = GetTreeData().sel_focus_object_id;
272 BrowserAccessibility* focus_object = GetFromID(focus_id); 275 BrowserAccessibility* focus_object = GetFromID(focus_id);
273 if (focus_object) 276 if (focus_object)
274 node = focus_object; 277 node = focus_object;
275 event_id = IA2_EVENT_TEXT_CARET_MOVED; 278 event_id = IA2_EVENT_TEXT_CARET_MOVED;
276 break; 279 break;
277 } 280 }
278 default: 281 default:
279 // Not all WebKit accessibility events result in a Windows 282 // Not all WebKit accessibility events result in a Windows
280 // accessibility notification. 283 // accessibility notification.
281 break; 284 break;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 BrowserAccessibilityWin* BrowserAccessibilityManagerWin::GetFromUniqueIdWin( 405 BrowserAccessibilityWin* BrowserAccessibilityManagerWin::GetFromUniqueIdWin(
403 LONG unique_id_win) { 406 LONG unique_id_win) {
404 auto iter = g_unique_id_map.Get().find(unique_id_win); 407 auto iter = g_unique_id_map.Get().find(unique_id_win);
405 if (iter == g_unique_id_map.Get().end()) 408 if (iter == g_unique_id_map.Get().end())
406 return nullptr; 409 return nullptr;
407 410
408 return iter->second->ToBrowserAccessibilityWin(); 411 return iter->second->ToBrowserAccessibilityWin();
409 } 412 }
410 413
411 } // namespace content 414 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698