| OLD | NEW |
| 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.h" | 5 #include "content/browser/renderer_host/render_view_host.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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 | 640 |
| 641 void RenderViewHost::LostMouseLock() { | 641 void RenderViewHost::LostMouseLock() { |
| 642 RenderWidgetHost::LostMouseLock(); | 642 RenderWidgetHost::LostMouseLock(); |
| 643 delegate_->LostMouseLock(); | 643 delegate_->LostMouseLock(); |
| 644 } | 644 } |
| 645 | 645 |
| 646 void RenderViewHost::SetInitialFocus(bool reverse) { | 646 void RenderViewHost::SetInitialFocus(bool reverse) { |
| 647 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); | 647 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); |
| 648 } | 648 } |
| 649 | 649 |
| 650 void RenderViewHost::DidChooseColorInColorChooser(int color_chooser_id, |
| 651 const SkColor& color) { |
| 652 Send(new ViewMsg_DidChooseColorResponse( |
| 653 routing_id(), color_chooser_id, color)); |
| 654 } |
| 655 |
| 656 void RenderViewHost::DidEndColorChooser(int color_chooser_id) { |
| 657 Send(new ViewMsg_DidEndColorChooser(routing_id(), color_chooser_id)); |
| 658 } |
| 659 |
| 650 void RenderViewHost::FilesSelectedInChooser( | 660 void RenderViewHost::FilesSelectedInChooser( |
| 651 const std::vector<FilePath>& files, | 661 const std::vector<FilePath>& files, |
| 652 int permissions) { | 662 int permissions) { |
| 653 // Grant the security access requested to the given files. | 663 // Grant the security access requested to the given files. |
| 654 for (std::vector<FilePath>::const_iterator file = files.begin(); | 664 for (std::vector<FilePath>::const_iterator file = files.begin(); |
| 655 file != files.end(); ++file) { | 665 file != files.end(); ++file) { |
| 656 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( | 666 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( |
| 657 process()->GetID(), *file, permissions); | 667 process()->GetID(), *file, permissions); |
| 658 } | 668 } |
| 659 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); | 669 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); |
| (...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 // Whenever we change swap out state, we should not be waiting for | 1600 // Whenever we change swap out state, we should not be waiting for |
| 1591 // beforeunload or unload acks. We clear them here to be safe, since they | 1601 // beforeunload or unload acks. We clear them here to be safe, since they |
| 1592 // can cause navigations to be ignored in OnMsgNavigate. | 1602 // can cause navigations to be ignored in OnMsgNavigate. |
| 1593 is_waiting_for_beforeunload_ack_ = false; | 1603 is_waiting_for_beforeunload_ack_ = false; |
| 1594 is_waiting_for_unload_ack_ = false; | 1604 is_waiting_for_unload_ack_ = false; |
| 1595 } | 1605 } |
| 1596 | 1606 |
| 1597 void RenderViewHost::ClearPowerSaveBlockers() { | 1607 void RenderViewHost::ClearPowerSaveBlockers() { |
| 1598 STLDeleteValues(&power_save_blockers_); | 1608 STLDeleteValues(&power_save_blockers_); |
| 1599 } | 1609 } |
| OLD | NEW |