OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1531 #if defined(OS_MACOSX) | 1531 #if defined(OS_MACOSX) |
1532 void RenderViewHostImpl::DidSelectPopupMenuItem(int selected_index) { | 1532 void RenderViewHostImpl::DidSelectPopupMenuItem(int selected_index) { |
1533 Send(new ViewMsg_SelectPopupMenuItem(GetRoutingID(), selected_index)); | 1533 Send(new ViewMsg_SelectPopupMenuItem(GetRoutingID(), selected_index)); |
1534 } | 1534 } |
1535 | 1535 |
1536 void RenderViewHostImpl::DidCancelPopupMenu() { | 1536 void RenderViewHostImpl::DidCancelPopupMenu() { |
1537 Send(new ViewMsg_SelectPopupMenuItem(GetRoutingID(), -1)); | 1537 Send(new ViewMsg_SelectPopupMenuItem(GetRoutingID(), -1)); |
1538 } | 1538 } |
1539 #endif | 1539 #endif |
1540 | 1540 |
| 1541 void RenderViewHostImpl::SendOrientationChangeEvent(int orientation) { |
| 1542 Send(new ViewMsg_OrientationChangeEvent(GetRoutingID(), orientation)); |
| 1543 } |
| 1544 |
1541 void RenderViewHostImpl::ToggleSpeechInput() { | 1545 void RenderViewHostImpl::ToggleSpeechInput() { |
1542 Send(new InputTagSpeechMsg_ToggleSpeechInput(GetRoutingID())); | 1546 Send(new InputTagSpeechMsg_ToggleSpeechInput(GetRoutingID())); |
1543 } | 1547 } |
1544 | 1548 |
1545 void RenderViewHostImpl::FilterURL(ChildProcessSecurityPolicyImpl* policy, | 1549 void RenderViewHostImpl::FilterURL(ChildProcessSecurityPolicyImpl* policy, |
1546 int renderer_id, | 1550 int renderer_id, |
1547 bool empty_allowed, | 1551 bool empty_allowed, |
1548 GURL* url) { | 1552 GURL* url) { |
1549 if (empty_allowed && url->is_empty()) | 1553 if (empty_allowed && url->is_empty()) |
1550 return; | 1554 return; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1822 // can cause navigations to be ignored in OnMsgNavigate. | 1826 // can cause navigations to be ignored in OnMsgNavigate. |
1823 is_waiting_for_beforeunload_ack_ = false; | 1827 is_waiting_for_beforeunload_ack_ = false; |
1824 is_waiting_for_unload_ack_ = false; | 1828 is_waiting_for_unload_ack_ = false; |
1825 } | 1829 } |
1826 | 1830 |
1827 void RenderViewHostImpl::ClearPowerSaveBlockers() { | 1831 void RenderViewHostImpl::ClearPowerSaveBlockers() { |
1828 STLDeleteValues(&power_save_blockers_); | 1832 STLDeleteValues(&power_save_blockers_); |
1829 } | 1833 } |
1830 | 1834 |
1831 } // namespace content | 1835 } // namespace content |
OLD | NEW |