summaryrefslogtreecommitdiffstats
path: root/chrome/views/view.h
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 12:26:46 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 12:26:46 +0000
commit8c11771cbb502134852fdea59c4e6b383fa0c235 (patch)
tree1f28b9be0251b62946a0b8a55931bf3cb6354a47 /chrome/views/view.h
parent2ce3d9dae916dda6c1ec91d013b71ba42179ce32 (diff)
downloadchromium_src-8c11771cbb502134852fdea59c4e6b383fa0c235.zip
chromium_src-8c11771cbb502134852fdea59c4e6b383fa0c235.tar.gz
chromium_src-8c11771cbb502134852fdea59c4e6b383fa0c235.tar.bz2
Porting in views/
This actually manages to compile few files on Linux. Porting some other files from views/ would be more difficult, but this view.h change unblocks porting opportunities in other areas. Review URL: http://codereview.chromium.org/17352 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/view.h')
-rw-r--r--chrome/views/view.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/views/view.h b/chrome/views/view.h
index 383473f..a3ecc68 100644
--- a/chrome/views/view.h
+++ b/chrome/views/view.h
@@ -5,9 +5,13 @@
#ifndef CHROME_VIEWS_VIEW_H_
#define CHROME_VIEWS_VIEW_H_
+#include "build/build_config.h"
+
+#if defined(OS_WIN)
#include <atlbase.h>
#include <atlapp.h>
#include <atlmisc.h>
+#endif // defined(OS_WIN)
#include <map>
#include <vector>
@@ -554,6 +558,9 @@ class View : public AcceleratorTarget {
// successful.
virtual bool GetAccessibleName(std::wstring* name) { return false; }
+#if defined(OS_WIN)
+ // TODO(port): Make these functions using VARIANT portable.
+
// Returns the MSAA role of the current view. The role is what assistive
// technologies (ATs) use to determine what behavior to expect from a given
// control. Sets the input VARIANT appropriately, and returns true if
@@ -563,6 +570,7 @@ class View : public AcceleratorTarget {
// Returns the MSAA state of the current view. Sets the input VARIANT
// appropriately, and returns true if a change was performed successfully.
virtual bool GetAccessibleState(VARIANT* state) { return false; }
+#endif // defined(OS_WIN)
// Assigns a keyboard shortcut string description to the given control. Needed
// as a View does not know which shortcut will be associated with it until it
@@ -891,10 +899,14 @@ class View : public AcceleratorTarget {
// insets is returned.
gfx::Insets GetInsets() const;
+#if defined(OS_WIN)
+ // TODO(port): Make GetCursorForPoint portable.
+
// Return the cursor that should be used for this view or NULL if
// the default cursor should be used. The provided point is in the
// receiver's coordinate system.
virtual HCURSOR GetCursorForPoint(Event::EventType event_type, int x, int y);
+#endif // defined(OS_WIN)
// Convenience to test whether a point is within this view's bounds
virtual bool HitTest(const gfx::Point& l) const;