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/tabs/tabs_api.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs_api.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "chrome/browser/ui/window_sizer/window_sizer.h" | 51 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
52 #include "chrome/browser/web_applications/web_app.h" | 52 #include "chrome/browser/web_applications/web_app.h" |
53 #include "chrome/common/chrome_switches.h" | 53 #include "chrome/common/chrome_switches.h" |
54 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" | 54 #include "chrome/common/extensions/api/i18n/default_locale_handler.h" |
55 #include "chrome/common/extensions/api/tabs.h" | 55 #include "chrome/common/extensions/api/tabs.h" |
56 #include "chrome/common/extensions/api/windows.h" | 56 #include "chrome/common/extensions/api/windows.h" |
57 #include "chrome/common/extensions/extension.h" | 57 #include "chrome/common/extensions/extension.h" |
58 #include "chrome/common/extensions/extension_constants.h" | 58 #include "chrome/common/extensions/extension_constants.h" |
59 #include "chrome/common/extensions/extension_file_util.h" | 59 #include "chrome/common/extensions/extension_file_util.h" |
60 #include "chrome/common/extensions/extension_l10n_util.h" | 60 #include "chrome/common/extensions/extension_l10n_util.h" |
61 #include "chrome/common/extensions/extension_manifest_constants.h" | |
62 #include "chrome/common/extensions/extension_messages.h" | 61 #include "chrome/common/extensions/extension_messages.h" |
63 #include "chrome/common/extensions/incognito_handler.h" | 62 #include "chrome/common/extensions/incognito_handler.h" |
64 #include "chrome/common/extensions/message_bundle.h" | 63 #include "chrome/common/extensions/message_bundle.h" |
65 #include "chrome/common/extensions/permissions/permissions_data.h" | 64 #include "chrome/common/extensions/permissions/permissions_data.h" |
66 #include "chrome/common/pref_names.h" | 65 #include "chrome/common/pref_names.h" |
67 #include "chrome/common/translate/language_detection_details.h" | 66 #include "chrome/common/translate/language_detection_details.h" |
68 #include "chrome/common/url_constants.h" | 67 #include "chrome/common/url_constants.h" |
69 #include "components/user_prefs/pref_registry_syncable.h" | 68 #include "components/user_prefs/pref_registry_syncable.h" |
70 #include "content/public/browser/navigation_controller.h" | 69 #include "content/public/browser/navigation_controller.h" |
71 #include "content/public/browser/navigation_entry.h" | 70 #include "content/public/browser/navigation_entry.h" |
72 #include "content/public/browser/notification_details.h" | 71 #include "content/public/browser/notification_details.h" |
73 #include "content/public/browser/notification_source.h" | 72 #include "content/public/browser/notification_source.h" |
74 #include "content/public/browser/render_process_host.h" | 73 #include "content/public/browser/render_process_host.h" |
75 #include "content/public/browser/render_view_host.h" | 74 #include "content/public/browser/render_view_host.h" |
76 #include "content/public/browser/render_widget_host_view.h" | 75 #include "content/public/browser/render_widget_host_view.h" |
77 #include "content/public/browser/web_contents.h" | 76 #include "content/public/browser/web_contents.h" |
78 #include "content/public/browser/web_contents_view.h" | 77 #include "content/public/browser/web_contents_view.h" |
79 #include "content/public/common/url_constants.h" | 78 #include "content/public/common/url_constants.h" |
80 #include "extensions/browser/file_reader.h" | 79 #include "extensions/browser/file_reader.h" |
81 #include "extensions/common/constants.h" | 80 #include "extensions/common/constants.h" |
82 #include "extensions/common/error_utils.h" | 81 #include "extensions/common/error_utils.h" |
| 82 #include "extensions/common/manifest_constants.h" |
83 #include "extensions/common/user_script.h" | 83 #include "extensions/common/user_script.h" |
84 #include "skia/ext/image_operations.h" | 84 #include "skia/ext/image_operations.h" |
85 #include "skia/ext/platform_canvas.h" | 85 #include "skia/ext/platform_canvas.h" |
86 #include "third_party/skia/include/core/SkBitmap.h" | 86 #include "third_party/skia/include/core/SkBitmap.h" |
87 #include "ui/base/models/list_selection_model.h" | 87 #include "ui/base/models/list_selection_model.h" |
88 #include "ui/base/ui_base_types.h" | 88 #include "ui/base/ui_base_types.h" |
89 #include "ui/gfx/codec/jpeg_codec.h" | 89 #include "ui/gfx/codec/jpeg_codec.h" |
90 #include "ui/gfx/codec/png_codec.h" | 90 #include "ui/gfx/codec/png_codec.h" |
91 | 91 |
92 #if defined(OS_WIN) | 92 #if defined(OS_WIN) |
(...skipping 11 matching lines...) Expand all Loading... |
104 using content::NavigationController; | 104 using content::NavigationController; |
105 using content::NavigationEntry; | 105 using content::NavigationEntry; |
106 using content::OpenURLParams; | 106 using content::OpenURLParams; |
107 using content::Referrer; | 107 using content::Referrer; |
108 using content::RenderViewHost; | 108 using content::RenderViewHost; |
109 using content::WebContents; | 109 using content::WebContents; |
110 | 110 |
111 namespace extensions { | 111 namespace extensions { |
112 | 112 |
113 namespace windows = api::windows; | 113 namespace windows = api::windows; |
114 namespace errors = extension_manifest_errors; | 114 namespace errors = manifest_errors; |
115 namespace keys = tabs_constants; | 115 namespace keys = tabs_constants; |
116 namespace tabs = api::tabs; | 116 namespace tabs = api::tabs; |
117 typedef tabs::CaptureVisibleTab::Params::Options FormatEnum; | 117 typedef tabs::CaptureVisibleTab::Params::Options FormatEnum; |
118 | 118 |
119 using api::tabs::InjectDetails; | 119 using api::tabs::InjectDetails; |
120 | 120 |
121 const int TabsCaptureVisibleTabFunction::kDefaultQuality = 90; | 121 const int TabsCaptureVisibleTabFunction::kDefaultQuality = 90; |
122 | 122 |
123 namespace { | 123 namespace { |
124 | 124 |
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 execute_tab_id_ = tab_id; | 1991 execute_tab_id_ = tab_id; |
1992 details_ = details.Pass(); | 1992 details_ = details.Pass(); |
1993 return true; | 1993 return true; |
1994 } | 1994 } |
1995 | 1995 |
1996 bool TabsInsertCSSFunction::ShouldInsertCSS() const { | 1996 bool TabsInsertCSSFunction::ShouldInsertCSS() const { |
1997 return true; | 1997 return true; |
1998 } | 1998 } |
1999 | 1999 |
2000 } // namespace extensions | 2000 } // namespace extensions |
OLD | NEW |