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 <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 | 609 |
610 void RenderViewHost::LostMouseLock() { | 610 void RenderViewHost::LostMouseLock() { |
611 RenderWidgetHost::LostMouseLock(); | 611 RenderWidgetHost::LostMouseLock(); |
612 delegate_->LostMouseLock(); | 612 delegate_->LostMouseLock(); |
613 } | 613 } |
614 | 614 |
615 void RenderViewHost::SetInitialFocus(bool reverse) { | 615 void RenderViewHost::SetInitialFocus(bool reverse) { |
616 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); | 616 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); |
617 } | 617 } |
618 | 618 |
| 619 #if defined(ENABLE_INPUT_COLOR) |
| 620 void RenderViewHost::DidChooseColorInColorChooser(WebKit::WebColor color) { |
| 621 Send(new ViewMsg_DidChooseColorResponse(routing_id(), color)); |
| 622 } |
| 623 void RenderViewHost::DidDetachColorChooser() { |
| 624 Send(new ViewMsg_DidDetachColorChooser(routing_id())); |
| 625 } |
| 626 #endif // defined(ENABLE_INPUT_COLOR) |
| 627 |
619 void RenderViewHost::FilesSelectedInChooser( | 628 void RenderViewHost::FilesSelectedInChooser( |
620 const std::vector<FilePath>& files, | 629 const std::vector<FilePath>& files, |
621 int permissions) { | 630 int permissions) { |
622 // Grant the security access requested to the given files. | 631 // Grant the security access requested to the given files. |
623 for (std::vector<FilePath>::const_iterator file = files.begin(); | 632 for (std::vector<FilePath>::const_iterator file = files.begin(); |
624 file != files.end(); ++file) { | 633 file != files.end(); ++file) { |
625 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile( | 634 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile( |
626 process()->GetID(), *file, permissions); | 635 process()->GetID(), *file, permissions); |
627 } | 636 } |
628 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); | 637 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1538 | 1547 |
1539 void RenderViewHost::OnWebUISend(const GURL& source_url, | 1548 void RenderViewHost::OnWebUISend(const GURL& source_url, |
1540 const std::string& name, | 1549 const std::string& name, |
1541 const base::ListValue& args) { | 1550 const base::ListValue& args) { |
1542 delegate_->WebUISend(this, source_url, name, args); | 1551 delegate_->WebUISend(this, source_url, name, args); |
1543 } | 1552 } |
1544 | 1553 |
1545 void RenderViewHost::ClearPowerSaveBlockers() { | 1554 void RenderViewHost::ClearPowerSaveBlockers() { |
1546 STLDeleteValues(&power_save_blockers_); | 1555 STLDeleteValues(&power_save_blockers_); |
1547 } | 1556 } |
OLD | NEW |