OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/tabs/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/ui/views/tabs/tab.h" | 8 #include "chrome/browser/ui/views/tabs/tab.h" |
9 #else | 9 #else |
10 #include "chrome/browser/gtk/tabs/tab_gtk.h" | 10 #include "chrome/browser/ui/gtk/tabs/tab_gtk.h" |
msw
2011/01/15 00:58:47
This ordering is okay (despite the CL static analy
| |
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. |
16 const int kHotSpotDeltaX = 120; | 16 const int kHotSpotDeltaX = 120; |
17 const int kHotSpotDeltaY = 120; | 17 const int kHotSpotDeltaY = 120; |
18 | 18 |
19 // Size of the popup window. | 19 // Size of the popup window. |
20 const int kPopupWidth = 70; | 20 const int kPopupWidth = 70; |
(...skipping 238 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 |