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

Side by Side Diff: chrome/browser/browser_accessibility.cc

Issue 20059: Commiting the changes from my previous cl that are specific to not including ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « chrome/browser/browser_accessibility.h ('k') | chrome/browser/browser_accessibility_manager.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "chrome/browser/browser_accessibility.h" 5 #include "chrome/browser/browser_accessibility.h"
6 6
7 #include "chrome/browser/browser_accessibility_manager.h" 7 #include "chrome/browser/browser_accessibility_manager.h"
8 #include "chrome/browser/iaccessible_function_ids.h" 8 #include "chrome/browser/iaccessible_function_ids.h"
9 #include "chrome/common/render_messages.h"
9 10
10 BrowserAccessibility::BrowserAccessibility() 11 BrowserAccessibility::BrowserAccessibility()
11 : iaccessible_id_(-1), 12 : iaccessible_id_(-1),
12 instance_active_(true) { 13 instance_active_(true) {
13 } 14 }
14 15
15 HRESULT BrowserAccessibility::accDoDefaultAction(VARIANT var_id) { 16 HRESULT BrowserAccessibility::accDoDefaultAction(VARIANT var_id) {
16 if (!instance_active()) { 17 if (!instance_active()) {
17 // Instance no longer active, fail gracefully. 18 // Instance no longer active, fail gracefully.
18 // TODO(klink): Once we have MSAA events, change these fails for having 19 // TODO(klink): Once we have MSAA events, change these fails for having
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 } 540 }
540 541
541 bool BrowserAccessibility::RequestAccessibilityInfo(int iaccessible_func_id, 542 bool BrowserAccessibility::RequestAccessibilityInfo(int iaccessible_func_id,
542 VARIANT var_id, LONG input1, 543 VARIANT var_id, LONG input1,
543 LONG input2) { 544 LONG input2) {
544 return BrowserAccessibilityManager::GetInstance()->RequestAccessibilityInfo( 545 return BrowserAccessibilityManager::GetInstance()->RequestAccessibilityInfo(
545 iaccessible_id(), instance_id(), iaccessible_func_id, var_id, input1, 546 iaccessible_id(), instance_id(), iaccessible_func_id, var_id, input1,
546 input2); 547 input2);
547 } 548 }
548 549
549 ViewHostMsg_Accessibility_Out_Params BrowserAccessibility::response() { 550 const ViewHostMsg_Accessibility_Out_Params& BrowserAccessibility::response() {
550 return BrowserAccessibilityManager::GetInstance()->response(); 551 return BrowserAccessibilityManager::GetInstance()->response();
551 } 552 }
552 553
553 HWND BrowserAccessibility::parent_hwnd() { 554 HWND BrowserAccessibility::parent_hwnd() {
554 return BrowserAccessibilityManager::GetInstance()->parent_hwnd(instance_id()); 555 return BrowserAccessibilityManager::GetInstance()->parent_hwnd(instance_id());
555 } 556 }
556 557
OLDNEW
« no previous file with comments | « chrome/browser/browser_accessibility.h ('k') | chrome/browser/browser_accessibility_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698