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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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/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 "base/android/build_info.h" 9 #include "base/android/build_info.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "third_party/skia/include/core/SkCanvas.h" 71 #include "third_party/skia/include/core/SkCanvas.h"
72 #include "ui/base/android/window_android.h" 72 #include "ui/base/android/window_android.h"
73 #include "ui/base/android/window_android_compositor.h" 73 #include "ui/base/android/window_android_compositor.h"
74 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 74 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
75 #include "ui/events/gesture_detection/motion_event.h" 75 #include "ui/events/gesture_detection/motion_event.h"
76 #include "ui/gfx/android/device_display_info.h" 76 #include "ui/gfx/android/device_display_info.h"
77 #include "ui/gfx/android/java_bitmap.h" 77 #include "ui/gfx/android/java_bitmap.h"
78 #include "ui/gfx/android/view_configuration.h" 78 #include "ui/gfx/android/view_configuration.h"
79 #include "ui/gfx/display.h" 79 #include "ui/gfx/display.h"
80 #include "ui/gfx/geometry/dip_util.h" 80 #include "ui/gfx/geometry/dip_util.h"
81 #include "ui/gfx/geometry/size_conversions.h"
81 #include "ui/gfx/screen.h" 82 #include "ui/gfx/screen.h"
82 #include "ui/gfx/size_conversions.h"
83 #include "ui/touch_selection/touch_selection_controller.h" 83 #include "ui/touch_selection/touch_selection_controller.h"
84 84
85 namespace content { 85 namespace content {
86 86
87 namespace { 87 namespace {
88 88
89 const int kUndefinedOutputSurfaceId = -1; 89 const int kUndefinedOutputSurfaceId = -1;
90 90
91 // Used to accomodate finite precision when comparing scaled viewport and 91 // Used to accomodate finite precision when comparing scaled viewport and
92 // content widths. While this value may seem large, width=device-width on an N7 92 // content widths. While this value may seem large, width=device-width on an N7
(...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after
1922 results->orientationAngle = display.RotationAsDegree(); 1922 results->orientationAngle = display.RotationAsDegree();
1923 results->orientationType = 1923 results->orientationType =
1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1924 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1925 gfx::DeviceDisplayInfo info; 1925 gfx::DeviceDisplayInfo info;
1926 results->depth = info.GetBitsPerPixel(); 1926 results->depth = info.GetBitsPerPixel();
1927 results->depthPerComponent = info.GetBitsPerComponent(); 1927 results->depthPerComponent = info.GetBitsPerComponent();
1928 results->isMonochrome = (results->depthPerComponent == 0); 1928 results->isMonochrome = (results->depthPerComponent == 0);
1929 } 1929 }
1930 1930
1931 } // namespace content 1931 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698