From 9146221ca83c4996713894316661b442b20c9e28 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 10 Apr 2009 15:09:39 +0000 Subject: Adds some ifdefs so that test_shell can be compiled on linux without GTK. I had to recreate this patch as my workspace for various resonds. UGH! BUG=none TEST=none Review URL: http://codereview.chromium.org/67024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13503 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/rect.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base/gfx/rect.cc') diff --git a/base/gfx/rect.cc b/base/gfx/rect.cc index 3e7d782..003766b 100755 --- a/base/gfx/rect.cc +++ b/base/gfx/rect.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -8,7 +8,7 @@ #include #elif defined(OS_MACOSX) #include -#elif defined(OS_LINUX) +#elif defined(TOOLKIT_GTK) #include #endif @@ -74,7 +74,7 @@ Rect& Rect::operator=(const CGRect& r) { set_height(r.size.height); return *this; } -#elif defined(OS_LINUX) +#elif defined(TOOLKIT_GTK) Rect::Rect(const GdkRectangle& r) : origin_(r.x, r.y) { set_width(r.width); @@ -140,7 +140,7 @@ RECT Rect::ToRECT() const { r.bottom = bottom(); return r; } -#elif defined(OS_LINUX) +#elif defined(TOOLKIT_GTK) GdkRectangle Rect::ToGdkRectangle() const { GdkRectangle r = {x(), y(), width(), height()}; return r; -- cgit v1.1