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/widget/tooltip_manager_aura.h" | 5 #include "ui/views/widget/tooltip_manager_aura.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ui/aura/client/screen_position_client.h" | 8 #include "ui/aura/client/screen_position_client.h" |
9 #include "ui/aura/window_event_dispatcher.h" | 9 #include "ui/aura/window_event_dispatcher.h" |
10 #include "ui/aura/window_tree_host.h" | 10 #include "ui/aura/window_tree_host.h" |
11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 #include "ui/gfx/screen.h" | 13 #include "ui/gfx/screen.h" |
14 #include "ui/views/widget/widget.h" | 14 #include "ui/views/widget/widget.h" |
15 #include "ui/wm/public/tooltip_client.h" | 15 #include "ui/wm/public/tooltip_client.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 | 18 |
19 //////////////////////////////////////////////////////////////////////////////// | 19 //////////////////////////////////////////////////////////////////////////////// |
20 // TooltipManagerAura public: | 20 // TooltipManagerAura public: |
21 | 21 |
22 TooltipManagerAura::TooltipManagerAura(Widget* widget) : widget_(widget) { | 22 TooltipManagerAura::TooltipManagerAura(Widget* widget) : widget_(widget) { |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 aura::client::SetTooltipId(GetWindow(), target); | 130 aura::client::SetTooltipId(GetWindow(), target); |
131 | 131 |
132 aura::client::GetTooltipClient(root_window)->UpdateTooltip(GetWindow()); | 132 aura::client::GetTooltipClient(root_window)->UpdateTooltip(GetWindow()); |
133 } | 133 } |
134 | 134 |
135 aura::Window* TooltipManagerAura::GetWindow() { | 135 aura::Window* TooltipManagerAura::GetWindow() { |
136 return widget_->GetNativeView(); | 136 return widget_->GetNativeView(); |
137 } | 137 } |
138 | 138 |
139 } // namespace views. | 139 } // namespace views. |
OLD | NEW |