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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 109403008: Disables showing tooltips while a system menu is showing on windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move resetting Created 6 years, 11 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
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 "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
11 #include "ui/aura/client/cursor_client.h" 11 #include "ui/aura/client/cursor_client.h"
12 #include "ui/aura/client/focus_client.h" 12 #include "ui/aura/client/focus_client.h"
13 #include "ui/aura/client/scoped_tooltip_disabler.h"
13 #include "ui/aura/root_window.h" 14 #include "ui/aura/root_window.h"
14 #include "ui/aura/window_property.h" 15 #include "ui/aura/window_property.h"
15 #include "ui/base/cursor/cursor_loader_win.h" 16 #include "ui/base/cursor/cursor_loader_win.h"
16 #include "ui/base/ime/input_method.h" 17 #include "ui/base/ime/input_method.h"
17 #include "ui/base/ime/win/tsf_bridge.h" 18 #include "ui/base/ime/win/tsf_bridge.h"
18 #include "ui/base/win/shell.h" 19 #include "ui/base/win/shell.h"
19 #include "ui/gfx/insets.h" 20 #include "ui/gfx/insets.h"
20 #include "ui/gfx/native_widget_types.h" 21 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/path.h" 22 #include "ui/gfx/path.h"
22 #include "ui/gfx/path_win.h" 23 #include "ui/gfx/path_win.h"
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 return tooltip_ && tooltip_->HandleNotify(w_param, l_param, l_result); 911 return tooltip_ && tooltip_->HandleNotify(w_param, l_param, l_result);
911 } 912 }
912 913
913 void DesktopRootWindowHostWin::HandleTooltipMouseMove(UINT message, 914 void DesktopRootWindowHostWin::HandleTooltipMouseMove(UINT message,
914 WPARAM w_param, 915 WPARAM w_param,
915 LPARAM l_param) { 916 LPARAM l_param) {
916 // TooltipWin implementation doesn't need this. 917 // TooltipWin implementation doesn't need this.
917 // TODO(sky): remove from HWNDMessageHandler once non-aura path nuked. 918 // TODO(sky): remove from HWNDMessageHandler once non-aura path nuked.
918 } 919 }
919 920
921 void DesktopRootWindowHostWin::HandleMenuLoop(bool in_menu_loop) {
922 if (in_menu_loop) {
923 tooltip_disabler_.reset(
924 new aura::client::ScopedTooltipDisabler(root_window_->window()));
925 } else {
926 tooltip_disabler_.reset();
927 }
928 }
929
920 bool DesktopRootWindowHostWin::PreHandleMSG(UINT message, 930 bool DesktopRootWindowHostWin::PreHandleMSG(UINT message,
921 WPARAM w_param, 931 WPARAM w_param,
922 LPARAM l_param, 932 LPARAM l_param,
923 LRESULT* result) { 933 LRESULT* result) {
924 return false; 934 return false;
925 } 935 }
926 936
927 void DesktopRootWindowHostWin::PostHandleMSG(UINT message, 937 void DesktopRootWindowHostWin::PostHandleMSG(UINT message,
928 WPARAM w_param, 938 WPARAM w_param,
929 LPARAM l_param) { 939 LPARAM l_param) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 984
975 // static 985 // static
976 DesktopRootWindowHost* DesktopRootWindowHost::Create( 986 DesktopRootWindowHost* DesktopRootWindowHost::Create(
977 internal::NativeWidgetDelegate* native_widget_delegate, 987 internal::NativeWidgetDelegate* native_widget_delegate,
978 DesktopNativeWidgetAura* desktop_native_widget_aura) { 988 DesktopNativeWidgetAura* desktop_native_widget_aura) {
979 return new DesktopRootWindowHostWin(native_widget_delegate, 989 return new DesktopRootWindowHostWin(native_widget_delegate,
980 desktop_native_widget_aura); 990 desktop_native_widget_aura);
981 } 991 }
982 992
983 } // namespace views 993 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698