summaryrefslogtreecommitdiffstats
path: root/chrome/views/widget.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 20:38:08 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 20:38:08 +0000
commit6ff244f244f4e52e5e3dff32b0852bd5be80ec7d (patch)
tree009ce8d2f474444e740266b4e82f2c9a6cde58b2 /chrome/views/widget.h
parent577e30290cc9389a96303b8dd7543459dc50c236 (diff)
downloadchromium_src-6ff244f244f4e52e5e3dff32b0852bd5be80ec7d.zip
chromium_src-6ff244f244f4e52e5e3dff32b0852bd5be80ec7d.tar.gz
chromium_src-6ff244f244f4e52e5e3dff32b0852bd5be80ec7d.tar.bz2
Fix the broken commit in r8250. The problem was that basictypes.h
wasn't getting included before a defined(OS_WIN) check. Review URL: http://codereview.chromium.org/18414 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/widget.h')
-rw-r--r--chrome/views/widget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/widget.h b/chrome/views/widget.h
index 4192912..d135860 100644
--- a/chrome/views/widget.h
+++ b/chrome/views/widget.h
@@ -5,8 +5,10 @@
#ifndef CHROME_VIEWS_WIDGET_H_
#define CHROME_VIEWS_WIDGET_H_
+#if defined(OS_WIN)
// TODO(maruel): Remove once HWND is abstracted.
#include <windows.h>
+#endif
namespace gfx {
class Rect;
@@ -48,8 +50,10 @@ class Widget {
// the window should also become the active window.
virtual void MoveToFront(bool should_activate) = 0;
+#if defined(OS_WIN)
// Returns the Window HWND associated with this Widget.
virtual HWND GetHWND() const = 0;
+#endif
// Forces a paint of a specified rectangle immediately.
virtual void PaintNow(const gfx::Rect& update_rect) = 0;