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

Side by Side Diff: chrome/browser/android/shortcut_helper.cc

Issue 1958523002: Make WebAPK naming consistent 1/2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 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 "chrome/browser/android/shortcut_helper.h" 5 #include "chrome/browser/android/shortcut_helper.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/context_utils.h" 9 #include "base/android/context_utils.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 env, 103 env,
104 base::android::GetApplicationContext(), 104 base::android::GetApplicationContext(),
105 java_webapp_id.obj(), 105 java_webapp_id.obj(),
106 java_url.obj(), 106 java_url.obj(),
107 java_scope.obj(), 107 java_scope.obj(),
108 java_user_title.obj(), 108 java_user_title.obj(),
109 java_name.obj(), 109 java_name.obj(),
110 java_short_name.obj(), 110 java_short_name.obj(),
111 java_bitmap.obj(), 111 java_bitmap.obj(),
112 is_webapp_capable, 112 is_webapp_capable,
113 info.is_web_apk, 113 info.is_webapk,
114 info.orientation, 114 info.orientation,
115 info.source, 115 info.source,
116 info.theme_color, 116 info.theme_color,
117 info.background_color, 117 info.background_color,
118 info.is_icon_generated, 118 info.is_icon_generated,
119 callback_pointer); 119 callback_pointer);
120 } 120 }
121 121
122 int ShortcutHelper::GetIdealHomescreenIconSizeInDp() { 122 int ShortcutHelper::GetIdealHomescreenIconSizeInDp() {
123 if (kIdealHomescreenIconSize == -1) 123 if (kIdealHomescreenIconSize == -1)
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 DCHECK(jsplash_image_callback); 231 DCHECK(jsplash_image_callback);
232 base::Closure* splash_image_callback = 232 base::Closure* splash_image_callback =
233 reinterpret_cast<base::Closure*>(jsplash_image_callback); 233 reinterpret_cast<base::Closure*>(jsplash_image_callback);
234 splash_image_callback->Run(); 234 splash_image_callback->Run();
235 delete splash_image_callback; 235 delete splash_image_callback;
236 } 236 }
237 237
238 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) { 238 bool ShortcutHelper::RegisterShortcutHelper(JNIEnv* env) {
239 return RegisterNativesImpl(env); 239 return RegisterNativesImpl(env);
240 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698