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

Side by Side Diff: views/widget/native_widget_win.h

Issue 7253016: Merge 88897 - Disables tooltips if we can't create the tooltip window. I still don't (Closed) Base URL: svn://svn.chromium.org/chrome/branches/782/src/
Patch Set: Created 9 years, 5 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 | « views/widget/aero_tooltip_manager.cc ('k') | views/widget/native_widget_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) 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 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 virtual void OnScreenReaderDetected(); 392 virtual void OnScreenReaderDetected();
393 393
394 // Sets-up the focus manager with the view that should have focus when the 394 // Sets-up the focus manager with the view that should have focus when the
395 // window is shown the first time. If NULL is returned, the focus goes to the 395 // window is shown the first time. If NULL is returned, the focus goes to the
396 // button if there is one, otherwise the to the Cancel button. 396 // button if there is one, otherwise the to the Cancel button.
397 virtual void SetInitialFocus(); 397 virtual void SetInitialFocus();
398 398
399 // Executes the specified SC_command. 399 // Executes the specified SC_command.
400 void ExecuteSystemMenuCommand(int command); 400 void ExecuteSystemMenuCommand(int command);
401 401
402 // The TooltipManager. 402 // The TooltipManager. This is NULL if there is a problem creating the
403 // underlying tooltip window.
403 // WARNING: RootView's destructor calls into the TooltipManager. As such, this 404 // WARNING: RootView's destructor calls into the TooltipManager. As such, this
404 // must be destroyed AFTER root_view_. 405 // must be destroyed AFTER root_view_.
405 scoped_ptr<TooltipManagerWin> tooltip_manager_; 406 scoped_ptr<TooltipManagerWin> tooltip_manager_;
406 407
407 scoped_refptr<DropTargetWin> drop_target_; 408 scoped_refptr<DropTargetWin> drop_target_;
408 409
409 // Are a subclass of NativeWindowWin? 410 // Are a subclass of NativeWindowWin?
410 bool is_window_; 411 bool is_window_;
411 412
412 const gfx::Rect& invalid_rect() const { return invalid_rect_; } 413 const gfx::Rect& invalid_rect() const { return invalid_rect_; }
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 525
525 // Indicates if the |input_method_| is an InputMethodWin instance. 526 // Indicates if the |input_method_| is an InputMethodWin instance.
526 bool is_input_method_win_; 527 bool is_input_method_win_;
527 528
528 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 529 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
529 }; 530 };
530 531
531 } // namespace views 532 } // namespace views
532 533
533 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 534 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/aero_tooltip_manager.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698