| 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 "ash/launcher/launcher_tooltip_manager.h" | 5 #include "ash/launcher/launcher_tooltip_manager.h" |
| 6 | 6 |
| 7 #include "ash/launcher/launcher_view.h" | 7 #include "ash/launcher/launcher_view.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell_window_ids.h" | 9 #include "ash/shell_window_ids.h" |
| 10 #include "ash/wm/window_animations.h" | 10 #include "ash/wm/window_animations.h" |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "base/timer.h" | 14 #include "base/timer.h" |
| 15 #include "ui/aura/root_window.h" | 15 #include "ui/aura/root_window.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 #include "ui/base/event.h" | 17 #include "ui/base/events/event.h" |
| 18 #include "ui/base/events.h" | 18 #include "ui/base/events/event_constants.h" |
| 19 #include "ui/gfx/insets.h" | 19 #include "ui/gfx/insets.h" |
| 20 #include "ui/views/bubble/bubble_border_2.h" |
| 20 #include "ui/views/bubble/bubble_delegate.h" | 21 #include "ui/views/bubble/bubble_delegate.h" |
| 21 #include "ui/views/bubble/bubble_frame_view.h" | 22 #include "ui/views/bubble/bubble_frame_view.h" |
| 22 #include "ui/views/bubble/bubble_border_2.h" | |
| 23 #include "ui/views/controls/label.h" | 23 #include "ui/views/controls/label.h" |
| 24 #include "ui/views/layout/fill_layout.h" | 24 #include "ui/views/layout/fill_layout.h" |
| 25 #include "ui/views/widget/widget.h" | 25 #include "ui/views/widget/widget.h" |
| 26 | 26 |
| 27 namespace ash { | 27 namespace ash { |
| 28 namespace internal { | 28 namespace internal { |
| 29 namespace { | 29 namespace { |
| 30 const int kTooltipTopBottomMargin = 3; | 30 const int kTooltipTopBottomMargin = 3; |
| 31 const int kTooltipLeftRightMargin = 10; | 31 const int kTooltipLeftRightMargin = 10; |
| 32 const int kTooltipAppearanceDelay = 200; // msec | 32 const int kTooltipAppearanceDelay = 200; // msec |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 view_->SetText(text_); | 409 view_->SetText(text_); |
| 410 | 410 |
| 411 gfx::NativeView native_view = widget_->GetNativeView(); | 411 gfx::NativeView native_view = widget_->GetNativeView(); |
| 412 SetWindowVisibilityAnimationType( | 412 SetWindowVisibilityAnimationType( |
| 413 native_view, WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL); | 413 native_view, WINDOW_VISIBILITY_ANIMATION_TYPE_VERTICAL); |
| 414 SetWindowVisibilityAnimationTransition(native_view, ANIMATE_HIDE); | 414 SetWindowVisibilityAnimationTransition(native_view, ANIMATE_HIDE); |
| 415 } | 415 } |
| 416 | 416 |
| 417 } // namespace internal | 417 } // namespace internal |
| 418 } // namespace ash | 418 } // namespace ash |
| OLD | NEW |