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/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 Loading... |
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 |
OLD | NEW |