Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: chrome/browser/dom_ui/dom_ui.cc

Issue 3119035: FBTF: Move individual XXXMsg_Params structs to a new file. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Fix comment Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/dom_ui/dom_ui.h" 5 #include "chrome/browser/dom_ui/dom_ui.h"
6 6
7 #include "base/i18n/rtl.h" 7 #include "base/i18n/rtl.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/browser_theme_provider.h" 13 #include "chrome/browser/browser_theme_provider.h"
14 #include "chrome/browser/profile.h" 14 #include "chrome/browser/profile.h"
15 #include "chrome/browser/renderer_host/render_view_host.h" 15 #include "chrome/browser/renderer_host/render_view_host.h"
16 #include "chrome/browser/tab_contents/tab_contents.h" 16 #include "chrome/browser/tab_contents/tab_contents.h"
17 #include "chrome/browser/tab_contents/tab_contents_view.h" 17 #include "chrome/browser/tab_contents/tab_contents_view.h"
18 #include "chrome/common/bindings_policy.h" 18 #include "chrome/common/bindings_policy.h"
19 #include "chrome/common/render_messages.h" 19 #include "chrome/common/render_messages.h"
20 #include "chrome/common/render_messages_params.h"
20 21
21 namespace { 22 namespace {
22 23
23 std::wstring GetJavascript(const std::wstring& function_name, 24 std::wstring GetJavascript(const std::wstring& function_name,
24 const std::vector<const Value*>& arg_list) { 25 const std::vector<const Value*>& arg_list) {
25 std::wstring parameters; 26 std::wstring parameters;
26 std::string json; 27 std::string json;
27 for (size_t i = 0; i < arg_list.size(); ++i) { 28 for (size_t i = 0; i < arg_list.size(); ++i) {
28 if (i > 0) 29 if (i > 0)
29 parameters += L","; 30 parameters += L",";
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 172 }
172 173
173 // TODO(viettrungluu): convert to string16 (or UTF-8 std::string?). 174 // TODO(viettrungluu): convert to string16 (or UTF-8 std::string?).
174 std::wstring DOMMessageHandler::ExtractStringValue(const ListValue* value) { 175 std::wstring DOMMessageHandler::ExtractStringValue(const ListValue* value) {
175 string16 string16_value; 176 string16 string16_value;
176 if (value->GetString(0, &string16_value)) 177 if (value->GetString(0, &string16_value))
177 return UTF16ToWideHack(string16_value); 178 return UTF16ToWideHack(string16_value);
178 NOTREACHED(); 179 NOTREACHED();
179 return std::wstring(); 180 return std::wstring();
180 } 181 }
OLDNEW
« no previous file with comments | « chrome/browser/device_orientation/dispatcher_host.cc ('k') | chrome/browser/extensions/extension_function_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698