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

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

Issue 2151713002: Less strict checked state changes and introduce disabled state for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: m Created 4 years, 4 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> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 ui::GetIAccessible2UsageObserverList().RemoveObserver(this); 59 ui::GetIAccessible2UsageObserverList().RemoveObserver(this);
60 } 60 }
61 61
62 // static 62 // static
63 ui::AXTreeUpdate 63 ui::AXTreeUpdate
64 BrowserAccessibilityManagerWin::GetEmptyDocument() { 64 BrowserAccessibilityManagerWin::GetEmptyDocument() {
65 ui::AXNodeData empty_document; 65 ui::AXNodeData empty_document;
66 empty_document.id = 0; 66 empty_document.id = 0;
67 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA; 67 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA;
68 empty_document.state = 68 empty_document.state =
69 (1 << ui::AX_STATE_ENABLED) | 69 (1 << ui::AX_STATE_READ_ONLY) | (1 << ui::AX_STATE_BUSY);
70 (1 << ui::AX_STATE_READ_ONLY) |
71 (1 << ui::AX_STATE_BUSY);
72 70
73 ui::AXTreeUpdate update; 71 ui::AXTreeUpdate update;
74 update.root_id = empty_document.id; 72 update.root_id = empty_document.id;
75 update.nodes.push_back(empty_document); 73 update.nodes.push_back(empty_document);
76 return update; 74 return update;
77 } 75 }
78 76
79 HWND BrowserAccessibilityManagerWin::GetParentHWND() { 77 HWND BrowserAccessibilityManagerWin::GetParentHWND() {
80 BrowserAccessibilityDelegate* delegate = GetDelegateFromRootManager(); 78 BrowserAccessibilityDelegate* delegate = GetDelegateFromRootManager();
81 if (!delegate) 79 if (!delegate)
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 325
328 void BrowserAccessibilityManagerWin::TrackScrollingObject( 326 void BrowserAccessibilityManagerWin::TrackScrollingObject(
329 BrowserAccessibilityWin* node) { 327 BrowserAccessibilityWin* node) {
330 if (tracked_scroll_object_) 328 if (tracked_scroll_object_)
331 tracked_scroll_object_->Release(); 329 tracked_scroll_object_->Release();
332 tracked_scroll_object_ = node; 330 tracked_scroll_object_ = node;
333 tracked_scroll_object_->AddRef(); 331 tracked_scroll_object_->AddRef();
334 } 332 }
335 333
336 } // namespace content 334 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698