| Index: ui/wm/core/coordinate_conversion.cc
|
| diff --git a/ui/wm/core/coordinate_conversion.cc b/ui/wm/core/coordinate_conversion.cc
|
| index 1d97f04f028b77142df28ad6abda174162b042f9..1205bed5627a590c251cc5d836c90d4b9489ea1d 100644
|
| --- a/ui/wm/core/coordinate_conversion.cc
|
| +++ b/ui/wm/core/coordinate_conversion.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "ui/aura/client/screen_position_client.h"
|
| #include "ui/gfx/geometry/point.h"
|
| +#include "ui/gfx/geometry/rect.h"
|
|
|
| namespace wm {
|
|
|
| @@ -26,4 +27,18 @@ void ConvertPointFromScreen(const aura::Window* window,
|
| ConvertPointFromScreen(window, point_in_screen);
|
| }
|
|
|
| +gfx::Rect ConvertRectToScreen(const aura::Window* window,
|
| + const gfx::Rect& rect) {
|
| + gfx::Point point = rect.origin();
|
| + ConvertPointToScreen(window, &point);
|
| + return gfx::Rect(point, rect.size());
|
| +}
|
| +
|
| +gfx::Rect ConvertRectFromScreen(const aura::Window* window,
|
| + const gfx::Rect& rect) {
|
| + gfx::Point point = rect.origin();
|
| + ConvertPointFromScreen(window, &point);
|
| + return gfx::Rect(point, rect.size());
|
| +}
|
| +
|
| } // namespace wm
|
|
|