| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/gfx/native_widget_types.h" | 10 #include "base/gfx/native_widget_types.h" |
| 11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 } | 631 } |
| 632 | 632 |
| 633 bool RenderViewHost::CanBlur() const { | 633 bool RenderViewHost::CanBlur() const { |
| 634 return delegate_->CanBlur(); | 634 return delegate_->CanBlur(); |
| 635 } | 635 } |
| 636 | 636 |
| 637 void RenderViewHost::SetInitialFocus(bool reverse) { | 637 void RenderViewHost::SetInitialFocus(bool reverse) { |
| 638 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); | 638 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); |
| 639 } | 639 } |
| 640 | 640 |
| 641 void RenderViewHost::ClearFocusedNode() { |
| 642 Send(new ViewMsg_ClearFocusedNode(routing_id())); |
| 643 } |
| 644 |
| 641 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) { | 645 void RenderViewHost::UpdateWebPreferences(const WebPreferences& prefs) { |
| 642 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs)); | 646 Send(new ViewMsg_UpdateWebPreferences(routing_id(), prefs)); |
| 643 } | 647 } |
| 644 | 648 |
| 645 void RenderViewHost::InstallMissingPlugin() { | 649 void RenderViewHost::InstallMissingPlugin() { |
| 646 Send(new ViewMsg_InstallMissingPlugin(routing_id())); | 650 Send(new ViewMsg_InstallMissingPlugin(routing_id())); |
| 647 } | 651 } |
| 648 | 652 |
| 649 void RenderViewHost::FileSelected(const FilePath& path) { | 653 void RenderViewHost::FileSelected(const FilePath& path) { |
| 650 RendererSecurityPolicy::GetInstance()->GrantUploadFile(process()->pid(), | 654 RendererSecurityPolicy::GetInstance()->GrantUploadFile(process()->pid(), |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 int callback_id) { | 1396 int callback_id) { |
| 1393 // TODO(aa): Here is where we can check that this renderer was supposed to be | 1397 // TODO(aa): Here is where we can check that this renderer was supposed to be |
| 1394 // able to call extension APIs. | 1398 // able to call extension APIs. |
| 1395 extension_function_dispatcher_.HandleRequest(name, args, callback_id); | 1399 extension_function_dispatcher_.HandleRequest(name, args, callback_id); |
| 1396 } | 1400 } |
| 1397 | 1401 |
| 1398 void RenderViewHost::SendExtensionResponse(int callback_id, | 1402 void RenderViewHost::SendExtensionResponse(int callback_id, |
| 1399 const std::string& response) { | 1403 const std::string& response) { |
| 1400 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response)); | 1404 Send(new ViewMsg_ExtensionResponse(routing_id(), callback_id, response)); |
| 1401 } | 1405 } |
| OLD | NEW |