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

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

Issue 2842693005: Store physical backing size in ViewAndroid (Closed)
Patch Set: no UpdateLayerBounds Created 3 years, 7 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_view_android.h" 5 #include "content/browser/web_contents/web_contents_view_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 web_contents_->GetRenderWidgetHostView()->Focus(); 394 web_contents_->GetRenderWidgetHostView()->Focus();
395 } 395 }
396 396
397 bool WebContentsViewAndroid::OnTouchEvent(const ui::MotionEventAndroid& event, 397 bool WebContentsViewAndroid::OnTouchEvent(const ui::MotionEventAndroid& event,
398 bool for_touch_handle) { 398 bool for_touch_handle) {
399 if (event.GetAction() == ui::MotionEventAndroid::ACTION_DOWN) 399 if (event.GetAction() == ui::MotionEventAndroid::ACTION_DOWN)
400 content_view_core_->OnTouchDown(event.GetJavaObject()); 400 content_view_core_->OnTouchDown(event.GetJavaObject());
401 return false; // let the children handle the actual event. 401 return false; // let the children handle the actual event.
402 } 402 }
403 403
404 void WebContentsViewAndroid::OnPhysicalBackingSizeChanged() {
405 if (web_contents_->GetRenderWidgetHostView())
406 web_contents_->SendScreenRects();
407 }
408
404 } // namespace content 409 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698