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/panels/panel.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/lifetime/application_lifetime.h" | 21 #include "chrome/browser/lifetime/application_lifetime.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/themes/theme_service.h" | 23 #include "chrome/browser/themes/theme_service.h" |
24 #include "chrome/browser/themes/theme_service_factory.h" | 24 #include "chrome/browser/themes/theme_service_factory.h" |
25 #include "chrome/browser/ui/panels/native_panel.h" | 25 #include "chrome/browser/ui/panels/native_panel.h" |
26 #include "chrome/browser/ui/panels/panel_collection.h" | 26 #include "chrome/browser/ui/panels/panel_collection.h" |
27 #include "chrome/browser/ui/panels/panel_host.h" | 27 #include "chrome/browser/ui/panels/panel_host.h" |
28 #include "chrome/browser/ui/panels/panel_manager.h" | 28 #include "chrome/browser/ui/panels/panel_manager.h" |
29 #include "chrome/browser/ui/panels/stacked_panel_collection.h" | 29 #include "chrome/browser/ui/panels/stacked_panel_collection.h" |
30 #include "chrome/browser/web_applications/web_app.h" | 30 #include "chrome/browser/web_applications/web_app.h" |
31 #include "chrome/common/extensions/manifest_handlers/icons_handler.h" | |
32 #include "content/public/browser/notification_service.h" | 31 #include "content/public/browser/notification_service.h" |
33 #include "content/public/browser/notification_source.h" | 32 #include "content/public/browser/notification_source.h" |
34 #include "content/public/browser/notification_types.h" | 33 #include "content/public/browser/notification_types.h" |
35 #include "content/public/browser/render_view_host.h" | 34 #include "content/public/browser/render_view_host.h" |
36 #include "content/public/browser/user_metrics.h" | 35 #include "content/public/browser/user_metrics.h" |
37 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
38 #include "extensions/browser/extension_system.h" | 37 #include "extensions/browser/extension_system.h" |
39 #include "extensions/common/extension.h" | 38 #include "extensions/common/extension.h" |
| 39 #include "extensions/common/manifest_handlers/icons_handler.h" |
40 #include "ui/gfx/image/image.h" | 40 #include "ui/gfx/image/image.h" |
41 #include "ui/gfx/rect.h" | 41 #include "ui/gfx/rect.h" |
42 | 42 |
43 using base::UserMetricsAction; | 43 using base::UserMetricsAction; |
44 using content::RenderViewHost; | 44 using content::RenderViewHost; |
45 | 45 |
46 namespace panel_internal { | 46 namespace panel_internal { |
47 | 47 |
48 class PanelExtensionWindowController : public extensions::WindowController { | 48 class PanelExtensionWindowController : public extensions::WindowController { |
49 public: | 49 public: |
(...skipping 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 // static | 893 // static |
894 void Panel::FormatTitleForDisplay(base::string16* title) { | 894 void Panel::FormatTitleForDisplay(base::string16* title) { |
895 size_t current_index = 0; | 895 size_t current_index = 0; |
896 size_t match_index; | 896 size_t match_index; |
897 while ((match_index = title->find(L'\n', current_index)) != | 897 while ((match_index = title->find(L'\n', current_index)) != |
898 base::string16::npos) { | 898 base::string16::npos) { |
899 title->replace(match_index, 1, base::string16()); | 899 title->replace(match_index, 1, base::string16()); |
900 current_index = match_index; | 900 current_index = match_index; |
901 } | 901 } |
902 } | 902 } |
OLD | NEW |