| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/frame/caption_buttons/frame_caption_button_container_view.h" | 5 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
| 11 #include "ash/frame/caption_buttons/frame_caption_button.h" | 11 #include "ash/frame/caption_buttons/frame_caption_button.h" |
| 12 #include "ash/frame/caption_buttons/frame_size_button.h" | 12 #include "ash/frame/caption_buttons/frame_size_button.h" |
| 13 #include "ash/metrics/user_metrics_recorder.h" | 13 #include "ash/metrics/user_metrics_recorder.h" |
| 14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
| 15 #include "ash/wm/maximize_mode/maximize_mode_controller.h" | 15 #include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| 16 #include "grit/ui_strings.h" // Accessibility names | 16 #include "grit/ui_strings.h" // Accessibility names |
| 17 #include "ui/base/hit_test.h" | 17 #include "ui/base/hit_test.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/compositor/scoped_animation_duration_scale_mode.h" | 19 #include "ui/compositor/scoped_animation_duration_scale_mode.h" |
| 20 #include "ui/gfx/canvas.h" | 20 #include "ui/gfx/canvas.h" |
| 21 #include "ui/gfx/insets.h" | 21 #include "ui/gfx/geometry/insets.h" |
| 22 #include "ui/gfx/point.h" | 22 #include "ui/gfx/geometry/point.h" |
| 23 #include "ui/views/widget/widget.h" | 23 #include "ui/views/widget/widget.h" |
| 24 #include "ui/views/widget/widget_delegate.h" | 24 #include "ui/views/widget/widget_delegate.h" |
| 25 | 25 |
| 26 namespace ash { | 26 namespace ash { |
| 27 | 27 |
| 28 namespace { | 28 namespace { |
| 29 | 29 |
| 30 // Converts |point| from |src| to |dst| and hittests against |dst|. | 30 // Converts |point| from |src| to |dst| and hittests against |dst|. |
| 31 bool ConvertPointToViewAndHitTest(const views::View* src, | 31 bool ConvertPointToViewAndHitTest(const views::View* src, |
| 32 const views::View* dst, | 32 const views::View* dst, |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 : icon_image_id(icon_id), | 301 : icon_image_id(icon_id), |
| 302 inactive_icon_image_id(inactive_icon_id), | 302 inactive_icon_image_id(inactive_icon_id), |
| 303 hovered_background_image_id(hovered_background_id), | 303 hovered_background_image_id(hovered_background_id), |
| 304 pressed_background_image_id(pressed_background_id) { | 304 pressed_background_image_id(pressed_background_id) { |
| 305 } | 305 } |
| 306 | 306 |
| 307 FrameCaptionButtonContainerView::ButtonIconIds::~ButtonIconIds() { | 307 FrameCaptionButtonContainerView::ButtonIconIds::~ButtonIconIds() { |
| 308 } | 308 } |
| 309 | 309 |
| 310 } // namespace ash | 310 } // namespace ash |
| OLD | NEW |