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

Side by Side Diff: components/exo/shell_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_SHELL_SURFACE_H_ 5 #ifndef COMPONENTS_EXO_SHELL_SURFACE_H_
6 #define COMPONENTS_EXO_SHELL_SURFACE_H_ 6 #define COMPONENTS_EXO_SHELL_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 // Returns a trace value representing the state of the surface. 186 // Returns a trace value representing the state of the surface.
187 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const; 187 std::unique_ptr<base::trace_event::TracedValue> AsTracedValue() const;
188 188
189 // Overridden from SurfaceDelegate: 189 // Overridden from SurfaceDelegate:
190 void OnSurfaceCommit() override; 190 void OnSurfaceCommit() override;
191 bool IsSurfaceSynchronized() const override; 191 bool IsSurfaceSynchronized() const override;
192 192
193 // Overridden from SurfaceObserver: 193 // Overridden from SurfaceObserver:
194 void OnSurfaceDestroying(Surface* surface) override; 194 void OnSurfaceDestroying(Surface* surface) override;
195 void OnSurfaceAXTreeChanged(int32_t id) override;
195 196
196 // Overridden from views::WidgetDelegate: 197 // Overridden from views::WidgetDelegate:
197 bool CanResize() const override; 198 bool CanResize() const override;
198 bool CanMaximize() const override; 199 bool CanMaximize() const override;
199 bool CanMinimize() const override; 200 bool CanMinimize() const override;
200 base::string16 GetWindowTitle() const override; 201 base::string16 GetWindowTitle() const override;
201 void WindowClosing() override; 202 void WindowClosing() override;
202 views::Widget* GetWidget() override; 203 views::Widget* GetWidget() override;
203 const views::Widget* GetWidget() const override; 204 const views::Widget* GetWidget() const override;
204 views::View* GetContentsView() override; 205 views::View* GetContentsView() override;
205 views::NonClientFrameView* CreateNonClientFrameView( 206 views::NonClientFrameView* CreateNonClientFrameView(
206 views::Widget* widget) override; 207 views::Widget* widget) override;
207 bool WidgetHasHitTestMask() const override; 208 bool WidgetHasHitTestMask() const override;
208 void GetWidgetHitTestMask(gfx::Path* mask) const override; 209 void GetWidgetHitTestMask(gfx::Path* mask) const override;
209 210
210 // Overridden from views::View: 211 // Overridden from views::View:
211 gfx::Size GetPreferredSize() const override; 212 gfx::Size GetPreferredSize() const override;
212 gfx::Size GetMinimumSize() const override; 213 gfx::Size GetMinimumSize() const override;
214 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
213 215
214 // Overridden from ash::wm::WindowStateObserver: 216 // Overridden from ash::wm::WindowStateObserver:
215 void OnPreWindowStateTypeChange(ash::wm::WindowState* window_state, 217 void OnPreWindowStateTypeChange(ash::wm::WindowState* window_state,
216 ash::wm::WindowStateType old_type) override; 218 ash::wm::WindowStateType old_type) override;
217 void OnPostWindowStateTypeChange(ash::wm::WindowState* window_state, 219 void OnPostWindowStateTypeChange(ash::wm::WindowState* window_state,
218 ash::wm::WindowStateType old_type) override; 220 ash::wm::WindowStateType old_type) override;
219 221
220 // Overridden from aura::WindowObserver: 222 // Overridden from aura::WindowObserver:
221 void OnWindowBoundsChanged(aura::Window* window, 223 void OnWindowBoundsChanged(aura::Window* window,
222 const gfx::Rect& old_bounds, 224 const gfx::Rect& old_bounds,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 aura::Window* shadow_overlay_ = nullptr; 315 aura::Window* shadow_overlay_ = nullptr;
314 aura::Window* shadow_underlay_ = nullptr; 316 aura::Window* shadow_underlay_ = nullptr;
315 std::unique_ptr<ui::EventHandler> shadow_underlay_event_handler_; 317 std::unique_ptr<ui::EventHandler> shadow_underlay_event_handler_;
316 gfx::Rect shadow_content_bounds_; 318 gfx::Rect shadow_content_bounds_;
317 float shadow_background_opacity_ = 1.0; 319 float shadow_background_opacity_ = 1.0;
318 std::deque<Config> pending_configs_; 320 std::deque<Config> pending_configs_;
319 std::unique_ptr<ash::WindowResizer> resizer_; 321 std::unique_ptr<ash::WindowResizer> resizer_;
320 std::unique_ptr<ScopedAnimationsDisabled> scoped_animations_disabled_; 322 std::unique_ptr<ScopedAnimationsDisabled> scoped_animations_disabled_;
321 int top_inset_height_ = 0; 323 int top_inset_height_ = 0;
322 int pending_top_inset_height_ = 0; 324 int pending_top_inset_height_ = 0;
325 uint32_t ax_tree_id_ = 0;
323 326
324 DISALLOW_COPY_AND_ASSIGN(ShellSurface); 327 DISALLOW_COPY_AND_ASSIGN(ShellSurface);
325 }; 328 };
326 329
327 } // namespace exo 330 } // namespace exo
328 331
329 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_ 332 #endif // COMPONENTS_EXO_SHELL_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698