summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 21:29:08 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-26 21:29:08 +0000
commit5c06c596414d9cc8123a4c872b5e790a363feed2 (patch)
treef7aadfe135373f00aaf875b1354a1d65033f16db /chrome/common
parent6d59c1782a65bdd4f2b09bd01db80617bfc39c66 (diff)
downloadchromium_src-5c06c596414d9cc8123a4c872b5e790a363feed2.zip
chromium_src-5c06c596414d9cc8123a4c872b5e790a363feed2.tar.gz
chromium_src-5c06c596414d9cc8123a4c872b5e790a363feed2.tar.bz2
Do a few random bits of porting for Linux.
Review URL: http://codereview.chromium.org/115784 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16915 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/native_window_notification_source.h4
-rw-r--r--chrome/common/temp_scaffolding_stubs.h4
2 files changed, 5 insertions, 3 deletions
diff --git a/chrome/common/native_window_notification_source.h b/chrome/common/native_window_notification_source.h
index 0749728..3db7e50 100644
--- a/chrome/common/native_window_notification_source.h
+++ b/chrome/common/native_window_notification_source.h
@@ -18,8 +18,8 @@ class Source<gfx::NativeWindow> : public NotificationSource {
explicit Source(const NotificationSource& other)
: NotificationSource(other) {}
- HWND operator->() const { return ptr(); }
- HWND ptr() const { return static_cast<gfx::NativeWindow>(ptr_); }
+ gfx::NativeWindow operator->() const { return ptr(); }
+ gfx::NativeWindow ptr() const { return static_cast<gfx::NativeWindow>(ptr_); }
};
#endif // CHROME_COMMON_NATIVE_WINDOW_NOTIFICATION_SOURCE_H_
diff --git a/chrome/common/temp_scaffolding_stubs.h b/chrome/common/temp_scaffolding_stubs.h
index b0b7d1a..630d8dd 100644
--- a/chrome/common/temp_scaffolding_stubs.h
+++ b/chrome/common/temp_scaffolding_stubs.h
@@ -205,6 +205,7 @@ class TableModel {
virtual int RowCount() = 0;
};
+#if !defined(TOOLKIT_VIEWS)
class MenuItemView {
public:
enum Type {
@@ -235,6 +236,7 @@ class MenuItemView {
class MenuDelegate {
};
+#endif
#if !defined(OS_LINUX)
class Window {
@@ -345,7 +347,7 @@ class DockInfo {
};
#endif
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) && !defined(TOOLKIT_VIEWS)
class WindowSizer {
public:
static void GetBrowserWindowBounds(const std::wstring& app_name,