| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/extensions/extension_shelf.h" | 5 #include "chrome/browser/views/extensions/extension_shelf.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser.h" | 15 #include "chrome/browser/browser.h" |
| 15 #include "chrome/browser/browser_theme_provider.h" | 16 #include "chrome/browser/browser_theme_provider.h" |
| 16 #include "chrome/browser/extensions/extension_host.h" | 17 #include "chrome/browser/extensions/extension_host.h" |
| 17 #include "chrome/browser/extensions/extension_process_manager.h" | 18 #include "chrome/browser/extensions/extension_process_manager.h" |
| 18 #include "chrome/browser/extensions/extensions_service.h" | 19 #include "chrome/browser/extensions/extensions_service.h" |
| 19 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
| 20 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
| 21 #include "chrome/browser/views/extensions/extension_view.h" | 22 #include "chrome/browser/views/extensions/extension_view.h" |
| 22 #include "chrome/browser/view_ids.h" | 23 #include "chrome/browser/view_ids.h" |
| 23 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1098 } | 1099 } |
| 1099 | 1100 |
| 1100 void ExtensionShelf::OnFullscreenToggled(bool fullscreen) { | 1101 void ExtensionShelf::OnFullscreenToggled(bool fullscreen) { |
| 1101 if (fullscreen == fullscreen_) | 1102 if (fullscreen == fullscreen_) |
| 1102 return; | 1103 return; |
| 1103 fullscreen_ = fullscreen; | 1104 fullscreen_ = fullscreen; |
| 1104 if (!IsAlwaysShown()) | 1105 if (!IsAlwaysShown()) |
| 1105 return; | 1106 return; |
| 1106 size_animation_->Reset(fullscreen ? 0 : 1); | 1107 size_animation_->Reset(fullscreen ? 0 : 1); |
| 1107 } | 1108 } |
| OLD | NEW |