OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/corewm/tooltip_controller.h" | 5 #include "ui/views/corewm/tooltip_controller.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/string_split.h" | 11 #include "base/strings/string_split.h" |
12 #include "base/time.h" | 12 #include "base/time.h" |
13 #include "ui/aura/client/cursor_client.h" | 13 #include "ui/aura/client/cursor_client.h" |
14 #include "ui/aura/client/drag_drop_client.h" | 14 #include "ui/aura/client/drag_drop_client.h" |
15 #include "ui/aura/env.h" | 15 #include "ui/aura/env.h" |
16 #include "ui/aura/root_window.h" | 16 #include "ui/aura/root_window.h" |
17 #include "ui/aura/window.h" | 17 #include "ui/aura/window.h" |
18 #include "ui/base/events/event.h" | 18 #include "ui/base/events/event.h" |
19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/base/text/text_elider.h" | 20 #include "ui/base/text/text_elider.h" |
21 #include "ui/gfx/font.h" | 21 #include "ui/gfx/font.h" |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 if (!root) | 510 if (!root) |
511 return false; | 511 return false; |
512 aura::client::CursorClient* cursor_client = | 512 aura::client::CursorClient* cursor_client = |
513 aura::client::GetCursorClient(root); | 513 aura::client::GetCursorClient(root); |
514 // |cursor_client| may be NULL in tests, treat NULL as always visible. | 514 // |cursor_client| may be NULL in tests, treat NULL as always visible. |
515 return !cursor_client || cursor_client->IsCursorVisible(); | 515 return !cursor_client || cursor_client->IsCursorVisible(); |
516 } | 516 } |
517 | 517 |
518 } // namespace corewm | 518 } // namespace corewm |
519 } // namespace views | 519 } // namespace views |
OLD | NEW |