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 "chrome/browser/renderer_host/render_view_host.h" | 5 #include "chrome/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 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1759 } | 1759 } |
1760 | 1760 |
1761 void RenderViewHost::NotifyRendererResponsive() { | 1761 void RenderViewHost::NotifyRendererResponsive() { |
1762 delegate_->RendererResponsive(this); | 1762 delegate_->RendererResponsive(this); |
1763 } | 1763 } |
1764 | 1764 |
1765 void RenderViewHost::OnMsgFocusedNodeChanged() { | 1765 void RenderViewHost::OnMsgFocusedNodeChanged() { |
1766 delegate_->FocusedNodeChanged(); | 1766 delegate_->FocusedNodeChanged(); |
1767 } | 1767 } |
1768 | 1768 |
| 1769 void RenderViewHost::OnMsgFocus() { |
| 1770 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
| 1771 if (view) |
| 1772 view->Activate(); |
| 1773 } |
| 1774 |
| 1775 void RenderViewHost::OnMsgBlur() { |
| 1776 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
| 1777 if (view) |
| 1778 view->Deactivate(); |
| 1779 } |
| 1780 |
1769 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { | 1781 gfx::Rect RenderViewHost::GetRootWindowResizerRect() const { |
1770 return delegate_->GetRootWindowResizerRect(); | 1782 return delegate_->GetRootWindowResizerRect(); |
1771 } | 1783 } |
1772 | 1784 |
1773 void RenderViewHost::ForwardMouseEvent( | 1785 void RenderViewHost::ForwardMouseEvent( |
1774 const WebKit::WebMouseEvent& mouse_event) { | 1786 const WebKit::WebMouseEvent& mouse_event) { |
1775 | 1787 |
1776 // We make a copy of the mouse event because | 1788 // We make a copy of the mouse event because |
1777 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. | 1789 // RenderWidgetHost::ForwardMouseEvent will delete |mouse_event|. |
1778 WebKit::WebMouseEvent event_copy(mouse_event); | 1790 WebKit::WebMouseEvent event_copy(mouse_event); |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2008 RenderViewHostDelegate::ContentSettings* content_settings_delegate = | 2020 RenderViewHostDelegate::ContentSettings* content_settings_delegate = |
2009 delegate_->GetContentSettingsDelegate(); | 2021 delegate_->GetContentSettingsDelegate(); |
2010 if (content_settings_delegate) | 2022 if (content_settings_delegate) |
2011 content_settings_delegate->OnWebDatabaseAccessed( | 2023 content_settings_delegate->OnWebDatabaseAccessed( |
2012 url, name, display_name, estimated_size, blocked_by_policy); | 2024 url, name, display_name, estimated_size, blocked_by_policy); |
2013 } | 2025 } |
2014 | 2026 |
2015 void RenderViewHost::OnSetDisplayingPDFContent() { | 2027 void RenderViewHost::OnSetDisplayingPDFContent() { |
2016 delegate_->SetDisplayingPDFContent(); | 2028 delegate_->SetDisplayingPDFContent(); |
2017 } | 2029 } |
OLD | NEW |