| 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/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "ui/aura/client/capture_client.h" | 11 #include "ui/aura/client/capture_client.h" |
| 12 #include "ui/aura/client/cursor_client.h" | 12 #include "ui/aura/client/cursor_client.h" |
| 13 #include "ui/aura/client/screen_position_client.h" | 13 #include "ui/aura/client/screen_position_client.h" |
| 14 #include "ui/aura/env.h" | 14 #include "ui/aura/env.h" |
| 15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
| 16 #include "ui/events/event.h" | 16 #include "ui/events/event.h" |
| 17 #include "ui/gfx/font.h" | 17 #include "ui/gfx/font.h" |
| 18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
| 19 #include "ui/gfx/screen.h" | 19 #include "ui/gfx/screen.h" |
| 20 #include "ui/views/corewm/tooltip.h" | 20 #include "ui/views/corewm/tooltip.h" |
| 21 #include "ui/views/widget/tooltip_manager.h" | 21 #include "ui/views/widget/tooltip_manager.h" |
| 22 #include "ui/wm/public/drag_drop_client.h" | 22 #include "ui/wm/public/drag_drop_client.h" |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 namespace corewm { | 25 namespace corewm { |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 const int kTooltipTimeoutMs = 500; | 28 const int kTooltipTimeoutMs = 500; |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 return; | 359 return; |
| 360 if (tooltip_window_) | 360 if (tooltip_window_) |
| 361 tooltip_window_->RemoveObserver(this); | 361 tooltip_window_->RemoveObserver(this); |
| 362 tooltip_window_ = target; | 362 tooltip_window_ = target; |
| 363 if (tooltip_window_) | 363 if (tooltip_window_) |
| 364 tooltip_window_->AddObserver(this); | 364 tooltip_window_->AddObserver(this); |
| 365 } | 365 } |
| 366 | 366 |
| 367 } // namespace corewm | 367 } // namespace corewm |
| 368 } // namespace views | 368 } // namespace views |
| OLD | NEW |