summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 22:14:11 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-03 22:14:11 +0000
commitfecec563479589b3649b1283f8b7d0662704f12b (patch)
tree4c391b6b9dbb886644de5ad7f9aa2f5941508779 /chrome/browser/automation
parentd8ab621fc2ed73e4e23ad534a3b896f269b66ac6 (diff)
downloadchromium_src-fecec563479589b3649b1283f8b7d0662704f12b.zip
chromium_src-fecec563479589b3649b1283f8b7d0662704f12b.tar.gz
chromium_src-fecec563479589b3649b1283f8b7d0662704f12b.tar.bz2
Allow Source<T> and Details<T> to be instantiated with T = const Foo.
Review URL: http://codereview.chromium.org/118185 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17550 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r--chrome/browser/automation/automation_window_tracker.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/browser/automation/automation_window_tracker.h b/chrome/browser/automation/automation_window_tracker.h
index a4e505a..53a48aa2 100644
--- a/chrome/browser/automation/automation_window_tracker.h
+++ b/chrome/browser/automation/automation_window_tracker.h
@@ -8,26 +8,7 @@
#include "base/gfx/native_widget_types.h"
#include "build/build_config.h"
#include "chrome/browser/automation/automation_resource_tracker.h"
-
-#if defined(OS_WIN)
-// Since HWNDs aren't pointers, we can't have NativeWindow
-// be directly a pointer and so must explicitly declare the Source types
-// for it.
#include "chrome/common/native_window_notification_source.h"
-#elif defined(OS_LINUX) || defined(OS_MACOSX)
-// But on Linux and Mac, it is a pointer so this definition suffices.
-template<>
-class Source<gfx::NativeWindow> : public NotificationSource {
- public:
- explicit Source(gfx::NativeWindow win) : NotificationSource(win) {}
-
- explicit Source(const NotificationSource& other)
- : NotificationSource(other) {}
-
- gfx::NativeWindow operator->() const { return ptr(); }
- gfx::NativeWindow ptr() const { return static_cast<gfx::NativeWindow>(ptr_); }
-};
-#endif
class AutomationWindowTracker
: public AutomationResourceTracker<gfx::NativeWindow> {