| Index: ui/aura/root_window_host_x11.cc
|
| diff --git a/ui/aura/root_window_host_x11.cc b/ui/aura/root_window_host_x11.cc
|
| index f69a54a889895c4b1f543a3c6be001f3f73880fd..a208c66f6a16fc332098e15767b3694a449a11d7 100644
|
| --- a/ui/aura/root_window_host_x11.cc
|
| +++ b/ui/aura/root_window_host_x11.cc
|
| @@ -25,6 +25,8 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| +// TODO(plundblad): Need something better than this dependency.
|
| +#include "chrome/browser/extensions/api/braille_private/braille_controller.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| #include "third_party/skia/include/core/SkPostConfig.h"
|
| @@ -48,6 +50,7 @@
|
| #include "ui/gfx/codec/png_codec.h"
|
| #include "ui/gfx/screen.h"
|
|
|
| +
|
| #if defined(OS_CHROMEOS)
|
| #include "base/chromeos/chromeos_version.h"
|
| #endif
|
| @@ -439,6 +442,9 @@ RootWindowHostX11::RootWindowHostX11(const gfx::Rect& bounds)
|
| XRRSelectInput(xdisplay_, x_root_window_,
|
| RRScreenChangeNotifyMask | RROutputChangeNotifyMask);
|
| Env::GetInstance()->AddObserver(this);
|
| + // TODO: This is not needed on chromeos, but it is currently on
|
| + // Linux. Need a better way to handle this.
|
| + extensions::api::braille_private::BrailleController::AddWindow(xwindow_);
|
| }
|
|
|
| RootWindowHostX11::~RootWindowHostX11() {
|
| @@ -449,6 +455,7 @@ RootWindowHostX11::~RootWindowHostX11() {
|
| UnConfineCursor();
|
|
|
| XDestroyWindow(xdisplay_, xwindow_);
|
| + extensions::api::braille_private::BrailleController::RemoveWindow(xwindow_);
|
| }
|
|
|
| bool RootWindowHostX11::Dispatch(const base::NativeEvent& event) {
|
|
|