forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://chromium.googlesource.com/chromium/src…
… into master.lion
- Loading branch information
Showing
278 changed files
with
4,531 additions
and
2,346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.20200831.3.1 | ||
0.20200901.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.20200831.3.1 | ||
0.20200901.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...t/java/src/org/chromium/chrome/browser/autofill_assistant/AssistantBottomBarDelegate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2020 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.autofill_assistant; | ||
|
||
/** Common interface for the bottom bar delegate. */ | ||
public interface AssistantBottomBarDelegate { | ||
/** The back button has been pressed. */ | ||
boolean onBackButtonPressed(); | ||
} |
44 changes: 44 additions & 0 deletions
44
.../src/org/chromium/chrome/browser/autofill_assistant/AssistantBottomBarNativeDelegate.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// Copyright 2020 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.autofill_assistant; | ||
|
||
import org.chromium.base.annotations.CalledByNative; | ||
import org.chromium.base.annotations.JNINamespace; | ||
import org.chromium.base.annotations.NativeMethods; | ||
|
||
/** Delegate for the bottom bar which forwards events to a native counterpart. */ | ||
@JNINamespace("autofill_assistant") | ||
public class AssistantBottomBarNativeDelegate implements AssistantBottomBarDelegate { | ||
private long mNativeAssistantBottomBarDelegate; | ||
|
||
@CalledByNative | ||
private static AssistantBottomBarNativeDelegate create(long nativeAssistantBottomBarDelegate) { | ||
return new AssistantBottomBarNativeDelegate(nativeAssistantBottomBarDelegate); | ||
} | ||
|
||
private AssistantBottomBarNativeDelegate(long nativeAssistantBottomBarDelegate) { | ||
mNativeAssistantBottomBarDelegate = nativeAssistantBottomBarDelegate; | ||
} | ||
|
||
@Override | ||
public boolean onBackButtonPressed() { | ||
if (mNativeAssistantBottomBarDelegate != 0) { | ||
return AssistantBottomBarNativeDelegateJni.get().onBackButtonClicked( | ||
mNativeAssistantBottomBarDelegate, AssistantBottomBarNativeDelegate.this); | ||
} | ||
return false; | ||
} | ||
|
||
@CalledByNative | ||
private void clearNativePtr() { | ||
mNativeAssistantBottomBarDelegate = 0; | ||
} | ||
|
||
@NativeMethods | ||
interface Natives { | ||
boolean onBackButtonClicked( | ||
long nativeAssistantBottomBarDelegate, AssistantBottomBarNativeDelegate caller); | ||
} | ||
} |
Oops, something went wrong.