| 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 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2500 } | 2500 } |
| 2501 | 2501 |
| 2502 void RenderView::OnUpdateWebPreferences(const WebPreferences& prefs) { | 2502 void RenderView::OnUpdateWebPreferences(const WebPreferences& prefs) { |
| 2503 webview()->SetPreferences(prefs); | 2503 webview()->SetPreferences(prefs); |
| 2504 } | 2504 } |
| 2505 | 2505 |
| 2506 void RenderView::OnSetAltErrorPageURL(const GURL& url) { | 2506 void RenderView::OnSetAltErrorPageURL(const GURL& url) { |
| 2507 alternate_error_page_url_ = url; | 2507 alternate_error_page_url_ = url; |
| 2508 } | 2508 } |
| 2509 | 2509 |
| 2510 void RenderView::DidPaint() { | |
| 2511 PluginDelegateList::iterator it = plugin_delegates_.begin(); | |
| 2512 while (it != plugin_delegates_.end()) { | |
| 2513 (*it)->FlushGeometryUpdates(); | |
| 2514 ++it; | |
| 2515 } | |
| 2516 } | |
| 2517 | |
| 2518 void RenderView::OnInstallMissingPlugin() { | 2510 void RenderView::OnInstallMissingPlugin() { |
| 2519 // This could happen when the first default plugin is deleted. | 2511 // This could happen when the first default plugin is deleted. |
| 2520 if (first_default_plugin_ == NULL) | 2512 if (first_default_plugin_ == NULL) |
| 2521 return; | 2513 return; |
| 2522 first_default_plugin_->InstallMissingPlugin(); | 2514 first_default_plugin_->InstallMissingPlugin(); |
| 2523 } | 2515 } |
| 2524 | 2516 |
| 2525 void RenderView::OnFileChooserResponse( | 2517 void RenderView::OnFileChooserResponse( |
| 2526 const std::vector<FilePath>& file_names) { | 2518 const std::vector<FilePath>& file_names) { |
| 2527 // This could happen if we navigated to a different page before the user | 2519 // This could happen if we navigated to a different page before the user |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 // If id is valid, alert the browser side that an accessibility focus change | 2860 // If id is valid, alert the browser side that an accessibility focus change |
| 2869 // occurred. | 2861 // occurred. |
| 2870 if (acc_obj_id >= 0) | 2862 if (acc_obj_id >= 0) |
| 2871 Send(new ViewHostMsg_AccessibilityFocusChange(routing_id_, acc_obj_id)); | 2863 Send(new ViewHostMsg_AccessibilityFocusChange(routing_id_, acc_obj_id)); |
| 2872 | 2864 |
| 2873 #else // defined(OS_WIN) | 2865 #else // defined(OS_WIN) |
| 2874 // TODO(port): accessibility not yet implemented | 2866 // TODO(port): accessibility not yet implemented |
| 2875 NOTIMPLEMENTED(); | 2867 NOTIMPLEMENTED(); |
| 2876 #endif | 2868 #endif |
| 2877 } | 2869 } |
| OLD | NEW |