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

Side by Side Diff: chrome/renderer/extensions/file_browser_handler_custom_bindings.cc

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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/renderer/extensions/file_browser_handler_custom_bindings.h" 5 #include "chrome/renderer/extensions/file_browser_handler_custom_bindings.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 27 matching lines...) Expand all
38 *v8::String::Utf8Value(file_def->Get( 38 *v8::String::Utf8Value(file_def->Get(
39 v8::String::New("fileSystemName")))); 39 v8::String::New("fileSystemName"))));
40 std::string file_system_path( 40 std::string file_system_path(
41 *v8::String::Utf8Value(file_def->Get( 41 *v8::String::Utf8Value(file_def->Get(
42 v8::String::New("fileSystemRoot")))); 42 v8::String::New("fileSystemRoot"))));
43 std::string file_full_path( 43 std::string file_full_path(
44 *v8::String::Utf8Value(file_def->Get( 44 *v8::String::Utf8Value(file_def->Get(
45 v8::String::New("fileFullPath")))); 45 v8::String::New("fileFullPath"))));
46 bool is_directory = 46 bool is_directory =
47 file_def->Get(v8::String::New("fileIsDirectory"))->ToBoolean()->Value(); 47 file_def->Get(v8::String::New("fileIsDirectory"))->ToBoolean()->Value();
48 WebKit::WebFrame* webframe = 48 blink::WebFrame* webframe =
49 WebKit::WebFrame::frameForContext(context()->v8_context()); 49 blink::WebFrame::frameForContext(context()->v8_context());
50 args.GetReturnValue().Set(webframe->createFileEntry( 50 args.GetReturnValue().Set(webframe->createFileEntry(
51 WebKit::WebFileSystemTypeExternal, 51 blink::WebFileSystemTypeExternal,
52 WebKit::WebString::fromUTF8(file_system_name.c_str()), 52 blink::WebString::fromUTF8(file_system_name.c_str()),
53 WebKit::WebString::fromUTF8(file_system_path.c_str()), 53 blink::WebString::fromUTF8(file_system_path.c_str()),
54 WebKit::WebString::fromUTF8(file_full_path.c_str()), 54 blink::WebString::fromUTF8(file_full_path.c_str()),
55 is_directory)); 55 is_directory));
56 #endif 56 #endif
57 } 57 }
58 58
59 } // namespace extensions 59 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698