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

Side by Side Diff: components/exo/surface.h

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: Experimental changes Created 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_EXO_SURFACE_H_ 5 #ifndef COMPONENTS_EXO_SURFACE_H_
6 #define COMPONENTS_EXO_SURFACE_H_ 6 #define COMPONENTS_EXO_SURFACE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 // Sets the |property| to its default value. Useful for avoiding a cast when 232 // Sets the |property| to its default value. Useful for avoiding a cast when
233 // setting to NULL. 233 // setting to NULL.
234 template <typename T> 234 template <typename T>
235 void ClearProperty(const SurfaceProperty<T>* property); 235 void ClearProperty(const SurfaceProperty<T>* property);
236 236
237 bool HasPendingDamageForTesting(const gfx::Rect& damage) const { 237 bool HasPendingDamageForTesting(const gfx::Rect& damage) const {
238 return pending_damage_.contains(gfx::RectToSkIRect(damage)); 238 return pending_damage_.contains(gfx::RectToSkIRect(damage));
239 } 239 }
240 240
241 // Updates the accessible tree source for this surface.
242 void UpdateAXTreeID(int32_t id);
243
241 private: 244 private:
242 struct State { 245 struct State {
243 State(); 246 State();
244 ~State(); 247 ~State();
245 248
246 bool operator==(const State& other); 249 bool operator==(const State& other);
247 bool operator!=(const State& other) { return !(*this == other); } 250 bool operator!=(const State& other) { return !(*this == other); }
248 251
249 SkRegion opaque_region; 252 SkRegion opaque_region;
250 SkRegion input_region; 253 SkRegion input_region;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 // ui::Layer::SetShowSurface because the layer needs to know how to add 419 // ui::Layer::SetShowSurface because the layer needs to know how to add
417 // references to surfaces. 420 // references to surfaces.
418 scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_; 421 scoped_refptr<cc::SurfaceReferenceFactory> surface_reference_factory_;
419 422
420 DISALLOW_COPY_AND_ASSIGN(Surface); 423 DISALLOW_COPY_AND_ASSIGN(Surface);
421 }; 424 };
422 425
423 } // namespace exo 426 } // namespace exo
424 427
425 #endif // COMPONENTS_EXO_SURFACE_H_ 428 #endif // COMPONENTS_EXO_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698