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

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

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 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
7 7
8 #include "ui/aura/client/animation_host.h" 8 #include "ui/aura/client/animation_host.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
11 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h" 11 #include "ui/views/widget/desktop_aura/desktop_root_window_host.h"
12 #include "ui/views/win/hwnd_message_handler_delegate.h" 12 #include "ui/views/win/hwnd_message_handler_delegate.h"
13 13
14 namespace aura { 14 namespace aura {
15 namespace client { 15 namespace client {
16 class DragDropClient; 16 class DragDropClient;
17 class FocusClient; 17 class FocusClient;
18 class ScopedTooltipDisabler;
18 } 19 }
19 } 20 }
20 21
21 namespace views { 22 namespace views {
22 class DesktopCursorClient; 23 class DesktopCursorClient;
23 class DesktopDragDropClientWin; 24 class DesktopDragDropClientWin;
24 class HWNDMessageHandler; 25 class HWNDMessageHandler;
25 26
26 namespace corewm { 27 namespace corewm {
27 class TooltipWin; 28 class TooltipWin;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 virtual void HandleInputLanguageChange(DWORD character_set, 195 virtual void HandleInputLanguageChange(DWORD character_set,
195 HKL input_language_id) OVERRIDE; 196 HKL input_language_id) OVERRIDE;
196 virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) OVERRIDE; 197 virtual bool HandlePaintAccelerated(const gfx::Rect& invalid_rect) OVERRIDE;
197 virtual void HandlePaint(gfx::Canvas* canvas) OVERRIDE; 198 virtual void HandlePaint(gfx::Canvas* canvas) OVERRIDE;
198 virtual bool HandleTooltipNotify(int w_param, 199 virtual bool HandleTooltipNotify(int w_param,
199 NMHDR* l_param, 200 NMHDR* l_param,
200 LRESULT* l_result) OVERRIDE; 201 LRESULT* l_result) OVERRIDE;
201 virtual void HandleTooltipMouseMove(UINT message, 202 virtual void HandleTooltipMouseMove(UINT message,
202 WPARAM w_param, 203 WPARAM w_param,
203 LPARAM l_param) OVERRIDE; 204 LPARAM l_param) OVERRIDE;
205 virtual void HandleMenuLoop(bool in_menu_loop) OVERRIDE;
204 virtual bool PreHandleMSG(UINT message, 206 virtual bool PreHandleMSG(UINT message,
205 WPARAM w_param, 207 WPARAM w_param,
206 LPARAM l_param, 208 LPARAM l_param,
207 LRESULT* result) OVERRIDE; 209 LRESULT* result) OVERRIDE;
208 virtual void PostHandleMSG(UINT message, 210 virtual void PostHandleMSG(UINT message,
209 WPARAM w_param, 211 WPARAM w_param,
210 LPARAM l_param) OVERRIDE; 212 LPARAM l_param) OVERRIDE;
211 213
212 Widget* GetWidget(); 214 Widget* GetWidget();
213 const Widget* GetWidget() const; 215 const Widget* GetWidget() const;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // Init time, before the Widget has created the NonClientView. 264 // Init time, before the Widget has created the NonClientView.
263 bool has_non_client_view_; 265 bool has_non_client_view_;
264 266
265 // Owned by TooltipController, but we need to forward events to it so we keep 267 // Owned by TooltipController, but we need to forward events to it so we keep
266 // a reference. 268 // a reference.
267 corewm::TooltipWin* tooltip_; 269 corewm::TooltipWin* tooltip_;
268 270
269 // State of the cursor. 271 // State of the cursor.
270 bool is_cursor_visible_; 272 bool is_cursor_visible_;
271 273
274 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_;
275
272 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin); 276 DISALLOW_COPY_AND_ASSIGN(DesktopRootWindowHostWin);
273 }; 277 };
274 278
275 } // namespace views 279 } // namespace views
276 280
277 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ 281 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698