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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" | 6 #include "chrome/browser/extensions/api/extension_action/extension_action_api.h" |
7 #include "chrome/browser/extensions/browser_action_test_util.h" | 7 #include "chrome/browser/extensions/browser_action_test_util.h" |
8 #include "chrome/browser/extensions/extension_action.h" | 8 #include "chrome/browser/extensions/extension_action.h" |
9 #include "chrome/browser/extensions/extension_action_icon_factory.h" | 9 #include "chrome/browser/extensions/extension_action_icon_factory.h" |
10 #include "chrome/browser/extensions/extension_action_manager.h" | 10 #include "chrome/browser/extensions/extension_action_manager.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "extensions/browser/extension_registry.h" | 25 #include "extensions/browser/extension_registry.h" |
26 #include "extensions/browser/extension_system.h" | 26 #include "extensions/browser/extension_system.h" |
27 #include "extensions/browser/notification_types.h" | 27 #include "extensions/browser/notification_types.h" |
28 #include "extensions/browser/process_manager.h" | 28 #include "extensions/browser/process_manager.h" |
29 #include "extensions/browser/test_extension_registry_observer.h" | 29 #include "extensions/browser/test_extension_registry_observer.h" |
30 #include "extensions/common/feature_switch.h" | 30 #include "extensions/common/feature_switch.h" |
31 #include "extensions/test/result_catcher.h" | 31 #include "extensions/test/result_catcher.h" |
32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
34 #include "ui/gfx/geometry/rect.h" | 34 #include "ui/gfx/geometry/rect.h" |
| 35 #include "ui/gfx/geometry/size.h" |
35 #include "ui/gfx/image/image_skia.h" | 36 #include "ui/gfx/image/image_skia.h" |
36 #include "ui/gfx/image/image_skia_operations.h" | 37 #include "ui/gfx/image/image_skia_operations.h" |
37 #include "ui/gfx/size.h" | |
38 #include "ui/gfx/skia_util.h" | 38 #include "ui/gfx/skia_util.h" |
39 | 39 |
40 using content::WebContents; | 40 using content::WebContents; |
41 | 41 |
42 namespace extensions { | 42 namespace extensions { |
43 namespace { | 43 namespace { |
44 | 44 |
45 const char kEmptyImageDataError[] = | 45 const char kEmptyImageDataError[] = |
46 "The imageData property must contain an ImageData object or dictionary " | 46 "The imageData property must contain an ImageData object or dictionary " |
47 "of ImageData objects."; | 47 "of ImageData objects."; |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 const std::string script = | 649 const std::string script = |
650 "window.domAutomationController.send(document.body.style." | 650 "window.domAutomationController.send(document.body.style." |
651 "backgroundColor);"; | 651 "backgroundColor);"; |
652 std::string result; | 652 std::string result; |
653 EXPECT_TRUE(content::ExecuteScriptAndExtractString(tab, script, &result)); | 653 EXPECT_TRUE(content::ExecuteScriptAndExtractString(tab, script, &result)); |
654 EXPECT_EQ(result, "red"); | 654 EXPECT_EQ(result, "red"); |
655 } | 655 } |
656 | 656 |
657 } // namespace | 657 } // namespace |
658 } // namespace extensions | 658 } // namespace extensions |
OLD | NEW |