Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: views/controls/link.cc

Issue 7996008: Get views and views_unittests to build w/ use_aura=1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed review issue Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/accelerator.cc ('k') | views/controls/single_split_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/link.cc
diff --git a/views/controls/link.cc b/views/controls/link.cc
index 0b27ec569064f504a49d4c0a2371813066cecad3..b6874b9e14f0ead0fb0f25a6f317534c8def81c0 100644
--- a/views/controls/link.cc
+++ b/views/controls/link.cc
@@ -6,7 +6,7 @@
#include "build/build_config.h"
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
#include <gdk/gdk.h>
#endif
@@ -18,7 +18,7 @@
#include "views/controls/link_listener.h"
#include "views/events/event.h"
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_USES_GTK)
#include "ui/gfx/gtk_util.h"
#endif
@@ -103,11 +103,11 @@ gfx::NativeCursor Link::GetCursor(const MouseEvent& event) {
#if defined(OS_WIN)
static HCURSOR g_hand_cursor = LoadCursor(NULL, IDC_HAND);
return g_hand_cursor;
-#elif defined(USE_AURA)
+#elif defined(TOOLKIT_USES_GTK)
+ return gfx::GetCursor(GDK_HAND2);
+#else
// TODO(saintlou):
return NULL;
-#elif defined(OS_LINUX)
- return gfx::GetCursor(GDK_HAND2);
#endif
}
« no previous file with comments | « views/accelerator.cc ('k') | views/controls/single_split_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698