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

Side by Side Diff: chrome/browser/accessibility/browser_accessibility_win.h

Issue 6733043: Coverity: Pass parameters by reference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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 | « no previous file | chrome/browser/accessibility/browser_accessibility_win.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_ACCESSIBILITY_WIN_H_ 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlcom.h> 10 #include <atlcom.h>
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // bitmasks defined in webkit/glue/webaccessibility.h. 457 // bitmasks defined in webkit/glue/webaccessibility.h.
458 void InitRoleAndState(); 458 void InitRoleAndState();
459 459
460 // Retrieve the string value of an attribute from the attribute map and 460 // Retrieve the string value of an attribute from the attribute map and
461 // if found and nonempty, allocate a new BSTR (with SysAllocString) 461 // if found and nonempty, allocate a new BSTR (with SysAllocString)
462 // and return S_OK. If not found or empty, return S_FALSE. 462 // and return S_OK. If not found or empty, return S_FALSE.
463 HRESULT GetAttributeAsBstr( 463 HRESULT GetAttributeAsBstr(
464 WebAccessibility::Attribute attribute, BSTR* value_bstr); 464 WebAccessibility::Attribute attribute, BSTR* value_bstr);
465 465
466 // Escape a string like it would be escaped for a URL or HTML form. 466 // Escape a string like it would be escaped for a URL or HTML form.
467 string16 Escape(string16 str); 467 string16 Escape(const string16& str);
468 468
469 // Get the text of this node for the purposes of IAccessibleText - it may 469 // Get the text of this node for the purposes of IAccessibleText - it may
470 // be the name, it may be the value, etc. depending on the role. 470 // be the name, it may be the value, etc. depending on the role.
471 const string16& TextForIAccessibleText(); 471 const string16& TextForIAccessibleText();
472 472
473 // Search forwards (direction == 1) or backwards (direction == -1) from 473 // Search forwards (direction == 1) or backwards (direction == -1) from
474 // the given offset until the given IAccessible2 boundary (like word, 474 // the given offset until the given IAccessible2 boundary (like word,
475 // sentence) is found, and return its offset. 475 // sentence) is found, and return its offset.
476 LONG FindBoundary(const string16& text, 476 LONG FindBoundary(const string16& text,
477 IA2TextBoundaryType boundary, 477 IA2TextBoundaryType boundary,
478 LONG start_offset, 478 LONG start_offset,
479 LONG direction); 479 LONG direction);
480 480
481 // IAccessible role and state. 481 // IAccessible role and state.
482 int32 ia_role_; 482 int32 ia_role_;
483 int32 ia_state_; 483 int32 ia_state_;
484 484
485 // IAccessible2 role and state. 485 // IAccessible2 role and state.
486 int32 ia2_role_; 486 int32 ia2_role_;
487 int32 ia2_state_; 487 int32 ia2_state_;
488 488
489 // Give BrowserAccessibility::Create access to our constructor. 489 // Give BrowserAccessibility::Create access to our constructor.
490 friend class BrowserAccessibility; 490 friend class BrowserAccessibility;
491 491
492 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 492 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
493 }; 493 };
494 494
495 #endif // CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 495 #endif // CHROME_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698