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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 10669023: Start consolidating non-port specific code to ui/base/dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clenaup Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/common/view_messages.h » ('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) 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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "content/public/browser/notification_details.h" 45 #include "content/public/browser/notification_details.h"
46 #include "content/public/browser/notification_service.h" 46 #include "content/public/browser/notification_service.h"
47 #include "content/public/browser/notification_types.h" 47 #include "content/public/browser/notification_types.h"
48 #include "content/public/browser/render_view_host_observer.h" 48 #include "content/public/browser/render_view_host_observer.h"
49 #include "content/public/browser/user_metrics.h" 49 #include "content/public/browser/user_metrics.h"
50 #include "content/public/common/bindings_policy.h" 50 #include "content/public/common/bindings_policy.h"
51 #include "content/public/common/content_constants.h" 51 #include "content/public/common/content_constants.h"
52 #include "content/public/common/content_switches.h" 52 #include "content/public/common/content_switches.h"
53 #include "content/public/common/context_menu_params.h" 53 #include "content/public/common/context_menu_params.h"
54 #include "content/public/common/result_codes.h" 54 #include "content/public/common/result_codes.h"
55 #include "content/public/common/selected_file_info.h"
56 #include "content/public/common/url_constants.h" 55 #include "content/public/common/url_constants.h"
57 #include "net/base/net_util.h" 56 #include "net/base/net_util.h"
58 #include "net/url_request/url_request_context_getter.h" 57 #include "net/url_request/url_request_context_getter.h"
59 #include "third_party/skia/include/core/SkBitmap.h" 58 #include "third_party/skia/include/core/SkBitmap.h"
59 #include "ui/base/dialogs/selected_file_info.h"
60 #include "ui/gfx/native_widget_types.h" 60 #include "ui/gfx/native_widget_types.h"
61 #include "webkit/fileapi/isolated_context.h" 61 #include "webkit/fileapi/isolated_context.h"
62 #include "webkit/glue/webdropdata.h" 62 #include "webkit/glue/webdropdata.h"
63 63
64 #if defined(OS_WIN) 64 #if defined(OS_WIN)
65 #include "base/win/windows_version.h" 65 #include "base/win/windows_version.h"
66 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebScreenInfoFact ory.h" 66 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebScreenInfoFact ory.h"
67 #elif defined(OS_MACOSX) 67 #elif defined(OS_MACOSX)
68 #include "content/browser/renderer_host/popup_menu_helper_mac.h" 68 #include "content/browser/renderer_host/popup_menu_helper_mac.h"
69 #endif 69 #endif
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 void RenderViewHostImpl::LostMouseLock() { 763 void RenderViewHostImpl::LostMouseLock() {
764 RenderWidgetHostImpl::LostMouseLock(); 764 RenderWidgetHostImpl::LostMouseLock();
765 delegate_->LostMouseLock(); 765 delegate_->LostMouseLock();
766 } 766 }
767 767
768 void RenderViewHostImpl::SetInitialFocus(bool reverse) { 768 void RenderViewHostImpl::SetInitialFocus(bool reverse) {
769 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); 769 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse));
770 } 770 }
771 771
772 void RenderViewHostImpl::FilesSelectedInChooser( 772 void RenderViewHostImpl::FilesSelectedInChooser(
773 const std::vector<SelectedFileInfo>& files, 773 const std::vector<ui::SelectedFileInfo>& files,
774 int permissions) { 774 int permissions) {
775 // Grant the security access requested to the given files. 775 // Grant the security access requested to the given files.
776 for (size_t i = 0; i < files.size(); ++i) { 776 for (size_t i = 0; i < files.size(); ++i) {
777 const SelectedFileInfo& file = files[i]; 777 const ui::SelectedFileInfo& file = files[i];
778 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( 778 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile(
779 GetProcess()->GetID(), file.path, permissions); 779 GetProcess()->GetID(), file.path, permissions);
780 } 780 }
781 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files)); 781 Send(new ViewMsg_RunFileChooserResponse(GetRoutingID(), files));
782 } 782 }
783 783
784 void RenderViewHostImpl::DirectoryEnumerationFinished( 784 void RenderViewHostImpl::DirectoryEnumerationFinished(
785 int request_id, 785 int request_id,
786 const std::vector<FilePath>& files) { 786 const std::vector<FilePath>& files) {
787 // Grant the security access requested to the given files. 787 // Grant the security access requested to the given files.
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 // can cause navigations to be ignored in OnMsgNavigate. 1843 // can cause navigations to be ignored in OnMsgNavigate.
1844 is_waiting_for_beforeunload_ack_ = false; 1844 is_waiting_for_beforeunload_ack_ = false;
1845 is_waiting_for_unload_ack_ = false; 1845 is_waiting_for_unload_ack_ = false;
1846 } 1846 }
1847 1847
1848 void RenderViewHostImpl::ClearPowerSaveBlockers() { 1848 void RenderViewHostImpl::ClearPowerSaveBlockers() {
1849 STLDeleteValues(&power_save_blockers_); 1849 STLDeleteValues(&power_save_blockers_);
1850 } 1850 }
1851 1851
1852 } // namespace content 1852 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698