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/wm/maximize_bubble_controller.h" | 5 #include "ash/wm/maximize_bubble_controller.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
9 #include "ash/wm/window_animations.h" | 9 #include "ash/wm/window_animations.h" |
10 #include "ash/wm/workspace/frame_maximize_button.h" | 10 #include "ash/wm/workspace/frame_maximize_button.h" |
11 #include "base/timer.h" | 11 #include "base/timer.h" |
12 #include "grit/ash_strings.h" | 12 #include "grit/ash_strings.h" |
13 #include "grit/ui_resources.h" | 13 #include "grit/ui_resources.h" |
14 #include "third_party/skia/include/core/SkPath.h" | 14 #include "third_party/skia/include/core/SkPath.h" |
15 #include "ui/aura/focus_manager.h" | 15 #include "ui/aura/focus_manager.h" |
16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
17 #include "ui/base/animation/animation.h" | 17 #include "ui/base/animation/animation.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 19 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/gfx/canvas.h" | 20 #include "ui/gfx/canvas.h" |
21 #include "ui/gfx/path.h" | 21 #include "ui/gfx/path.h" |
22 #include "ui/gfx/screen.h" | 22 #include "ui/gfx/screen.h" |
23 #include "ui/views/bubble/bubble_delegate.h" | 23 #include "ui/views/bubble/bubble_delegate.h" |
24 #include "ui/views/bubble/bubble_frame_view.h" | 24 #include "ui/views/bubble/bubble_frame_view.h" |
25 #include "ui/views/controls/button/button.h" | 25 #include "ui/views/controls/button/button.h" |
26 #include "ui/views/controls/button/image_button.h" | 26 #include "ui/views/controls/button/image_button.h" |
27 #include "ui/views/controls/label.h" | 27 #include "ui/views/controls/label.h" |
28 #include "ui/views/events/event.h" | |
29 #include "ui/views/layout/box_layout.h" | 28 #include "ui/views/layout/box_layout.h" |
30 #include "ui/views/mouse_watcher.h" | 29 #include "ui/views/mouse_watcher.h" |
31 #include "ui/views/widget/widget.h" | 30 #include "ui/views/widget/widget.h" |
32 | 31 |
33 namespace { | 32 namespace { |
34 | 33 |
35 // The spacing between two buttons. | 34 // The spacing between two buttons. |
36 const int kLayoutSpacing = -1; | 35 const int kLayoutSpacing = -1; |
37 | 36 |
38 // The background color. | 37 // The background color. |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 button_row_->ButtonHovered(this); | 733 button_row_->ButtonHovered(this); |
735 views::ImageButton::OnMouseEntered(event); | 734 views::ImageButton::OnMouseEntered(event); |
736 } | 735 } |
737 | 736 |
738 void BubbleDialogButton::OnMouseExited(const ui::MouseEvent& event) { | 737 void BubbleDialogButton::OnMouseExited(const ui::MouseEvent& event) { |
739 button_row_->ButtonHovered(NULL); | 738 button_row_->ButtonHovered(NULL); |
740 views::ImageButton::OnMouseExited(event); | 739 views::ImageButton::OnMouseExited(event); |
741 } | 740 } |
742 | 741 |
743 } // namespace ash | 742 } // namespace ash |
OLD | NEW |