summaryrefslogtreecommitdiffstats
path: root/chrome/views/widget.h
diff options
context:
space:
mode:
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;