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

Side by Side Diff: chrome/views/widget/root_view.h

Issue 93085: Removes the use of Windows-specific types for accessibility roles and states ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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/views/view.h ('k') | chrome/views/widget/root_view.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_WIDGET_ROOT_VIEW_H_ 5 #ifndef CHROME_VIEWS_WIDGET_ROOT_VIEW_H_
6 #define CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ 6 #define CHROME_VIEWS_WIDGET_ROOT_VIEW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(TOOLKIT_GTK) 10 #if defined(TOOLKIT_GTK)
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // to invoke this. This is primarily intended for Widgets. 181 // to invoke this. This is primarily intended for Widgets.
182 void ClearPaintRect(); 182 void ClearPaintRect();
183 183
184 #if defined(OS_WIN) 184 #if defined(OS_WIN)
185 // Invoked from the Widget to service a WM_PAINT call. 185 // Invoked from the Widget to service a WM_PAINT call.
186 void OnPaint(HWND hwnd); 186 void OnPaint(HWND hwnd);
187 #elif defined(TOOLKIT_GTK) 187 #elif defined(TOOLKIT_GTK)
188 void OnPaint(GdkEventExpose* event); 188 void OnPaint(GdkEventExpose* event);
189 #endif 189 #endif
190 190
191 #if defined(OS_WIN) 191 // Accessibility accessors/mutators, overridden from View.
192 // Returns the MSAA role of the current view. The role is what assistive 192 virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
193 // technologies (ATs) use to determine what behavior to expect from a given 193 virtual bool GetAccessibleName(std::wstring* name);
194 // control. 194 virtual void SetAccessibleName(const std::wstring& name);
195 bool GetAccessibleRole(VARIANT* role);
196 #endif
197
198 // Returns a brief, identifying string, containing a unique, readable name.
199 bool GetAccessibleName(std::wstring* name);
200
201 // Assigns an accessible string name.
202 void SetAccessibleName(const std::wstring& name);
203 195
204 protected: 196 protected:
205 197
206 // Overridden to properly reset our event propagation member 198 // Overridden to properly reset our event propagation member
207 // variables when a child is removed 199 // variables when a child is removed
208 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child); 200 virtual void ViewHierarchyChanged(bool is_add, View *parent, View *child);
209 201
210 #ifndef NDEBUG 202 #ifndef NDEBUG
211 virtual bool IsProcessingPaint() const { return is_processing_paint_; } 203 virtual bool IsProcessingPaint() const { return is_processing_paint_; }
212 #endif 204 #endif
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 354
363 #ifndef NDEBUG 355 #ifndef NDEBUG
364 // True if we're currently processing paint. 356 // True if we're currently processing paint.
365 bool is_processing_paint_; 357 bool is_processing_paint_;
366 #endif 358 #endif
367 }; 359 };
368 360
369 } // namespace views 361 } // namespace views
370 362
371 #endif // CHROME_VIEWS_WIDGET_ROOT_VIEW_H_ 363 #endif // CHROME_VIEWS_WIDGET_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/views/view.h ('k') | chrome/views/widget/root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698