-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split wallpaper search from customize chrome handler
Creates a new Mojo interface for Wallpaper Search operations. And binds that interface in the browser process. Moves all Wallpaper Search related functions to the new Mojo interface. The rationale is to componentize the code and make it FastPath++ eligible. bug: b/308355145 Change-Id: I4299dc89f59b113bf6e84828c0a16bf80048f25d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4985579 Reviewed-by: John Lee <johntlee@chromium.org> Reviewed-by: Riley Tatum <rtatum@google.com> Commit-Queue: John Lee <johntlee@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Auto-Submit: Tibor Goldschwendt <tiborg@chromium.org> Reviewed-by: Alex Gough <ajgo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1217247}
- Loading branch information
Tibor Goldschwendt
authored and
Chromium LUCI CQ
committed
Oct 30, 2023
1 parent
95665af
commit 8001fcb
Showing
22 changed files
with
1,271 additions
and
1,021 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
19 changes: 19 additions & 0 deletions
19
.../browser/resources/side_panel/customize_chrome/wallpaper_search/wallpaper_search_proxy.ts
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,19 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import {WallpaperSearchHandler, WallpaperSearchHandlerInterface} from '../wallpaper_search.mojom-webui.js'; | ||
|
||
let handler: WallpaperSearchHandlerInterface|null = null; | ||
|
||
export class WallpaperSearchProxy { | ||
static getHandler(): WallpaperSearchHandlerInterface { | ||
return handler || (handler = WallpaperSearchHandler.getRemote()); | ||
} | ||
|
||
static setHandler(newHandler: WallpaperSearchHandlerInterface) { | ||
handler = newHandler; | ||
} | ||
|
||
private constructor() {} | ||
} |
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
Oops, something went wrong.