summaryrefslogtreecommitdiff
path: root/chromium/components/arc/mojom/wallpaper.mojom
blob: 3048e4560a713561b68f36b5e42d9ccbd39cea64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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.
//
// Next MinVersion: 4

module arc.mojom;

// Handles wallpaper calls from ARC in Chrome.
// Next method ID: 3
interface WallpaperHost {
  // Gets current wallpaper encoded in PNG and send it back to ARC.
  GetWallpaper@0() => (array<uint8> wallpaper);

  // Sets an image from ARC as the wallpaper.
  // |data| is a byte array of the wallpaper image.
  SetWallpaper@1(array<uint8> data, [MinVersion=2] int32 wallpaper_id);

  // Sets the default wallpaper.
  [MinVersion=2] SetDefaultWallpaper@2();
};

// Connects with container side to publish wallpaper related intents.
// Next method ID: 4
interface WallpaperInstance {
  // DEPRECATED: Please use Init@3 instead.
  InitDeprecated@0(WallpaperHost host_ptr);

  // Establishes full-duplex communication with the host.
  [MinVersion=3] Init@3(WallpaperHost host_ptr) => ();

  // Notifies ArcWallpaperManagerService that wallpaper is changed.
  [MinVersion=1] OnWallpaperChanged@1([MinVersion=2] int32 wallpaper_id);
};