| 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 "chrome/browser/ui/views/tabs/tab.h" | 5 #include "chrome/browser/ui/views/tabs/tab.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/metrics/user_metrics.h" | 14 #include "base/metrics/user_metrics.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
| 17 #include "cc/paint/paint_flags.h" | 17 #include "cc/paint/paint_flags.h" |
| 18 #include "cc/paint/paint_recorder.h" | 18 #include "cc/paint/paint_recorder.h" |
| 19 #include "cc/paint/paint_shader.h" |
| 19 #include "chrome/app/vector_icons/vector_icons.h" | 20 #include "chrome/app/vector_icons/vector_icons.h" |
| 20 #include "chrome/browser/themes/theme_properties.h" | 21 #include "chrome/browser/themes/theme_properties.h" |
| 21 #include "chrome/browser/ui/browser.h" | 22 #include "chrome/browser/ui/browser.h" |
| 22 #include "chrome/browser/ui/layout_constants.h" | 23 #include "chrome/browser/ui/layout_constants.h" |
| 23 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 24 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 24 #include "chrome/browser/ui/tabs/tab_utils.h" | 25 #include "chrome/browser/ui/tabs/tab_utils.h" |
| 25 #include "chrome/browser/ui/view_ids.h" | 26 #include "chrome/browser/ui/view_ids.h" |
| 26 #include "chrome/browser/ui/views/frame/browser_view.h" | 27 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 27 #include "chrome/browser/ui/views/tabs/alert_indicator_button.h" | 28 #include "chrome/browser/ui/views/tabs/alert_indicator_button.h" |
| 28 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" | 29 #include "chrome/browser/ui/views/tabs/browser_tab_strip_controller.h" |
| (...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 | 1429 |
| 1429 // Extends the area to the bottom when the crash animation is in progress. | 1430 // Extends the area to the bottom when the crash animation is in progress. |
| 1430 if (crash_icon_animation_->is_animating()) | 1431 if (crash_icon_animation_->is_animating()) |
| 1431 bounds.set_height(height() - bounds.y()); | 1432 bounds.set_height(height() - bounds.y()); |
| 1432 bounds.set_x(GetMirroredXForRect(bounds)); | 1433 bounds.set_x(GetMirroredXForRect(bounds)); |
| 1433 SchedulePaintInRect(bounds); | 1434 SchedulePaintInRect(bounds); |
| 1434 } | 1435 } |
| 1435 | 1436 |
| 1436 Tab::BackgroundCache::BackgroundCache() = default; | 1437 Tab::BackgroundCache::BackgroundCache() = default; |
| 1437 Tab::BackgroundCache::~BackgroundCache() = default; | 1438 Tab::BackgroundCache::~BackgroundCache() = default; |
| OLD | NEW |