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

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

Issue 1321463002: Cleanup comments and variable name in ShortcutHelper and AddToHomescreenDialogHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete comment Created 5 years, 3 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 | « chrome/android/javatests/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialogHelperTest.java ('k') | no next file » | 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 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
7 7
8 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "chrome/browser/android/shortcut_info.h" 10 #include "chrome/browser/android/shortcut_info.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 11 #include "third_party/skia/include/core/SkBitmap.h"
12 12
13 // ShortcutHelper is the C++ counterpart of org.chromium.chrome.browser's 13 // ShortcutHelper is the C++ counterpart of org.chromium.chrome.browser's
14 // ShortcutHelper in Java. The object is owned by the Java object. It is created 14 // ShortcutHelper in Java.
15 // from there via a JNI (Initialize) call and MUST BE DESTROYED via Destroy().
16 class ShortcutHelper { 15 class ShortcutHelper {
17 public: 16 public:
18 // Registers JNI hooks. 17 // Registers JNI hooks.
19 static bool RegisterShortcutHelper(JNIEnv* env); 18 static bool RegisterShortcutHelper(JNIEnv* env);
20 19
21 // Adds a shortcut to the launcher using a SkBitmap. 20 // Adds a shortcut to the launcher using a SkBitmap.
22 // Must be called on the IO thread. 21 // Must be called on the IO thread.
23 static void AddShortcutInBackgroundWithSkBitmap(const ShortcutInfo& info, 22 static void AddShortcutInBackgroundWithSkBitmap(const ShortcutInfo& info,
24 const SkBitmap& icon_bitmap); 23 const SkBitmap& icon_bitmap);
25 private: 24 private:
26 ShortcutHelper(); 25 ShortcutHelper();
27 26
28 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper); 27 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
29 }; 28 };
30 29
31 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_ 30 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/webapps/AddToHomescreenDialogHelperTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698