OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" | 5 #include "content/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 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 } | 536 } |
537 | 537 |
538 void RenderViewHost::SelectAll() { | 538 void RenderViewHost::SelectAll() { |
539 Send(new ViewMsg_SelectAll(routing_id())); | 539 Send(new ViewMsg_SelectAll(routing_id())); |
540 } | 540 } |
541 | 541 |
542 void RenderViewHost::ToggleSpellPanel(bool is_currently_visible) { | 542 void RenderViewHost::ToggleSpellPanel(bool is_currently_visible) { |
543 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); | 543 Send(new ViewMsg_ToggleSpellPanel(routing_id(), is_currently_visible)); |
544 } | 544 } |
545 | 545 |
546 int RenderViewHost::DownloadFavIcon(const GURL& url, int image_size) { | 546 int RenderViewHost::DownloadFavicon(const GURL& url, int image_size) { |
547 if (!url.is_valid()) { | 547 if (!url.is_valid()) { |
548 NOTREACHED(); | 548 NOTREACHED(); |
549 return 0; | 549 return 0; |
550 } | 550 } |
551 static int next_id = 1; | 551 static int next_id = 1; |
552 int id = next_id++; | 552 int id = next_id++; |
553 Send(new ViewMsg_DownloadFavIcon(routing_id(), id, url, image_size)); | 553 Send(new ViewMsg_DownloadFavicon(routing_id(), id, url, image_size)); |
554 return id; | 554 return id; |
555 } | 555 } |
556 | 556 |
557 void RenderViewHost::GetApplicationInfo(int32 page_id) { | 557 void RenderViewHost::GetApplicationInfo(int32 page_id) { |
558 Send(new ViewMsg_GetApplicationInfo(routing_id(), page_id)); | 558 Send(new ViewMsg_GetApplicationInfo(routing_id(), page_id)); |
559 } | 559 } |
560 | 560 |
561 void RenderViewHost::CaptureThumbnail() { | 561 void RenderViewHost::CaptureThumbnail() { |
562 Send(new ViewMsg_CaptureThumbnail(routing_id())); | 562 Send(new ViewMsg_CaptureThumbnail(routing_id())); |
563 } | 563 } |
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1688 LOG(DFATAL) << "Invalid checked state " << checked_state; |
1689 return; | 1689 return; |
1690 } | 1690 } |
1691 | 1691 |
1692 CommandState state; | 1692 CommandState state; |
1693 state.is_enabled = is_enabled; | 1693 state.is_enabled = is_enabled; |
1694 state.checked_state = | 1694 state.checked_state = |
1695 static_cast<RenderViewCommandCheckedState>(checked_state); | 1695 static_cast<RenderViewCommandCheckedState>(checked_state); |
1696 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1696 command_states_[static_cast<RenderViewCommand>(command)] = state; |
1697 } | 1697 } |
OLD | NEW |