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_resources.h" | 12 #include "grit/ash_resources.h" |
13 #include "grit/ash_strings.h" | 13 #include "grit/ash_strings.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" | |
16 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
17 #include "ui/base/animation/animation.h" | 16 #include "ui/base/animation/animation.h" |
18 #include "ui/base/l10n/l10n_util.h" | 17 #include "ui/base/l10n/l10n_util.h" |
19 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/gfx/canvas.h" | 19 #include "ui/gfx/canvas.h" |
21 #include "ui/gfx/path.h" | 20 #include "ui/gfx/path.h" |
22 #include "ui/gfx/screen.h" | 21 #include "ui/gfx/screen.h" |
23 #include "ui/views/bubble/bubble_delegate.h" | 22 #include "ui/views/bubble/bubble_delegate.h" |
24 #include "ui/views/bubble/bubble_frame_view.h" | 23 #include "ui/views/bubble/bubble_frame_view.h" |
25 #include "ui/views/controls/button/button.h" | 24 #include "ui/views/controls/button/button.h" |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 if (!GetBoundsInScreen().Contains(screen_location)) | 850 if (!GetBoundsInScreen().Contains(screen_location)) |
852 button_row_->ButtonHovered(NULL); | 851 button_row_->ButtonHovered(NULL); |
853 else | 852 else |
854 button_row_->ButtonHovered(this); | 853 button_row_->ButtonHovered(this); |
855 | 854 |
856 // Pass the event on to the normal handler. | 855 // Pass the event on to the normal handler. |
857 return views::ImageButton::OnMouseDragged(event); | 856 return views::ImageButton::OnMouseDragged(event); |
858 } | 857 } |
859 | 858 |
860 } // namespace ash | 859 } // namespace ash |
OLD | NEW |