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

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

Issue 10382222: Cache accessibility description rather than returning temporary. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_gtk.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) 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_GTK_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_GTK_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_GTK_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atk/atk.h> 9 #include <atk/atk.h>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class BrowserAccessibilityGtk : public BrowserAccessibility { 64 class BrowserAccessibilityGtk : public BrowserAccessibility {
65 public: 65 public:
66 BrowserAccessibilityGtk(); 66 BrowserAccessibilityGtk();
67 67
68 virtual ~BrowserAccessibilityGtk(); 68 virtual ~BrowserAccessibilityGtk();
69 69
70 AtkObject* GetAtkObject() const; 70 AtkObject* GetAtkObject() const;
71 71
72 AtkRole atk_role() { return atk_role_; } 72 AtkRole atk_role() { return atk_role_; }
73 const std::string& atk_acc_name() { return atk_acc_name_; } 73 const std::string& atk_acc_name() { return atk_acc_name_; }
74 const std::string& atk_acc_description() { return atk_acc_description_; }
74 75
75 // BrowserAccessibility methods. 76 // BrowserAccessibility methods.
76 virtual void PreInitialize() OVERRIDE; 77 virtual void PreInitialize() OVERRIDE;
77 virtual bool IsNative() const OVERRIDE; 78 virtual bool IsNative() const OVERRIDE;
78 79
79 private: 80 private:
80 virtual void InitRoleAndState(); 81 virtual void InitRoleAndState();
81 82
82 // Give BrowserAccessibility::Create access to our constructor. 83 // Give BrowserAccessibility::Create access to our constructor.
83 friend class BrowserAccessibility; 84 friend class BrowserAccessibility;
84 85
85 AtkObject* atk_object_; 86 AtkObject* atk_object_;
86 AtkRole atk_role_; 87 AtkRole atk_role_;
87 std::string atk_acc_name_; 88 std::string atk_acc_name_;
89 std::string atk_acc_description_;
88 90
89 private: 91 private:
90 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityGtk); 92 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityGtk);
91 }; 93 };
92 94
93 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_GTK_H_ 95 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698