Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 using blink::WebURLResponse; 294 using blink::WebURLResponse;
295 using blink::WebUserGestureIndicator; 295 using blink::WebUserGestureIndicator;
296 using blink::WebVector; 296 using blink::WebVector;
297 using blink::WebView; 297 using blink::WebView;
298 298
299 #if defined(OS_ANDROID) 299 #if defined(OS_ANDROID)
300 using blink::WebFloatPoint; 300 using blink::WebFloatPoint;
301 using blink::WebFloatRect; 301 using blink::WebFloatRect;
302 #endif 302 #endif
303 303
304 #define STATIC_ASSERT_ENUM(a, b) \ 304 #define STATIC_ASSERT_RENDER_ENUM(a, b) \
305 static_assert(static_cast<int>(a) == static_cast<int>(b), \ 305 static_assert(static_cast<int>(a) == static_cast<int>(b), \
306 "mismatching enums: " #a) 306 "mismatching enums: " #a)
307 307
308 namespace content { 308 namespace content {
309 309
310 namespace { 310 namespace {
311 311
312 const int kExtraCharsBeforeAndAfterSelection = 100; 312 const int kExtraCharsBeforeAndAfterSelection = 100;
313 313
314 typedef std::map<int, RenderFrameImpl*> RoutingIDFrameMap; 314 typedef std::map<int, RenderFrameImpl*> RoutingIDFrameMap;
(...skipping 5370 matching lines...) Expand 10 before | Expand all | Expand 10 after
5685 frame_->RequestFind(request_id, WebString::FromUTF16(search_text), options); 5685 frame_->RequestFind(request_id, WebString::FromUTF16(search_text), options);
5686 } 5686 }
5687 5687
5688 void RenderFrameImpl::OnClearActiveFindMatch() { 5688 void RenderFrameImpl::OnClearActiveFindMatch() {
5689 frame_->ExecuteCommand(WebString::FromUTF8("CollapseSelection")); 5689 frame_->ExecuteCommand(WebString::FromUTF8("CollapseSelection"));
5690 frame_->ClearActiveFindMatch(); 5690 frame_->ClearActiveFindMatch();
5691 } 5691 }
5692 5692
5693 // Ensure that content::StopFindAction and blink::WebLocalFrame::StopFindAction 5693 // Ensure that content::StopFindAction and blink::WebLocalFrame::StopFindAction
5694 // are kept in sync. 5694 // are kept in sync.
5695 STATIC_ASSERT_ENUM(STOP_FIND_ACTION_CLEAR_SELECTION, 5695 STATIC_ASSERT_RENDER_ENUM(STOP_FIND_ACTION_CLEAR_SELECTION,
5696 WebLocalFrame::kStopFindActionClearSelection); 5696 WebLocalFrame::kStopFindActionClearSelection);
5697 STATIC_ASSERT_ENUM(STOP_FIND_ACTION_KEEP_SELECTION, 5697 STATIC_ASSERT_RENDER_ENUM(STOP_FIND_ACTION_KEEP_SELECTION,
5698 WebLocalFrame::kStopFindActionKeepSelection); 5698 WebLocalFrame::kStopFindActionKeepSelection);
5699 STATIC_ASSERT_ENUM(STOP_FIND_ACTION_ACTIVATE_SELECTION, 5699 STATIC_ASSERT_RENDER_ENUM(STOP_FIND_ACTION_ACTIVATE_SELECTION,
5700 WebLocalFrame::kStopFindActionActivateSelection); 5700 WebLocalFrame::kStopFindActionActivateSelection);
5701 5701
5702 void RenderFrameImpl::OnStopFinding(StopFindAction action) { 5702 void RenderFrameImpl::OnStopFinding(StopFindAction action) {
5703 blink::WebPlugin* plugin = GetWebPluginForFind(); 5703 blink::WebPlugin* plugin = GetWebPluginForFind();
5704 if (plugin) { 5704 if (plugin) {
5705 plugin->StopFind(); 5705 plugin->StopFind();
5706 return; 5706 return;
5707 } 5707 }
5708 5708
5709 frame_->StopFinding(static_cast<WebLocalFrame::StopFindAction>(action)); 5709 frame_->StopFinding(static_cast<WebLocalFrame::StopFindAction>(action));
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
6910 replaces_current_history_item(info.replaces_current_history_item), 6910 replaces_current_history_item(info.replaces_current_history_item),
6911 history_navigation_in_new_child_frame( 6911 history_navigation_in_new_child_frame(
6912 info.is_history_navigation_in_new_child_frame), 6912 info.is_history_navigation_in_new_child_frame),
6913 client_redirect(info.is_client_redirect), 6913 client_redirect(info.is_client_redirect),
6914 triggering_event_info(info.triggering_event_info), 6914 triggering_event_info(info.triggering_event_info),
6915 cache_disabled(info.is_cache_disabled), 6915 cache_disabled(info.is_cache_disabled),
6916 form(info.form), 6916 form(info.form),
6917 source_location(info.source_location) {} 6917 source_location(info.source_location) {}
6918 6918
6919 } // namespace content 6919 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_video_encoder_host.cc ('k') | content/renderer/render_frame_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698