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 2025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2036 } | 2036 } |
2037 | 2037 |
2038 void RenderViewHostImpl::Zoom(PageZoom zoom) { | 2038 void RenderViewHostImpl::Zoom(PageZoom zoom) { |
2039 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); | 2039 Send(new ViewMsg_Zoom(GetRoutingID(), zoom)); |
2040 } | 2040 } |
2041 | 2041 |
2042 void RenderViewHostImpl::ReloadFrame() { | 2042 void RenderViewHostImpl::ReloadFrame() { |
2043 Send(new ViewMsg_ReloadFrame(GetRoutingID())); | 2043 Send(new ViewMsg_ReloadFrame(GetRoutingID())); |
2044 } | 2044 } |
2045 | 2045 |
2046 void RenderViewHostImpl::Find(int request_id, | |
2047 const base::string16& search_text, | |
2048 const blink::WebFindOptions& options) { | |
2049 Send(new ViewMsg_Find(GetRoutingID(), request_id, search_text, options)); | |
2050 } | |
2051 | |
2052 void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath, | 2046 void RenderViewHostImpl::InsertCSS(const base::string16& frame_xpath, |
2053 const std::string& css) { | 2047 const std::string& css) { |
2054 Send(new ViewMsg_CSSInsertRequest(GetRoutingID(), frame_xpath, css)); | 2048 Send(new ViewMsg_CSSInsertRequest(GetRoutingID(), frame_xpath, css)); |
2055 } | 2049 } |
2056 | 2050 |
2057 void RenderViewHostImpl::DisableScrollbarsForThreshold(const gfx::Size& size) { | 2051 void RenderViewHostImpl::DisableScrollbarsForThreshold(const gfx::Size& size) { |
2058 Send(new ViewMsg_DisableScrollbarsForSmallWindows(GetRoutingID(), size)); | 2052 Send(new ViewMsg_DisableScrollbarsForSmallWindows(GetRoutingID(), size)); |
2059 } | 2053 } |
2060 | 2054 |
2061 void RenderViewHostImpl::EnablePreferredSizeMode() { | 2055 void RenderViewHostImpl::EnablePreferredSizeMode() { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2094 | 2088 |
2095 void RenderViewHostImpl::ExecutePluginActionAtLocation( | 2089 void RenderViewHostImpl::ExecutePluginActionAtLocation( |
2096 const gfx::Point& location, const blink::WebPluginAction& action) { | 2090 const gfx::Point& location, const blink::WebPluginAction& action) { |
2097 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); | 2091 Send(new ViewMsg_PluginActionAt(GetRoutingID(), location, action)); |
2098 } | 2092 } |
2099 | 2093 |
2100 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { | 2094 void RenderViewHostImpl::NotifyMoveOrResizeStarted() { |
2101 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); | 2095 Send(new ViewMsg_MoveOrResizeStarted(GetRoutingID())); |
2102 } | 2096 } |
2103 | 2097 |
2104 void RenderViewHostImpl::StopFinding(StopFindAction action) { | |
2105 Send(new ViewMsg_StopFinding(GetRoutingID(), action)); | |
2106 } | |
2107 | |
2108 void RenderViewHostImpl::OnAccessibilityEvents( | 2098 void RenderViewHostImpl::OnAccessibilityEvents( |
2109 const std::vector<AccessibilityHostMsg_EventParams>& params) { | 2099 const std::vector<AccessibilityHostMsg_EventParams>& params) { |
2110 if (view_ && !is_swapped_out_) { | 2100 if (view_ && !is_swapped_out_) { |
2111 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 2101 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
2112 BrowserAccessibilityManager* manager = | 2102 BrowserAccessibilityManager* manager = |
2113 view_->GetBrowserAccessibilityManager(); | 2103 view_->GetBrowserAccessibilityManager(); |
2114 if (manager) | 2104 if (manager) |
2115 manager->OnAccessibilityEvents(params); | 2105 manager->OnAccessibilityEvents(params); |
2116 } | 2106 } |
2117 | 2107 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2279 void RenderViewHostImpl::AttachToFrameTree() { | 2269 void RenderViewHostImpl::AttachToFrameTree() { |
2280 FrameTree* frame_tree = delegate_->GetFrameTree(); | 2270 FrameTree* frame_tree = delegate_->GetFrameTree(); |
2281 | 2271 |
2282 frame_tree->ResetForMainFrameSwap(); | 2272 frame_tree->ResetForMainFrameSwap(); |
2283 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { | 2273 if (main_frame_id() != FrameTreeNode::kInvalidFrameId) { |
2284 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); | 2274 frame_tree->OnFirstNavigationAfterSwap(main_frame_id()); |
2285 } | 2275 } |
2286 } | 2276 } |
2287 | 2277 |
2288 } // namespace content | 2278 } // namespace content |
OLD | NEW |