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_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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 GetProcess()->Shutdown(content::RESULT_CODE_KILLED, false); | 667 GetProcess()->Shutdown(content::RESULT_CODE_KILLED, false); |
668 } | 668 } |
669 } | 669 } |
670 | 670 |
671 void RenderViewHostImpl::RenderWidgetGotFocus() { | 671 void RenderViewHostImpl::RenderWidgetGotFocus() { |
672 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); | 672 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); |
673 if (view) | 673 if (view) |
674 view->GotFocus(); | 674 view->GotFocus(); |
675 } | 675 } |
676 | 676 |
| 677 void RenderViewHostImpl::RenderWidgetLostFocus() { |
| 678 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); |
| 679 if (view) |
| 680 view->LostFocus(); |
| 681 } |
| 682 |
677 void RenderViewHostImpl::SetInitialFocus(bool reverse) { | 683 void RenderViewHostImpl::SetInitialFocus(bool reverse) { |
678 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); | 684 Send(new ViewMsg_SetInitialFocus(GetRoutingID(), reverse)); |
679 } | 685 } |
680 | 686 |
681 void RenderViewHostImpl::DirectoryEnumerationFinished( | 687 void RenderViewHostImpl::DirectoryEnumerationFinished( |
682 int request_id, | 688 int request_id, |
683 const std::vector<base::FilePath>& files) { | 689 const std::vector<base::FilePath>& files) { |
684 // Grant the security access requested to the given files. | 690 // Grant the security access requested to the given files. |
685 for (std::vector<base::FilePath>::const_iterator file = files.begin(); | 691 for (std::vector<base::FilePath>::const_iterator file = files.begin(); |
686 file != files.end(); ++file) { | 692 file != files.end(); ++file) { |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 } | 967 } |
962 | 968 |
963 void RenderViewHostImpl::ClosePageTimeout() { | 969 void RenderViewHostImpl::ClosePageTimeout() { |
964 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) | 970 if (delegate_->ShouldIgnoreUnresponsiveRenderer()) |
965 return; | 971 return; |
966 | 972 |
967 ClosePageIgnoringUnloadEvents(); | 973 ClosePageIgnoringUnloadEvents(); |
968 } | 974 } |
969 | 975 |
970 } // namespace content | 976 } // namespace content |
OLD | NEW |