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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 2370393002: Extracting placeholder information from Webkit to Blimp (Closed)
Patch Set: Extracting info through RHVW Created 4 years, 1 month 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 (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_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 OnShowDisambiguationPopup) 489 OnShowDisambiguationPopup)
490 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged, 490 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionBoundsChanged,
491 OnSelectionBoundsChanged) 491 OnSelectionBoundsChanged)
492 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged, 492 IPC_MESSAGE_HANDLER(InputHostMsg_ImeCompositionRangeChanged,
493 OnImeCompositionRangeChanged) 493 OnImeCompositionRangeChanged)
494 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad, 494 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstPaintAfterLoad,
495 OnFirstPaintAfterLoad) 495 OnFirstPaintAfterLoad)
496 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto, 496 IPC_MESSAGE_HANDLER(ViewHostMsg_ForwardCompositorProto,
497 OnForwardCompositorProto) 497 OnForwardCompositorProto)
498 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames) 498 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames, OnSetNeedsBeginFrames)
499 IPC_MESSAGE_HANDLER(ViewHostMsg_SetFormTextInputInfo, OnTextInputInfoReply)
499 IPC_MESSAGE_UNHANDLED(handled = false) 500 IPC_MESSAGE_UNHANDLED(handled = false)
500 IPC_END_MESSAGE_MAP() 501 IPC_END_MESSAGE_MAP()
501 502
502 if (!handled && input_router_ && input_router_->OnMessageReceived(msg)) 503 if (!handled && input_router_ && input_router_->OnMessageReceived(msg))
503 return true; 504 return true;
504 505
505 if (!handled && view_ && view_->OnMessageReceived(msg)) 506 if (!handled && view_ && view_->OnMessageReceived(msg))
506 return true; 507 return true;
507 508
508 return handled; 509 return handled;
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1342
1342 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) { 1343 void RenderWidgetHostImpl::OnSetNeedsBeginFrames(bool needs_begin_frames) {
1343 if (needs_begin_frames_ == needs_begin_frames) 1344 if (needs_begin_frames_ == needs_begin_frames)
1344 return; 1345 return;
1345 1346
1346 needs_begin_frames_ = needs_begin_frames; 1347 needs_begin_frames_ = needs_begin_frames;
1347 if (view_) 1348 if (view_)
1348 view_->SetNeedsBeginFrames(needs_begin_frames); 1349 view_->SetNeedsBeginFrames(needs_begin_frames);
1349 } 1350 }
1350 1351
1352 void RenderWidgetHostImpl::OnTextInputInfoReply(
1353 int request_id,
1354 const std::string& text,
1355 const std::string& placeholder) {
1356 if (view_)
1357 view_->OnTextInputInfoReply(request_id, text, placeholder);
1358 }
1359
1351 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status, 1360 void RenderWidgetHostImpl::RendererExited(base::TerminationStatus status,
1352 int exit_code) { 1361 int exit_code) {
1353 if (!renderer_initialized_) 1362 if (!renderer_initialized_)
1354 return; 1363 return;
1355 1364
1356 // Clearing this flag causes us to re-create the renderer when recovering 1365 // Clearing this flag causes us to re-create the renderer when recovering
1357 // from a crashed renderer. 1366 // from a crashed renderer.
1358 renderer_initialized_ = false; 1367 renderer_initialized_ = false;
1359 1368
1360 waiting_for_screen_rects_ack_ = false; 1369 waiting_for_screen_rects_ack_ = false;
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
2222 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2231 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2223 } 2232 }
2224 2233
2225 BrowserAccessibilityManager* 2234 BrowserAccessibilityManager*
2226 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2235 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2227 return delegate_ ? 2236 return delegate_ ?
2228 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2237 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2229 } 2238 }
2230 2239
2231 } // namespace content 2240 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698