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 <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
11 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "build/build_config.h" |
12 #include "ui/aura/client/capture_client.h" | 15 #include "ui/aura/client/capture_client.h" |
13 #include "ui/aura/client/cursor_client.h" | 16 #include "ui/aura/client/cursor_client.h" |
14 #include "ui/aura/client/screen_position_client.h" | 17 #include "ui/aura/client/screen_position_client.h" |
15 #include "ui/aura/env.h" | 18 #include "ui/aura/env.h" |
16 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
17 #include "ui/events/event.h" | 20 #include "ui/events/event.h" |
18 #include "ui/gfx/font.h" | 21 #include "ui/gfx/font.h" |
19 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
20 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
21 #include "ui/gfx/text_elider.h" | 24 #include "ui/gfx/text_elider.h" |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 return; | 375 return; |
373 if (tooltip_window_) | 376 if (tooltip_window_) |
374 tooltip_window_->RemoveObserver(this); | 377 tooltip_window_->RemoveObserver(this); |
375 tooltip_window_ = target; | 378 tooltip_window_ = target; |
376 if (tooltip_window_) | 379 if (tooltip_window_) |
377 tooltip_window_->AddObserver(this); | 380 tooltip_window_->AddObserver(this); |
378 } | 381 } |
379 | 382 |
380 } // namespace corewm | 383 } // namespace corewm |
381 } // namespace views | 384 } // namespace views |
OLD | NEW |