| Index: ui/chromeos/ime/candidate_window_view.cc
|
| diff --git a/ui/chromeos/ime/candidate_window_view.cc b/ui/chromeos/ime/candidate_window_view.cc
|
| index 00f7982422a14648416ddea80f9be95651c3d2f7..fc016de28bcf676bb9fb993f0d852ab5c5a37be5 100644
|
| --- a/ui/chromeos/ime/candidate_window_view.cc
|
| +++ b/ui/chromeos/ime/candidate_window_view.cc
|
| @@ -12,8 +12,8 @@
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "ui/chromeos/ime/candidate_view.h"
|
| #include "ui/chromeos/ime/candidate_window_constants.h"
|
| +#include "ui/display/screen.h"
|
| #include "ui/gfx/color_utils.h"
|
| -#include "ui/gfx/screen.h"
|
| #include "ui/native_theme/native_theme.h"
|
| #include "ui/views/background.h"
|
| #include "ui/views/border.h"
|
| @@ -55,8 +55,9 @@ class CandidateWindowBorder : public views::BubbleBorder {
|
| // It cannot use the normal logic of arrow offset for horizontal offscreen,
|
| // because the arrow must be in the content's edge. But CandidateWindow has
|
| // to be visible even when |anchor_rect| is out of the screen.
|
| - gfx::Rect work_area =
|
| - gfx::Screen::GetScreen()->GetDisplayNearestWindow(parent_).work_area();
|
| + gfx::Rect work_area = display::Screen::GetScreen()
|
| + ->GetDisplayNearestWindow(parent_)
|
| + .work_area();
|
| if (bounds.right() > work_area.right())
|
| bounds.set_x(work_area.right() - bounds.width());
|
| if (bounds.x() < work_area.x())
|
|
|