| 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/extension_tabs_module.h" | 5 #include "chrome/browser/extensions/extension_tabs_module.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/base64.h" | 10 #include "base/base64.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "content/public/browser/web_contents_view.h" | 58 #include "content/public/browser/web_contents_view.h" |
| 59 #include "skia/ext/image_operations.h" | 59 #include "skia/ext/image_operations.h" |
| 60 #include "skia/ext/platform_canvas.h" | 60 #include "skia/ext/platform_canvas.h" |
| 61 #include "third_party/skia/include/core/SkBitmap.h" | 61 #include "third_party/skia/include/core/SkBitmap.h" |
| 62 #include "ui/gfx/codec/jpeg_codec.h" | 62 #include "ui/gfx/codec/jpeg_codec.h" |
| 63 #include "ui/gfx/codec/png_codec.h" | 63 #include "ui/gfx/codec/png_codec.h" |
| 64 | 64 |
| 65 #if defined(USE_AURA) | 65 #if defined(USE_AURA) |
| 66 #include "ash/ash_switches.h" | 66 #include "ash/ash_switches.h" |
| 67 #include "base/command_line.h" | 67 #include "base/command_line.h" |
| 68 #include "chrome/browser/ui/views/aura/panel_view_aura.h" | 68 #include "chrome/browser/ui/views/ash/panel_view_aura.h" |
| 69 #endif | 69 #endif |
| 70 | 70 |
| 71 namespace keys = extension_tabs_module_constants; | 71 namespace keys = extension_tabs_module_constants; |
| 72 namespace errors = extension_manifest_errors; | 72 namespace errors = extension_manifest_errors; |
| 73 | 73 |
| 74 using content::NavigationController; | 74 using content::NavigationController; |
| 75 using content::NavigationEntry; | 75 using content::NavigationEntry; |
| 76 using content::OpenURLParams; | 76 using content::OpenURLParams; |
| 77 using content::Referrer; | 77 using content::Referrer; |
| 78 using content::WebContents; | 78 using content::WebContents; |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1803 // called for every API call the extension made. | 1803 // called for every API call the extension made. |
| 1804 GotLanguage(language); | 1804 GotLanguage(language); |
| 1805 } | 1805 } |
| 1806 | 1806 |
| 1807 void DetectTabLanguageFunction::GotLanguage(const std::string& language) { | 1807 void DetectTabLanguageFunction::GotLanguage(const std::string& language) { |
| 1808 result_.reset(Value::CreateStringValue(language.c_str())); | 1808 result_.reset(Value::CreateStringValue(language.c_str())); |
| 1809 SendResponse(true); | 1809 SendResponse(true); |
| 1810 | 1810 |
| 1811 Release(); // Balanced in Run() | 1811 Release(); // Balanced in Run() |
| 1812 } | 1812 } |
| OLD | NEW |