| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 } | 628 } |
| 629 | 629 |
| 630 void RenderViewHost::GotFocus() { | 630 void RenderViewHost::GotFocus() { |
| 631 RenderWidgetHost::GotFocus(); // Notifies the renderer it got focus. | 631 RenderWidgetHost::GotFocus(); // Notifies the renderer it got focus. |
| 632 | 632 |
| 633 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 633 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
| 634 if (view) | 634 if (view) |
| 635 view->GotFocus(); | 635 view->GotFocus(); |
| 636 } | 636 } |
| 637 | 637 |
| 638 bool RenderViewHost::CanBlur() const { |
| 639 // TODO(brettw) is seems like this function is never implemented. It and the |
| 640 // messages leading here should be removed. |
| 641 return delegate_->CanBlur(); |
| 642 } |
| 643 |
| 638 void RenderViewHost::SetInitialFocus(bool reverse) { | 644 void RenderViewHost::SetInitialFocus(bool reverse) { |
| 639 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); | 645 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); |
| 640 } | 646 } |
| 641 | 647 |
| 642 void RenderViewHost::ClearFocusedNode() { | 648 void RenderViewHost::ClearFocusedNode() { |
| 643 Send(new ViewMsg_ClearFocusedNode(routing_id())); | 649 Send(new ViewMsg_ClearFocusedNode(routing_id())); |
| 644 } | 650 } |
| 645 | 651 |
| 646 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) { | 652 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) { |
| 647 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs)); | 653 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs)); |
| (...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1929 const string16& name, | 1935 const string16& name, |
| 1930 const string16& display_name, | 1936 const string16& display_name, |
| 1931 unsigned long estimated_size, | 1937 unsigned long estimated_size, |
| 1932 bool blocked_by_policy) { | 1938 bool blocked_by_policy) { |
| 1933 RenderViewHostDelegate::ContentSettings* content_settings_delegate = | 1939 RenderViewHostDelegate::ContentSettings* content_settings_delegate = |
| 1934 delegate_->GetContentSettingsDelegate(); | 1940 delegate_->GetContentSettingsDelegate(); |
| 1935 if (content_settings_delegate) | 1941 if (content_settings_delegate) |
| 1936 content_settings_delegate->OnWebDatabaseAccessed( | 1942 content_settings_delegate->OnWebDatabaseAccessed( |
| 1937 url, name, display_name, estimated_size, blocked_by_policy); | 1943 url, name, display_name, estimated_size, blocked_by_policy); |
| 1938 } | 1944 } |
| OLD | NEW |