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

Side by Side Diff: ui/gfx/android/shared_device_display_info.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « ui/gfx/android/java_bitmap.cc ('k') | ui/gfx/android/view_configuration.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ui/gfx/android/shared_device_display_info.h" 5 #include "ui/gfx/android/shared_device_display_info.h"
6 6
7 #include "base/android/context_utils.h" 7 #include "base/android/context_utils.h"
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "jni/DeviceDisplayInfo_jni.h" 11 #include "jni/DeviceDisplayInfo_jni.h"
12 12
13 using base::android::JavaParamRef;
14
13 namespace gfx { 15 namespace gfx {
14 16
15 // static JNI call 17 // static JNI call
16 static void UpdateSharedDeviceDisplayInfo(JNIEnv* env, 18 static void UpdateSharedDeviceDisplayInfo(JNIEnv* env,
17 const JavaParamRef<jobject>& obj, 19 const JavaParamRef<jobject>& obj,
18 jint display_height, 20 jint display_height,
19 jint display_width, 21 jint display_width,
20 jint physical_display_height, 22 jint physical_display_height,
21 jint physical_display_width, 23 jint physical_display_width,
22 jint bits_per_pixel, 24 jint bits_per_pixel,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 physical_display_height_ = static_cast<int>(physical_display_height); 157 physical_display_height_ = static_cast<int>(physical_display_height);
156 physical_display_width_ = static_cast<int>(physical_display_width); 158 physical_display_width_ = static_cast<int>(physical_display_width);
157 bits_per_pixel_ = static_cast<int>(bits_per_pixel); 159 bits_per_pixel_ = static_cast<int>(bits_per_pixel);
158 bits_per_component_ = static_cast<int>(bits_per_component); 160 bits_per_component_ = static_cast<int>(bits_per_component);
159 dip_scale_ = static_cast<double>(dip_scale); 161 dip_scale_ = static_cast<double>(dip_scale);
160 smallest_dip_width_ = static_cast<int>(smallest_dip_width); 162 smallest_dip_width_ = static_cast<int>(smallest_dip_width);
161 rotation_degrees_ = static_cast<int>(rotation_degrees); 163 rotation_degrees_ = static_cast<int>(rotation_degrees);
162 } 164 }
163 165
164 } // namespace gfx 166 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/android/java_bitmap.cc ('k') | ui/gfx/android/view_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698