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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 870833002: [android] Autofill popup behavior fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update expectations of old test and add a new test. Created 5 years, 10 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 (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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1332 void WebContentsImpl::RenderWidgetGotFocus( 1332 void WebContentsImpl::RenderWidgetGotFocus(
1333 RenderWidgetHostImpl* render_widget_host) { 1333 RenderWidgetHostImpl* render_widget_host) {
1334 // Notify the delegate if an embedded fullscreen widget was focused. 1334 // Notify the delegate if an embedded fullscreen widget was focused.
1335 if (delegate_ && render_widget_host && 1335 if (delegate_ && render_widget_host &&
1336 delegate_->EmbedsFullscreenWidget() && 1336 delegate_->EmbedsFullscreenWidget() &&
1337 render_widget_host->GetView() == GetFullscreenRenderWidgetHostView()) 1337 render_widget_host->GetView() == GetFullscreenRenderWidgetHostView())
1338 delegate_->WebContentsFocused(this); 1338 delegate_->WebContentsFocused(this);
1339 } 1339 }
1340 1340
1341 void WebContentsImpl::RenderWidgetWasResized( 1341 void WebContentsImpl::RenderWidgetWasResized(
1342 RenderWidgetHostImpl* render_widget_host) { 1342 RenderWidgetHostImpl* render_widget_host,
1343 bool width_changed) {
1343 RenderFrameHostImpl* rfh = static_cast<RenderFrameHostImpl*>(GetMainFrame()); 1344 RenderFrameHostImpl* rfh = static_cast<RenderFrameHostImpl*>(GetMainFrame());
1344 if (!rfh || render_widget_host != rfh->GetRenderWidgetHost()) 1345 if (!rfh || render_widget_host != rfh->GetRenderWidgetHost())
1345 return; 1346 return;
1346 1347
1347 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MainFrameWasResized()); 1348 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
1349 MainFrameWasResized(width_changed));
1348 } 1350 }
1349 1351
1350 bool WebContentsImpl::PreHandleKeyboardEvent( 1352 bool WebContentsImpl::PreHandleKeyboardEvent(
1351 const NativeWebKeyboardEvent& event, 1353 const NativeWebKeyboardEvent& event,
1352 bool* is_keyboard_shortcut) { 1354 bool* is_keyboard_shortcut) {
1353 return delegate_ && 1355 return delegate_ &&
1354 delegate_->PreHandleKeyboardEvent(this, event, is_keyboard_shortcut); 1356 delegate_->PreHandleKeyboardEvent(this, event, is_keyboard_shortcut);
1355 } 1357 }
1356 1358
1357 void WebContentsImpl::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { 1359 void WebContentsImpl::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
(...skipping 3092 matching lines...) Expand 10 before | Expand all | Expand 10 after
4450 node->render_manager()->ResumeResponseDeferredAtStart(); 4452 node->render_manager()->ResumeResponseDeferredAtStart();
4451 } 4453 }
4452 4454
4453 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4455 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4454 force_disable_overscroll_content_ = force_disable; 4456 force_disable_overscroll_content_ = force_disable;
4455 if (view_) 4457 if (view_)
4456 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4458 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4457 } 4459 }
4458 4460
4459 } // namespace content 4461 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698