diff options
Diffstat (limited to 'chrome/views/window/window_resources.h')
-rw-r--r-- | chrome/views/window/window_resources.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/views/window/window_resources.h b/chrome/views/window/window_resources.h new file mode 100644 index 0000000..9db078e --- /dev/null +++ b/chrome/views/window/window_resources.h @@ -0,0 +1,30 @@ +// Copyright (c) 2006-2008 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 CHROME_VIEWS_WINDOW_WINDOW_RESOURCES_H_ +#define CHROME_VIEWS_WINDOW_WINDOW_RESOURCES_H_ + +class SkBitmap; + +namespace views { + +typedef int FramePartBitmap; + +/////////////////////////////////////////////////////////////////////////////// +// WindowResources +// +// An interface implemented by an object providing bitmaps 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 FramePartBitmap depends on the implementation. +// +class WindowResources { + public: + virtual ~WindowResources() { } + virtual SkBitmap* GetPartBitmap(FramePartBitmap part) const = 0; +}; + +} // namespace views + +#endif // CHROME_VIEWS_WINDOW_WINDOW_RESOURCES_H_ |