| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/dock_info.h" | 5 #include "chrome/browser/ui/tabs/dock_info.h" |
| 6 | 6 |
| 7 #if defined(TOOLKIT_VIEWS) | 7 #if defined(TOOLKIT_VIEWS) |
| 8 #include "chrome/browser/views/tabs/tab.h" | 8 #include "chrome/browser/views/tabs/tab.h" |
| 9 #else | 9 #else |
| 10 #include "chrome/browser/gtk/tabs/tab_gtk.h" | 10 #include "chrome/browser/gtk/tabs/tab_gtk.h" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // Distance in pixels between the hotspot and when the hint should be shown. | 15 // Distance in pixels between the hotspot and when the hint should be shown. |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 int x, | 259 int x, |
| 260 int y, | 260 int y, |
| 261 Type type) { | 261 Type type) { |
| 262 if (IsCloseToMonitorPoint(screen_loc, x, y, type, &in_enable_area_)) { | 262 if (IsCloseToMonitorPoint(screen_loc, x, y, type, &in_enable_area_)) { |
| 263 hot_spot_.SetPoint(x, y); | 263 hot_spot_.SetPoint(x, y); |
| 264 type_ = type; | 264 type_ = type; |
| 265 return true; | 265 return true; |
| 266 } | 266 } |
| 267 return false; | 267 return false; |
| 268 } | 268 } |
| OLD | NEW |