| 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/tabs/tab_utils.h" | 5 #include "chrome/browser/ui/tabs/tab_utils.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 #include "ui/base/material_design/material_design_controller.h" | 22 #include "ui/base/material_design/material_design_controller.h" |
| 23 #include "ui/base/theme_provider.h" | 23 #include "ui/base/theme_provider.h" |
| 24 #include "ui/gfx/animation/multi_animation.h" | 24 #include "ui/gfx/animation/multi_animation.h" |
| 25 #include "ui/gfx/image/image.h" | 25 #include "ui/gfx/image/image.h" |
| 26 #include "ui/gfx/paint_vector_icon.h" | 26 #include "ui/gfx/paint_vector_icon.h" |
| 27 #include "ui/native_theme/common_theme.h" | 27 #include "ui/native_theme/common_theme.h" |
| 28 #include "ui/native_theme/native_theme.h" | 28 #include "ui/native_theme/native_theme.h" |
| 29 | 29 |
| 30 #if defined(OS_MACOSX) | 30 #if defined(OS_MACOSX) |
| 31 #include "chrome/grit/theme_resources.h" | |
| 32 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
| 33 #endif | 32 #endif |
| 34 | 33 |
| 35 struct LastMuteMetadata | 34 struct LastMuteMetadata |
| 36 : public content::WebContentsUserData<LastMuteMetadata> { | 35 : public content::WebContentsUserData<LastMuteMetadata> { |
| 37 TabMutedReason reason = TabMutedReason::NONE; | 36 TabMutedReason reason = TabMutedReason::NONE; |
| 38 std::string extension_id; | 37 std::string extension_id; |
| 39 | 38 |
| 40 private: | 39 private: |
| 41 explicit LastMuteMetadata(content::WebContents* contents) {} | 40 explicit LastMuteMetadata(content::WebContents* contents) {} |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 const std::vector<int>& indices) { | 370 const std::vector<int>& indices) { |
| 372 for (std::vector<int>::const_iterator i = indices.begin(); i != indices.end(); | 371 for (std::vector<int>::const_iterator i = indices.begin(); i != indices.end(); |
| 373 ++i) { | 372 ++i) { |
| 374 if (!tab_strip.GetWebContentsAt(*i)->IsAudioMuted()) | 373 if (!tab_strip.GetWebContentsAt(*i)->IsAudioMuted()) |
| 375 return false; | 374 return false; |
| 376 } | 375 } |
| 377 return true; | 376 return true; |
| 378 } | 377 } |
| 379 | 378 |
| 380 } // namespace chrome | 379 } // namespace chrome |
| OLD | NEW |