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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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_win.h ('k') | ui/views/widget/widget.h » ('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 "views/widget/tooltip_manager_win.h" 5 #include "ui/views/widget/tooltip_manager_win.h"
6 6
7 #include <windowsx.h> 7 #include <windowsx.h>
8 8
9 #include <limits> 9 #include <limits>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "base/string_util.h" 15 #include "base/string_util.h"
16 #include "ui/base/l10n/l10n_util_win.h" 16 #include "ui/base/l10n/l10n_util_win.h"
17 #include "ui/base/win/hwnd_util.h" 17 #include "ui/base/win/hwnd_util.h"
18 #include "ui/gfx/font.h" 18 #include "ui/gfx/font.h"
19 #include "ui/gfx/screen.h" 19 #include "ui/gfx/screen.h"
20 #include "ui/views/widget/monitor_win.h"
21 #include "ui/views/widget/widget.h"
20 #include "views/view.h" 22 #include "views/view.h"
21 #include "views/widget/monitor_win.h"
22 #include "views/widget/widget.h"
23 23
24 namespace views { 24 namespace views {
25 25
26 static int tooltip_height_ = 0; 26 static int tooltip_height_ = 0;
27 27
28 // Default timeout for the tooltip displayed using keyboard. 28 // Default timeout for the tooltip displayed using keyboard.
29 // Timeout is mentioned in milliseconds. 29 // Timeout is mentioned in milliseconds.
30 static const int kDefaultTimeout = 4000; 30 static const int kDefaultTimeout = 4000;
31 31
32 // static 32 // static
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 keyboard_tooltip_hwnd_ = NULL; 382 keyboard_tooltip_hwnd_ = NULL;
383 } 383 }
384 } 384 }
385 385
386 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) { 386 void TooltipManagerWin::DestroyKeyboardTooltipWindow(HWND window_to_destroy) {
387 if (keyboard_tooltip_hwnd_ == window_to_destroy) 387 if (keyboard_tooltip_hwnd_ == window_to_destroy)
388 HideKeyboardTooltip(); 388 HideKeyboardTooltip();
389 } 389 }
390 390
391 } // namespace views 391 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/tooltip_manager_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698