| 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.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "chrome/browser/ui/browser_commands.h" | 37 #include "chrome/browser/ui/browser_commands.h" |
| 38 #include "chrome/browser/ui/browser_finder.h" | 38 #include "chrome/browser/ui/browser_finder.h" |
| 39 #include "chrome/browser/ui/browser_list.h" | 39 #include "chrome/browser/ui/browser_list.h" |
| 40 #include "chrome/browser/ui/browser_navigator.h" | 40 #include "chrome/browser/ui/browser_navigator.h" |
| 41 #include "chrome/browser/ui/browser_window.h" | 41 #include "chrome/browser/ui/browser_window.h" |
| 42 #include "chrome/browser/ui/extensions/shell_window.h" | 42 #include "chrome/browser/ui/extensions/shell_window.h" |
| 43 #include "chrome/browser/ui/panels/panel_manager.h" | 43 #include "chrome/browser/ui/panels/panel_manager.h" |
| 44 #include "chrome/browser/ui/snapshot_tab_helper.h" | 44 #include "chrome/browser/ui/snapshot_tab_helper.h" |
| 45 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 45 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 46 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 46 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 47 #include "chrome/browser/ui/window_sizer.h" | 47 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
| 48 #include "chrome/browser/web_applications/web_app.h" | 48 #include "chrome/browser/web_applications/web_app.h" |
| 49 #include "chrome/common/chrome_notification_types.h" | 49 #include "chrome/common/chrome_notification_types.h" |
| 50 #include "chrome/common/chrome_switches.h" | 50 #include "chrome/common/chrome_switches.h" |
| 51 #include "chrome/common/extensions/api/windows.h" | 51 #include "chrome/common/extensions/api/windows.h" |
| 52 #include "chrome/common/extensions/extension.h" | 52 #include "chrome/common/extensions/extension.h" |
| 53 #include "chrome/common/extensions/extension_error_utils.h" | 53 #include "chrome/common/extensions/extension_error_utils.h" |
| 54 #include "chrome/common/extensions/extension_manifest_constants.h" | 54 #include "chrome/common/extensions/extension_manifest_constants.h" |
| 55 #include "chrome/common/extensions/extension_messages.h" | 55 #include "chrome/common/extensions/extension_messages.h" |
| 56 #include "chrome/common/extensions/user_script.h" | 56 #include "chrome/common/extensions/user_script.h" |
| 57 #include "chrome/common/pref_names.h" | 57 #include "chrome/common/pref_names.h" |
| (...skipping 1767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1825 // called for every API call the extension made. | 1825 // called for every API call the extension made. |
| 1826 GotLanguage(language); | 1826 GotLanguage(language); |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 void DetectTabLanguageFunction::GotLanguage(const std::string& language) { | 1829 void DetectTabLanguageFunction::GotLanguage(const std::string& language) { |
| 1830 result_.reset(Value::CreateStringValue(language.c_str())); | 1830 result_.reset(Value::CreateStringValue(language.c_str())); |
| 1831 SendResponse(true); | 1831 SendResponse(true); |
| 1832 | 1832 |
| 1833 Release(); // Balanced in Run() | 1833 Release(); // Balanced in Run() |
| 1834 } | 1834 } |
| OLD | NEW |