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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_win.cc

Issue 9348025: Revert 116551 - Fix bug 62037: Task manager tooltips appear behind task manager if 'Always on Top... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ui/views/widget/tooltip_manager_win.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_win.h" 5 #include "content/browser/renderer_host/render_widget_host_view_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <peninputpanel_i.c> 8 #include <peninputpanel_i.c>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2299 matching lines...) Expand 10 before | Expand all | Expand 10 after
2310 void RenderWidgetHostViewWin::EnsureTooltip() { 2310 void RenderWidgetHostViewWin::EnsureTooltip() {
2311 UINT message = TTM_NEWTOOLRECT; 2311 UINT message = TTM_NEWTOOLRECT;
2312 2312
2313 TOOLINFO ti; 2313 TOOLINFO ti;
2314 ti.cbSize = sizeof(ti); 2314 ti.cbSize = sizeof(ti);
2315 ti.hwnd = m_hWnd; 2315 ti.hwnd = m_hWnd;
2316 ti.uId = 0; 2316 ti.uId = 0;
2317 if (!::IsWindow(tooltip_hwnd_)) { 2317 if (!::IsWindow(tooltip_hwnd_)) {
2318 message = TTM_ADDTOOL; 2318 message = TTM_ADDTOOL;
2319 tooltip_hwnd_ = CreateWindowEx( 2319 tooltip_hwnd_ = CreateWindowEx(
2320 WS_EX_TRANSPARENT | WS_EX_TOPMOST | 2320 WS_EX_TRANSPARENT | l10n_util::GetExtendedTooltipStyles(),
2321 l10n_util::GetExtendedTooltipStyles(),
2322 TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0, m_hWnd, NULL, 2321 TOOLTIPS_CLASS, NULL, TTS_NOPREFIX, 0, 0, 0, 0, m_hWnd, NULL,
2323 NULL, NULL); 2322 NULL, NULL);
2324 if (!tooltip_hwnd_) { 2323 if (!tooltip_hwnd_) {
2325 // Tooltip creation can inexplicably fail. See bug 82913 for details. 2324 // Tooltip creation can inexplicably fail. See bug 82913 for details.
2326 LOG_GETLASTERROR(WARNING) << 2325 LOG_GETLASTERROR(WARNING) <<
2327 "Tooltip creation failed, tooltips won't work"; 2326 "Tooltip creation failed, tooltips won't work";
2328 return; 2327 return;
2329 } 2328 }
2330 ti.uFlags = TTF_TRANSPARENT; 2329 ti.uFlags = TTF_TRANSPARENT;
2331 ti.lpszText = LPSTR_TEXTCALLBACK; 2330 ti.lpszText = LPSTR_TEXTCALLBACK;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 void RenderWidgetHostViewWin::ResetPointerDownContext() { 2600 void RenderWidgetHostViewWin::ResetPointerDownContext() {
2602 // If the default focus on the page is on an edit field and we did not 2601 // If the default focus on the page is on an edit field and we did not
2603 // receive a focus change in the context of a pointer down message, it means 2602 // receive a focus change in the context of a pointer down message, it means
2604 // that the pointer down message occurred on the edit field and we should 2603 // that the pointer down message occurred on the edit field and we should
2605 // display the on screen keyboard 2604 // display the on screen keyboard
2606 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) 2605 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_)
2607 DisplayOnScreenKeyboardIfNeeded(); 2606 DisplayOnScreenKeyboardIfNeeded();
2608 received_focus_change_after_pointer_down_ = false; 2607 received_focus_change_after_pointer_down_ = false;
2609 pointer_down_context_ = false; 2608 pointer_down_context_ = false;
2610 } 2609 }
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/tooltip_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698