-
Notifications
You must be signed in to change notification settings - Fork 887
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b04c1c
commit 4744d77
Showing
11 changed files
with
326 additions
and
317 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) 2022 The Brave Authors. All rights reserved. | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
// you can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
module brave_rewards.mojom; | ||
|
||
// Used by the WebUI page to bootstrap bidirectional communication. | ||
interface PanelHandlerFactory { | ||
// The WebUI calls this method when the page is first initialized. | ||
CreatePanelHandler(pending_receiver<PanelHandler> panel_handler, | ||
pending_remote<UIHandler> ui_handler); | ||
}; | ||
|
||
// Browser-side handler for requests from WebUI page. | ||
interface PanelHandler { | ||
// Notify the browser that the UI is ready to be shown. | ||
ShowUI(); | ||
|
||
// Notify the browser that the panel should be closed. | ||
CloseUI(); | ||
|
||
// Starts the Rewards services if necessary. | ||
StartRewards() => (); | ||
}; | ||
|
||
// WebUI-side handler for requests from the browser. | ||
// TODO(zenparsing): This name is not specific enough, if we add more mojo | ||
// WebUI interfaces. | ||
interface UIHandler { | ||
// Called when a browser component has requested that the Rewards panel be | ||
// displayed to the user. | ||
OnRewardsPanelRequested(string panel_args); | ||
}; |
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
33 changes: 0 additions & 33 deletions
33
components/brave_rewards/resources/rewards_panel/lib/bubble_events.ts
This file was deleted.
Oops, something went wrong.
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