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 | 6 |
7 #if defined(TOOLKIT_GTK) | 7 #if defined(TOOLKIT_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/extensions/browser_action_test_util.h" | 12 #include "chrome/browser/extensions/browser_action_test_util.h" |
13 #include "chrome/browser/extensions/extension_action.h" | 13 #include "chrome/browser/extensions/extension_action.h" |
14 #include "chrome/browser/extensions/extension_action_icon_factory.h" | 14 #include "chrome/browser/extensions/extension_action_icon_factory.h" |
15 #include "chrome/browser/extensions/extension_action_manager.h" | 15 #include "chrome/browser/extensions/extension_action_manager.h" |
16 #include "chrome/browser/extensions/extension_apitest.h" | 16 #include "chrome/browser/extensions/extension_apitest.h" |
17 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
18 #include "chrome/browser/extensions/extension_system.h" | |
19 #include "chrome/browser/extensions/extension_tab_util.h" | 18 #include "chrome/browser/extensions/extension_tab_util.h" |
20 #include "chrome/browser/extensions/extension_toolbar_model.h" | 19 #include "chrome/browser/extensions/extension_toolbar_model.h" |
21 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
22 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
23 #include "chrome/browser/ui/browser_commands.h" | 22 #include "chrome/browser/ui/browser_commands.h" |
24 #include "chrome/browser/ui/browser_window.h" | 23 #include "chrome/browser/ui/browser_window.h" |
25 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 24 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
26 #include "chrome/common/url_constants.h" | 25 #include "chrome/common/url_constants.h" |
27 #include "chrome/test/base/ui_test_utils.h" | 26 #include "chrome/test/base/ui_test_utils.h" |
28 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
29 #include "content/public/browser/web_contents.h" | 28 #include "content/public/browser/web_contents.h" |
30 #include "content/public/test/browser_test_utils.h" | 29 #include "content/public/test/browser_test_utils.h" |
| 30 #include "extensions/browser/extension_system.h" |
31 #include "grit/theme_resources.h" | 31 #include "grit/theme_resources.h" |
32 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
| 33 #include "ui/gfx/image/image_skia.h" |
| 34 #include "ui/gfx/image/image_skia_operations.h" |
33 #include "ui/gfx/rect.h" | 35 #include "ui/gfx/rect.h" |
34 #include "ui/gfx/size.h" | 36 #include "ui/gfx/size.h" |
35 #include "ui/gfx/image/image_skia.h" | |
36 #include "ui/gfx/image/image_skia_operations.h" | |
37 #include "ui/gfx/skia_util.h" | 37 #include "ui/gfx/skia_util.h" |
38 | 38 |
39 using content::WebContents; | 39 using content::WebContents; |
40 | 40 |
41 namespace extensions { | 41 namespace extensions { |
42 namespace { | 42 namespace { |
43 | 43 |
44 const char kEmptyImageDataError[] = | 44 const char kEmptyImageDataError[] = |
45 "The imageData property must contain an ImageData object or dictionary " | 45 "The imageData property must contain an ImageData object or dictionary " |
46 "of ImageData objects."; | 46 "of ImageData objects."; |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 "backgroundColor);"; | 723 "backgroundColor);"; |
724 std::string result; | 724 std::string result; |
725 const std::string frame_xpath; | 725 const std::string frame_xpath; |
726 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString( | 726 EXPECT_TRUE(content::ExecuteScriptInFrameAndExtractString( |
727 tab, frame_xpath, script, &result)); | 727 tab, frame_xpath, script, &result)); |
728 EXPECT_EQ(result, "red"); | 728 EXPECT_EQ(result, "red"); |
729 } | 729 } |
730 | 730 |
731 } // namespace | 731 } // namespace |
732 } // namespace extensions | 732 } // namespace extensions |
OLD | NEW |