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

Unified Diff: components/exo/shell_surface.h

Issue 2407303003: exo: Use WMHelper to access ash accessibility related features. (Closed)
Patch Set: Fix compile errors. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | components/exo/shell_surface.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.h
diff --git a/components/exo/shell_surface.h b/components/exo/shell_surface.h
index 54a5081659e42fe0a08aeb5144751a65fc1ffc01..3fd85d57eb35dbd3a04d8a48d3b4bcd494b7f8e0 100644
--- a/components/exo/shell_surface.h
+++ b/components/exo/shell_surface.h
@@ -9,7 +9,6 @@
#include <memory>
#include <string>
-#include "ash/common/system/accessibility_observer.h"
#include "ash/common/wm/window_state_observer.h"
#include "base/macros.h"
#include "base/strings/string16.h"
@@ -43,10 +42,10 @@ class ShellSurface : public SurfaceDelegate,
public SurfaceObserver,
public views::WidgetDelegate,
public views::View,
- public ash::AccessibilityObserver,
public ash::wm::WindowStateObserver,
public aura::WindowObserver,
- public WMHelper::ActivationObserver {
+ public WMHelper::ActivationObserver,
+ public WMHelper::AccessibilityObserver {
public:
ShellSurface(Surface* surface,
ShellSurface* parent,
@@ -196,10 +195,6 @@ class ShellSurface : public SurfaceDelegate,
// Overridden from views::View:
gfx::Size GetPreferredSize() const override;
- // Overridden from ash::AccessibilityObserver:
- void OnAccessibilityModeChanged(
- ash::AccessibilityNotificationVisibility notify) override;
-
// Overridden from ash::wm::WindowStateObserver:
void OnPreWindowStateTypeChange(ash::wm::WindowState* window_state,
ash::wm::WindowStateType old_type) override;
@@ -217,6 +212,9 @@ class ShellSurface : public SurfaceDelegate,
aura::Window* gained_active,
aura::Window* lost_active) override;
+ // Overridden from WMHelper::AccessibilityObserver:
+ void OnAccessibilityModeChanged() override;
+
// Overridden from ui::EventHandler:
void OnKeyEvent(ui::KeyEvent* event) override;
void OnMouseEvent(ui::MouseEvent* event) override;
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | components/exo/shell_surface.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698