| OLD | NEW |
| 1 // Copyright (c) 2009 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3290 | 3290 |
| 3291 SetBackground(background); | 3291 SetBackground(background); |
| 3292 } | 3292 } |
| 3293 | 3293 |
| 3294 void RenderView::OnSetActive(bool active) { | 3294 void RenderView::OnSetActive(bool active) { |
| 3295 if (webview()) | 3295 if (webview()) |
| 3296 webview()->setIsActive(active); | 3296 webview()->setIsActive(active); |
| 3297 } | 3297 } |
| 3298 | 3298 |
| 3299 void RenderView::SendExtensionRequest(const std::string& name, | 3299 void RenderView::SendExtensionRequest(const std::string& name, |
| 3300 const std::string& args, | 3300 const ListValue& args, |
| 3301 int request_id, | 3301 int request_id, |
| 3302 bool has_callback) { | 3302 bool has_callback) { |
| 3303 Send(new ViewHostMsg_ExtensionRequest(routing_id_, name, args, request_id, | 3303 Send(new ViewHostMsg_ExtensionRequest(routing_id_, name, args, request_id, |
| 3304 has_callback)); | 3304 has_callback)); |
| 3305 } | 3305 } |
| 3306 | 3306 |
| 3307 void RenderView::OnExtensionResponse(int request_id, | 3307 void RenderView::OnExtensionResponse(int request_id, |
| 3308 bool success, | 3308 bool success, |
| 3309 const std::string& response, | 3309 const std::string& response, |
| 3310 const std::string& error) { | 3310 const std::string& error) { |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3624 new PluginMsg_SignalModalDialogEvent(host_window_)); | 3624 new PluginMsg_SignalModalDialogEvent(host_window_)); |
| 3625 | 3625 |
| 3626 message->EnableMessagePumping(); // Runs a nested message loop. | 3626 message->EnableMessagePumping(); // Runs a nested message loop. |
| 3627 bool rv = Send(message); | 3627 bool rv = Send(message); |
| 3628 | 3628 |
| 3629 PluginChannelHost::Broadcast( | 3629 PluginChannelHost::Broadcast( |
| 3630 new PluginMsg_ResetModalDialogEvent(host_window_)); | 3630 new PluginMsg_ResetModalDialogEvent(host_window_)); |
| 3631 | 3631 |
| 3632 return rv; | 3632 return rv; |
| 3633 } | 3633 } |
| OLD | NEW |