Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
..
android 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
internal 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
proto 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
test 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
BUILD.gn 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
COMMON_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DEPS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
DIR_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
OWNERS 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
components_unittests.filter 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
logger.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
switches.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
switches.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_service_factory_helper.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_service_factory_helper.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_service_prefs.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_service_prefs.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago
tile_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 year ago

README.md

Query Tiles Service

Introduction

Query tiles is a new feature to bring down the barriers for NIU users and boost their confidence when using Chrome in Android. It encourages users to explore the internet by simply clicking on a few image tiles, and building a search query to find the information they want.

With this feature enabled, users will see a list of image tiles with the corresponding query strings shown on NTP(new tab page) and Omnibox suggestions. By clicking on those tiles, users will be directed to the search result page provided.

The client side will schedule fetch tasks from Google server periodically to update the latest data and images based on the user’s locale.

Code structure

components/query_tiles Public interfaces and data structure.

components/query_tiles/internal internal implementations.

components/query_tiles/proto Protobuf structure.

components/query_tiles/android UI related code.

chrome/browser/query_tiles include service factory and background task client code.

components/browser_ui/widget/image_tiles Generic widget representing image tiles carousel.

TileService - Public interface for query tile service.

TileServiceScheduer - Handles scheduling tasks to fetch tiles from the server.

TileManager - Store and dispense query tiles.

ImageTileCoordinator - UI widget representing the carousel.

TileProvider - Handles backend interaction from the Java layer

QueryTileSection - Query tiles widget on NTP.

QueryTileProvider - Provider for omnibox query tile suggestions.

Test and debug

Feature flags

In chrome://flags,

  • Disable Start surface

  • Enable Query tiles

  • Enable Query tiles in omnibox

  • Set Country code for getting tiles to IN or US

  • If you’d like to see the UI immediately, enable Query tile instant fetch, restart Chrome twice and wait for 10 seconds.

WebUI

Use chrome://internals/query-tiles to manually tune the flow(start/reset) and show the internal status and data.