| 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/renderer_host/render_widget_host_view_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 StopObservingRootWindow(); | 1692 StopObservingRootWindow(); |
| 1693 | 1693 |
| 1694 bool resize = false; | 1694 bool resize = false; |
| 1695 if (content_view_core != content_view_core_) { | 1695 if (content_view_core != content_view_core_) { |
| 1696 overscroll_controller_.reset(); | 1696 overscroll_controller_.reset(); |
| 1697 selection_controller_.reset(); | 1697 selection_controller_.reset(); |
| 1698 ReleaseLocksOnSurface(); | 1698 ReleaseLocksOnSurface(); |
| 1699 resize = true; | 1699 resize = true; |
| 1700 if (content_view_core_) { | 1700 if (content_view_core_) { |
| 1701 content_view_core_->RemoveObserver(this); | 1701 content_view_core_->RemoveObserver(this); |
| 1702 content_view_core_->GetViewAndroid()->RemoveChild(&view_); | 1702 view_.RemoveFromParent(); |
| 1703 } | 1703 } |
| 1704 if (content_view_core) { | 1704 if (content_view_core) { |
| 1705 content_view_core->AddObserver(this); | 1705 content_view_core->AddObserver(this); |
| 1706 content_view_core->GetViewAndroid()->AddChild(&view_); | 1706 content_view_core->GetViewAndroid()->AddChild(&view_); |
| 1707 } | 1707 } |
| 1708 content_view_core_ = content_view_core; | 1708 content_view_core_ = content_view_core; |
| 1709 } | 1709 } |
| 1710 | 1710 |
| 1711 BrowserAccessibilityManager* manager = NULL; | 1711 BrowserAccessibilityManager* manager = NULL; |
| 1712 if (host_) | 1712 if (host_) |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1993 case ui::MotionEvent::ACTION_UP: | 1993 case ui::MotionEvent::ACTION_UP: |
| 1994 case ui::MotionEvent::ACTION_POINTER_UP: | 1994 case ui::MotionEvent::ACTION_POINTER_UP: |
| 1995 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", | 1995 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", |
| 1996 delta.InMicroseconds(), 1, 1000000, 50); | 1996 delta.InMicroseconds(), 1, 1000000, 50); |
| 1997 default: | 1997 default: |
| 1998 return; | 1998 return; |
| 1999 } | 1999 } |
| 2000 } | 2000 } |
| 2001 | 2001 |
| 2002 } // namespace content | 2002 } // namespace content |
| OLD | NEW |