| 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 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 void RenderViewHostImpl::Zoom(PageZoom zoom) { | 1760 void RenderViewHostImpl::Zoom(PageZoom zoom) { |
| 1761 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); | 1761 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); |
| 1762 } | 1762 } |
| 1763 | 1763 |
| 1764 void RenderViewHostImpl::ReloadFrame() { | 1764 void RenderViewHostImpl::ReloadFrame() { |
| 1765 Send(new ViewMsg_ReloadFrame(GetRoutingID())); | 1765 Send(new ViewMsg_ReloadFrame(GetRoutingID())); |
| 1766 } | 1766 } |
| 1767 | 1767 |
| 1768 void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath, | |
| 1769 const std::string& css) { | |
| 1770 Send(new ViewMsg_CSSInsertRequest(GetRoutingID(), frame_xpath, css)); | |
| 1771 } | |
| 1772 | |
| 1773 void RenderViewHostImpl::DisableScrollbarsForThreshold(const gfx::Size& size) { | 1768 void RenderViewHostImpl::DisableScrollbarsForThreshold(const gfx::Size& size) { |
| 1774 Send(new ViewMsg_DisableScrollbarsForSmallWindows(GetRoutingID(), size)); | 1769 Send(new ViewMsg_DisableScrollbarsForSmallWindows(GetRoutingID(), size)); |
| 1775 } | 1770 } |
| 1776 | 1771 |
| 1777 void RenderViewHostImpl::EnablePreferredSizeMode() { | 1772 void RenderViewHostImpl::EnablePreferredSizeMode() { |
| 1778 Send(new ViewMsg_EnablePreferredSizeChangedMode(GetRoutingID())); | 1773 Send(new ViewMsg_EnablePreferredSizeChangedMode(GetRoutingID())); |
| 1779 } | 1774 } |
| 1780 | 1775 |
| 1781 void RenderViewHostImpl::EnableAutoResize(const gfx::Size& min_size, | 1776 void RenderViewHostImpl::EnableAutoResize(const gfx::Size& min_size, |
| 1782 const gfx::Size& max_size) { | 1777 const gfx::Size& max_size) { |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 return true; | 1968 return true; |
| 1974 } | 1969 } |
| 1975 | 1970 |
| 1976 void RenderViewHostImpl::AttachToFrameTree() { | 1971 void RenderViewHostImpl::AttachToFrameTree() { |
| 1977 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1972 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1978 | 1973 |
| 1979 frame_tree->ResetForMainFrameSwap(); | 1974 frame_tree->ResetForMainFrameSwap(); |
| 1980 } | 1975 } |
| 1981 | 1976 |
| 1982 } // namespace content | 1977 } // namespace content |
| OLD | NEW |