summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 23:46:58 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 23:46:58 +0000
commit2b4a0bb0f0258027c0a7bdd4051f6934bdcf5d45 (patch)
tree5959b192634a58eb3f48581114b34601137d719d /chrome/views
parent47812d996e539379df7dedb0858c75e9d0c5954b (diff)
downloadchromium_src-2b4a0bb0f0258027c0a7bdd4051f6934bdcf5d45.zip
chromium_src-2b4a0bb0f0258027c0a7bdd4051f6934bdcf5d45.tar.gz
chromium_src-2b4a0bb0f0258027c0a7bdd4051f6934bdcf5d45.tar.bz2
Move window_resources.h to chrome/views to remove bad dependency of chrome/views on chrome/browser
http://crbug.com/2395 Review URL: http://codereview.chromium.org/7002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/custom_frame_window.cc2
-rw-r--r--chrome/views/views.vcproj4
-rw-r--r--chrome/views/window_resources.h28
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_