blob: 964d580c47918b69f146e8322f15b9051ea85ac0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "views/screen.h"
#include <gtk/gtk.h>
namespace views {
// static
gfx::Point Screen::GetCursorScreenPoint() {
gint x, y;
gdk_display_get_pointer(NULL, NULL, &x, &y, NULL);
return gfx::Point(x, y);
}
} // namespace
|