| 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/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 "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 } | 551 } |
| 552 | 552 |
| 553 void RenderViewHost::Delete() { | 553 void RenderViewHost::Delete() { |
| 554 Send(new ViewMsg_Delete(routing_id())); | 554 Send(new ViewMsg_Delete(routing_id())); |
| 555 } | 555 } |
| 556 | 556 |
| 557 void RenderViewHost::SelectAll() { | 557 void RenderViewHost::SelectAll() { |
| 558 Send(new ViewMsg_SelectAll(routing_id())); | 558 Send(new ViewMsg_SelectAll(routing_id())); |
| 559 } | 559 } |
| 560 | 560 |
| 561 void RenderViewHost::ToggleSpellPanel(bool is_currently_visible) { |
| 562 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); |
| 563 } |
| 564 |
| 561 int RenderViewHost::DownloadFavIcon(const GURL& url, int image_size) { | 565 int RenderViewHost::DownloadFavIcon(const GURL& url, int image_size) { |
| 562 if (!url.is_valid()) { | 566 if (!url.is_valid()) { |
| 563 NOTREACHED(); | 567 NOTREACHED(); |
| 564 return 0; | 568 return 0; |
| 565 } | 569 } |
| 566 static int next_id = 1; | 570 static int next_id = 1; |
| 567 int id = next_id++; | 571 int id = next_id++; |
| 568 Send(new ViewMsg_DownloadFavIcon(routing_id(), id, url, image_size)); | 572 Send(new ViewMsg_DownloadFavIcon(routing_id(), id, url, image_size)); |
| 569 return id; | 573 return id; |
| 570 } | 574 } |
| (...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1656 } | 1660 } |
| 1657 | 1661 |
| 1658 void RenderViewHost::ResetModalDialogEvent() { | 1662 void RenderViewHost::ResetModalDialogEvent() { |
| 1659 if (--modal_dialog_count_ == 0) | 1663 if (--modal_dialog_count_ == 0) |
| 1660 modal_dialog_event_->Reset(); | 1664 modal_dialog_event_->Reset(); |
| 1661 } | 1665 } |
| 1662 | 1666 |
| 1663 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1667 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
| 1664 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1668 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
| 1665 } | 1669 } |
| OLD | NEW |