Chromium Code Reviews| Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java |
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f408f2b67041d3796973706fb04603f24c0178fe |
| --- /dev/null |
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWebShareActivity.java |
| @@ -0,0 +1,30 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.chrome.browser.physicalweb; |
| + |
| +import android.os.Build; |
| + |
| +import org.chromium.chrome.browser.share.ShareActivity; |
| +import org.chromium.chrome.browser.tab.Tab; |
| + |
| +/** |
| + * A simple activity that allows Chrome to start the physical web sharing service. |
| + */ |
| +public class PhysicalWebShareActivity extends ShareActivity { |
| + |
| + private static final String TAG = "PhysicalWebShareActivity"; |
| + |
| + @Override |
| + protected void handleShareAction() { |
| + //TODO(iankc): implement sharing |
|
cco3
2017/02/04 00:11:23
space
iankc
2017/02/06 23:53:29
Done.
|
| + } |
| + |
| + @Override |
| + public boolean featureIsEnabled(Tab currentTab) { |
| + return PhysicalWeb.sharingIsEnabled() |
| + && Build.VERSION.SDK_INT >= Build.VERSION_CODES.M; |
| + } |
| + |
| +} |