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

Side by Side Diff: ui/views/widget/tooltip_manager_views.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/tooltip_manager.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/views/widget/tooltip_manager_views.h" 5 #include "ui/views/widget/tooltip_manager_views.h"
6 6
7 #if defined(USE_X11) 7 #if defined(USE_X11)
8 #include <X11/Xlib.h> 8 #include <X11/Xlib.h>
9 #include <X11/extensions/XInput2.h> 9 #include <X11/extensions/XInput2.h>
10 #endif 10 #endif
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include <windowsx.h> 13 #include <windowsx.h>
14 #endif 14 #endif
15 15
16 #include "base/event_types.h" 16 #include "base/event_types.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/time.h" 18 #include "base/time.h"
19 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
20 #include "third_party/skia/include/core/SkColor.h" 20 #include "third_party/skia/include/core/SkColor.h"
21 #if defined(USE_AURA) 21 #if defined(USE_AURA)
22 #include "ui/aura/client/aura_constants.h" 22 #include "ui/aura/client/aura_constants.h"
23 #include "ui/aura/event.h" 23 #include "ui/aura/event.h"
24 #include "ui/aura/window.h" 24 #include "ui/aura/window.h"
25 #endif 25 #endif
26 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/gfx/font.h" 27 #include "ui/gfx/font.h"
28 #include "ui/gfx/screen.h" 28 #include "ui/gfx/screen.h"
29 #include "ui/views/background.h"
30 #include "ui/views/border.h"
29 #include "ui/views/events/event.h" 31 #include "ui/views/events/event.h"
30 #include "ui/views/focus/focus_manager.h" 32 #include "ui/views/focus/focus_manager.h"
31 #include "ui/views/view.h" 33 #include "ui/views/view.h"
32 #include "ui/views/widget/native_widget.h" 34 #include "ui/views/widget/native_widget.h"
33 #include "views/background.h"
34 #include "views/border.h"
35 35
36 namespace { 36 namespace {
37 SkColor kTooltipBackground = 0xFF7F7F00; 37 SkColor kTooltipBackground = 0xFF7F7F00;
38 int kTooltipTimeoutMs = 500; 38 int kTooltipTimeoutMs = 500;
39 39
40 // FIXME: get cursor offset from actual cursor size. 40 // FIXME: get cursor offset from actual cursor size.
41 int kCursorOffsetX = 10; 41 int kCursorOffsetX = 10;
42 int kCursorOffsetY = 15; 42 int kCursorOffsetY = 15;
43 } 43 }
44 44
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 if (tooltip_timer_.IsRunning()) 230 if (tooltip_timer_.IsRunning())
231 tooltip_timer_.Reset(); 231 tooltip_timer_.Reset();
232 curr_mouse_pos_.SetPoint(x, y); 232 curr_mouse_pos_.SetPoint(x, y);
233 233
234 // If tooltip is visible, we may want to hide it. If it is not, we are ok. 234 // If tooltip is visible, we may want to hide it. If it is not, we are ok.
235 if (tooltip_widget_->IsVisible()) 235 if (tooltip_widget_->IsVisible())
236 UpdateIfRequired(curr_mouse_pos_.x(), curr_mouse_pos_.y(), false); 236 UpdateIfRequired(curr_mouse_pos_.x(), curr_mouse_pos_.y(), false);
237 } 237 }
238 238
239 } // namespace views 239 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/tooltip_manager.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698