summaryrefslogtreecommitdiffstats
path: root/ui/views/window/window_resources.h
blob: 55a4a09afe94f5d7fde50bff0412ad753cf3be72 (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
// Copyright (c) 2012 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.

#ifndef UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_
#define UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_

namespace gfx {
class ImageSkia;
}

namespace views {

typedef int FramePartImage;

///////////////////////////////////////////////////////////////////////////////
// WindowResources
//
//  An interface implemented by an object providing images to render the
//  contents of a window frame. The Window may swap in different
//  implementations of this interface to render different modes. The definition
//  of FramePartImage depends on the implementation.
//
class WindowResources {
 public:
  virtual ~WindowResources() {}

  virtual gfx::ImageSkia* GetPartImage(FramePartImage part) const = 0;
};

}  // namespace views

#endif  // UI_VIEWS_WINDOW_WINDOW_RESOURCES_H_