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/extensions/api/extension_action/extension_action_api.h" | 5 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 13 matching lines...) Expand all Loading... | |
24 #include "chrome/browser/profiles/profile.h" | 24 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/common/chrome_notification_types.h" | 25 #include "chrome/common/chrome_notification_types.h" |
26 #include "chrome/common/extensions/api/extension_action/action_info.h" | 26 #include "chrome/common/extensions/api/extension_action/action_info.h" |
27 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h " | 27 #include "chrome/common/extensions/api/extension_action/browser_action_handler.h " |
28 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" | 28 #include "chrome/common/extensions/api/extension_action/page_action_handler.h" |
29 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h" | 29 #include "chrome/common/extensions/api/extension_action/script_badge_handler.h" |
30 #include "chrome/common/render_messages.h" | 30 #include "chrome/common/render_messages.h" |
31 #include "content/public/browser/navigation_entry.h" | 31 #include "content/public/browser/navigation_entry.h" |
32 #include "content/public/browser/notification_service.h" | 32 #include "content/public/browser/notification_service.h" |
33 #include "extensions/common/error_utils.h" | 33 #include "extensions/common/error_utils.h" |
34 #include "ui/gfx/image/image.h" | |
Matt Giuca
2013/03/04 00:10:46
Why do you add this #include to a bunch of files?
benwells
2013/03/04 01:30:03
These were included previously from transitive inc
| |
34 #include "ui/gfx/image/image_skia.h" | 35 #include "ui/gfx/image/image_skia.h" |
35 | 36 |
36 namespace extensions { | 37 namespace extensions { |
37 | 38 |
38 namespace { | 39 namespace { |
39 | 40 |
40 const char kBrowserActionStorageKey[] = "browser_action"; | 41 const char kBrowserActionStorageKey[] = "browser_action"; |
41 const char kPopupUrlStorageKey[] = "poupup_url"; | 42 const char kPopupUrlStorageKey[] = "poupup_url"; |
42 const char kTitleStorageKey[] = "title"; | 43 const char kTitleStorageKey[] = "title"; |
43 const char kIconStorageKey[] = "icon"; | 44 const char kIconStorageKey[] = "icon"; |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
732 return true; | 733 return true; |
733 } | 734 } |
734 | 735 |
735 bool EnablePageActionsFunction::RunImpl() { | 736 bool EnablePageActionsFunction::RunImpl() { |
736 return SetPageActionEnabled(true); | 737 return SetPageActionEnabled(true); |
737 } | 738 } |
738 | 739 |
739 bool DisablePageActionsFunction::RunImpl() { | 740 bool DisablePageActionsFunction::RunImpl() { |
740 return SetPageActionEnabled(false); | 741 return SetPageActionEnabled(false); |
741 } | 742 } |
OLD | NEW |