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/ui/webui/help/help_handler.h" | 5 #include "chrome/browser/ui/webui/help/help_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
24 #include "chrome/browser/ui/browser_commands.h" | 24 #include "chrome/browser/ui/browser_commands.h" |
25 #include "chrome/browser/ui/browser_finder.h" | 25 #include "chrome/browser/ui/browser_finder.h" |
26 #include "chrome/browser/ui/chrome_pages.h" | 26 #include "chrome/browser/ui/chrome_pages.h" |
27 #include "chrome/common/chrome_content_client.h" | 27 #include "chrome/common/chrome_content_client.h" |
28 #include "chrome/common/chrome_version_info.h" | 28 #include "chrome/common/chrome_version_info.h" |
29 #include "chrome/common/pref_names.h" | 29 #include "chrome/common/pref_names.h" |
30 #include "chrome/common/url_constants.h" | 30 #include "chrome/common/url_constants.h" |
31 #include "chrome/grit/chromium_strings.h" | 31 #include "chrome/grit/chromium_strings.h" |
32 #include "chrome/grit/generated_resources.h" | 32 #include "chrome/grit/generated_resources.h" |
33 #include "chrome/grit/google_chrome_strings.h" | |
34 #include "components/google/core/browser/google_util.h" | 33 #include "components/google/core/browser/google_util.h" |
35 #include "content/public/browser/browser_thread.h" | 34 #include "content/public/browser/browser_thread.h" |
36 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
37 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
38 #include "content/public/browser/web_ui.h" | 37 #include "content/public/browser/web_ui.h" |
39 #include "content/public/common/user_agent.h" | 38 #include "content/public/common/user_agent.h" |
40 #include "grit/components_strings.h" | 39 #include "grit/components_strings.h" |
41 #include "ui/base/l10n/l10n_util.h" | 40 #include "ui/base/l10n/l10n_util.h" |
42 #include "v8/include/v8.h" | 41 #include "v8/include/v8.h" |
43 | 42 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 } | 611 } |
613 | 612 |
614 void HelpHandler::OnFCCLabelTextRead(const std::string& text) { | 613 void HelpHandler::OnFCCLabelTextRead(const std::string& text) { |
615 // Remove unnecessary whitespace. | 614 // Remove unnecessary whitespace. |
616 web_ui()->CallJavascriptFunction( | 615 web_ui()->CallJavascriptFunction( |
617 "help.HelpPage.setProductLabelText", | 616 "help.HelpPage.setProductLabelText", |
618 base::StringValue(base::CollapseWhitespaceASCII(text, true))); | 617 base::StringValue(base::CollapseWhitespaceASCII(text, true))); |
619 } | 618 } |
620 | 619 |
621 #endif // defined(OS_CHROMEOS) | 620 #endif // defined(OS_CHROMEOS) |
OLD | NEW |