diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 14:17:44 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-07 14:17:44 +0000 |
commit | fb4d20935c35d913ab639e272a595a32e06f716e (patch) | |
tree | efb2af7a5fc6b3dce989aa028abaef09755a1d51 /ui/gfx/display.h | |
parent | 488e650f46fa312273e6a12c5a5097881b1db755 (diff) | |
download | chromium_src-fb4d20935c35d913ab639e272a595a32e06f716e.zip chromium_src-fb4d20935c35d913ab639e272a595a32e06f716e.tar.gz chromium_src-fb4d20935c35d913ab639e272a595a32e06f716e.tar.bz2 |
Convert the mouse event's location that is captured by aura correctly
BUG=145173
TEST=manual. see bug for repro step.
Review URL: https://chromiumcodereview.appspot.com/10916121
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155382 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/display.h')
-rw-r--r-- | ui/gfx/display.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gfx/display.h b/ui/gfx/display.h index c91e52d..5abe1be 100644 --- a/ui/gfx/display.h +++ b/ui/gfx/display.h @@ -87,6 +87,9 @@ class UI_EXPORT Display { // Returns a string representation of the display; std::string ToString() const; + // True if the display contains valid display id. + bool is_valid() const { return id_ != kInvalidDisplayID; } + static const int64 kInvalidDisplayID; private: |