| 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 29 matching lines...) Expand all Loading... |
| 40 results->rect = display.bounds(); | 40 results->rect = display.bounds(); |
| 41 // TODO(husky): Remove any system controls from availableRect. | 41 // TODO(husky): Remove any system controls from availableRect. |
| 42 results->available_rect = display.work_area(); | 42 results->available_rect = display.work_area(); |
| 43 results->device_scale_factor = display.device_scale_factor(); | 43 results->device_scale_factor = display.device_scale_factor(); |
| 44 results->orientation_angle = display.RotationAsDegree(); | 44 results->orientation_angle = display.RotationAsDegree(); |
| 45 results->orientation_type = | 45 results->orientation_type = |
| 46 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 46 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
| 47 results->depth = display.color_depth(); | 47 results->depth = display.color_depth(); |
| 48 results->depth_per_component = display.depth_per_component(); | 48 results->depth_per_component = display.depth_per_component(); |
| 49 results->is_monochrome = display.is_monochrome(); | 49 results->is_monochrome = display.is_monochrome(); |
| 50 results->color_space = display.color_space(); |
| 50 } | 51 } |
| 51 } | 52 } |
| 52 | 53 |
| 53 // static | 54 // static |
| 54 void WebContentsView::GetDefaultScreenInfo(ScreenInfo* results) { | 55 void WebContentsView::GetDefaultScreenInfo(ScreenInfo* results) { |
| 55 DisplayToScreenInfo(display::Screen::GetScreen()->GetPrimaryDisplay(), | 56 DisplayToScreenInfo(display::Screen::GetScreen()->GetPrimaryDisplay(), |
| 56 results); | 57 results); |
| 57 } | 58 } |
| 58 | 59 |
| 59 // static | 60 // static |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 web_contents_->GetRootBrowserAccessibilityManager()); | 474 web_contents_->GetRootBrowserAccessibilityManager()); |
| 474 return manager && manager->OnHoverEvent(event); | 475 return manager && manager->OnHoverEvent(event); |
| 475 } | 476 } |
| 476 | 477 |
| 477 void WebContentsViewAndroid::OnPhysicalBackingSizeChanged() { | 478 void WebContentsViewAndroid::OnPhysicalBackingSizeChanged() { |
| 478 if (web_contents_->GetRenderWidgetHostView()) | 479 if (web_contents_->GetRenderWidgetHostView()) |
| 479 web_contents_->SendScreenRects(); | 480 web_contents_->SendScreenRects(); |
| 480 } | 481 } |
| 481 | 482 |
| 482 } // namespace content | 483 } // namespace content |
| OLD | NEW |