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

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

Issue 10444117: Escape search terms correctly in the path portion of a custom search engine. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CONTENT_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 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 // If the bool attribute |attribute| is present, add its value as an 786 // If the bool attribute |attribute| is present, add its value as an
787 // IAccessible2 attribute with the name |ia2_attr|. 787 // IAccessible2 attribute with the name |ia2_attr|.
788 void BoolAttributeToIA2( 788 void BoolAttributeToIA2(
789 WebAccessibility::BoolAttribute attribute, const char* ia2_attr); 789 WebAccessibility::BoolAttribute attribute, const char* ia2_attr);
790 790
791 // If the int attribute |attribute| is present, add its value as an 791 // If the int attribute |attribute| is present, add its value as an
792 // IAccessible2 attribute with the name |ia2_attr|. 792 // IAccessible2 attribute with the name |ia2_attr|.
793 void IntAttributeToIA2( 793 void IntAttributeToIA2(
794 WebAccessibility::IntAttribute attribute, const char* ia2_attr); 794 WebAccessibility::IntAttribute attribute, const char* ia2_attr);
795 795
796 // Escape a string like it would be escaped for a URL or HTML form.
797 string16 Escape(const string16& str);
798
799 // Get the text of this node for the purposes of IAccessibleText - it may 796 // Get the text of this node for the purposes of IAccessibleText - it may
800 // be the name, it may be the value, etc. depending on the role. 797 // be the name, it may be the value, etc. depending on the role.
801 const string16& TextForIAccessibleText(); 798 const string16& TextForIAccessibleText();
802 799
803 // If offset is a member of IA2TextSpecialOffsets this function updates the 800 // If offset is a member of IA2TextSpecialOffsets this function updates the
804 // value of offset and returns, otherwise offset remains unchanged. 801 // value of offset and returns, otherwise offset remains unchanged.
805 void HandleSpecialTextOffset(const string16& text, LONG* offset); 802 void HandleSpecialTextOffset(const string16& text, LONG* offset);
806 803
807 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. 804 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType.
808 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); 805 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 std::vector<int32> hyperlinks_; 857 std::vector<int32> hyperlinks_;
861 858
862 // Give BrowserAccessibility::Create access to our constructor. 859 // Give BrowserAccessibility::Create access to our constructor.
863 friend class BrowserAccessibility; 860 friend class BrowserAccessibility;
864 friend class BrowserAccessibilityRelation; 861 friend class BrowserAccessibilityRelation;
865 862
866 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 863 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
867 }; 864 };
868 865
869 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 866 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/search_engines/template_url_unittest.cc ('k') | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698