diff options
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/custom_frame_window.cc | 2 | ||||
-rw-r--r-- | chrome/views/views.vcproj | 4 | ||||
-rw-r--r-- | chrome/views/window_resources.h | 28 |
3 files changed, 33 insertions, 1 deletions
diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc index dbbc29d..8198284 100644 --- a/chrome/views/custom_frame_window.cc +++ b/chrome/views/custom_frame_window.cc @@ -7,7 +7,6 @@ #include "base/gfx/point.h" #include "base/gfx/size.h" #include "chrome/app/theme/theme_resources.h" -#include "chrome/browser/views/window_resources.h" #include "chrome/common/gfx/path.h" #include "chrome/common/gfx/chrome_canvas.h" #include "chrome/common/gfx/chrome_font.h" @@ -20,6 +19,7 @@ #include "chrome/views/non_client_view.h" #include "chrome/views/root_view.h" #include "chrome/views/window_delegate.h" +#include "chrome/views/window_resources.h" #include "generated_resources.h" namespace ChromeViews { diff --git a/chrome/views/views.vcproj b/chrome/views/views.vcproj index 9f73219..ecb5048 100644 --- a/chrome/views/views.vcproj +++ b/chrome/views/views.vcproj @@ -629,6 +629,10 @@ RelativePath=".\window_delegate.h" > </File> + <File + RelativePath=".\window_resources.h" + > + </File> </Files> <Globals> </Globals> diff --git a/chrome/views/window_resources.h b/chrome/views/window_resources.h new file mode 100644 index 0000000..30ffe65 --- /dev/null +++ b/chrome/views/window_resources.h @@ -0,0 +1,28 @@ +// 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_BROWSER_VIEWS_WINDOW_RESOURCES_H_ +#define CHROME_BROWSER_VIEWS_WINDOW_RESOURCES_H_ + +#include "SkBitmap.h" + +// TODO(beng): (http://crbug.com/2395) Move this file to chrome/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; +}; + +#endif // CHROME_BROWSER_VIEWS_WINDOW_RESOURCES_H_ |