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

Side by Side Diff: chrome/renderer/pepper_plugin_delegate_impl.cc

Issue 3567012: Support removeRecursively and new copy/move behaviors for FileSystem API (Closed)
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | webkit/blob/deletable_file_reference.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <cmath> 5 #include <cmath>
6 6
7 #include "chrome/renderer/pepper_plugin_delegate_impl.h" 7 #include "chrome/renderer/pepper_plugin_delegate_impl.h"
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/surface/transport_dib.h" 10 #include "app/surface/transport_dib.h"
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 ChildThread::current()->file_system_dispatcher(); 704 ChildThread::current()->file_system_dispatcher();
705 return file_system_dispatcher->TouchFile(path, last_access_time, 705 return file_system_dispatcher->TouchFile(path, last_access_time,
706 last_modified_time, dispatcher); 706 last_modified_time, dispatcher);
707 } 707 }
708 708
709 bool PepperPluginDelegateImpl::Delete( 709 bool PepperPluginDelegateImpl::Delete(
710 const FilePath& path, 710 const FilePath& path,
711 fileapi::FileSystemCallbackDispatcher* dispatcher) { 711 fileapi::FileSystemCallbackDispatcher* dispatcher) {
712 FileSystemDispatcher* file_system_dispatcher = 712 FileSystemDispatcher* file_system_dispatcher =
713 ChildThread::current()->file_system_dispatcher(); 713 ChildThread::current()->file_system_dispatcher();
714 return file_system_dispatcher->Remove(path, dispatcher); 714 return file_system_dispatcher->Remove(path, false /* recursive */, dispatcher) ;
715 } 715 }
716 716
717 bool PepperPluginDelegateImpl::Rename( 717 bool PepperPluginDelegateImpl::Rename(
718 const FilePath& file_path, 718 const FilePath& file_path,
719 const FilePath& new_file_path, 719 const FilePath& new_file_path,
720 fileapi::FileSystemCallbackDispatcher* dispatcher) { 720 fileapi::FileSystemCallbackDispatcher* dispatcher) {
721 FileSystemDispatcher* file_system_dispatcher = 721 FileSystemDispatcher* file_system_dispatcher =
722 ChildThread::current()->file_system_dispatcher(); 722 ChildThread::current()->file_system_dispatcher();
723 return file_system_dispatcher->Move(file_path, new_file_path, dispatcher); 723 return file_system_dispatcher->Move(file_path, new_file_path, dispatcher);
724 } 724 }
(...skipping 14 matching lines...) Expand all
739 // encoding here rather than using the global default for the UI language. 739 // encoding here rather than using the global default for the UI language.
740 return l10n_util::GetStringUTF8(IDS_DEFAULT_ENCODING); 740 return l10n_util::GetStringUTF8(IDS_DEFAULT_ENCODING);
741 } 741 }
742 742
743 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor, 743 void PepperPluginDelegateImpl::ZoomLimitsChanged(double minimum_factor,
744 double maximum_factor) { 744 double maximum_factor) {
745 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor); 745 double minimum_level = WebView::zoomFactorToZoomLevel(minimum_factor);
746 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor); 746 double maximum_level = WebView::zoomFactorToZoomLevel(maximum_factor);
747 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level); 747 render_view_->webview()->zoomLimitsChanged(minimum_level, maximum_level);
748 } 748 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | webkit/blob/deletable_file_reference.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698