Switch global error menu icon to vectorized MD asset
[chromium-blink-merge.git] / chrome / browser / android / shortcut_helper.h
blob802c8b5dece7105d185a0401cf0535abec5fa448
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
6 #define CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_weak_ref.h"
10 #include "chrome/browser/android/shortcut_info.h"
11 #include "third_party/skia/include/core/SkBitmap.h"
13 // ShortcutHelper is the C++ counterpart of org.chromium.chrome.browser's
14 // ShortcutHelper in Java.
15 class ShortcutHelper {
16 public:
17 // Registers JNI hooks.
18 static bool RegisterShortcutHelper(JNIEnv* env);
20 // Adds a shortcut to the launcher using a SkBitmap.
21 // Must be called on the IO thread.
22 static void AddShortcutInBackgroundWithSkBitmap(const ShortcutInfo& info,
23 const SkBitmap& icon_bitmap);
24 private:
25 ShortcutHelper();
27 DISALLOW_COPY_AND_ASSIGN(ShortcutHelper);
30 #endif // CHROME_BROWSER_ANDROID_SHORTCUT_HELPER_H_