OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |