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

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

Issue 6995157: Disables tooltips if we can't create the tooltip window. I still don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improved comments Created 9 years, 6 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 virtual void SetInitialFocus(); 454 virtual void SetInitialFocus();
455 455
456 // Executes the specified SC_command. 456 // Executes the specified SC_command.
457 void ExecuteSystemMenuCommand(int command); 457 void ExecuteSystemMenuCommand(int command);
458 458
459 // Accessors and setters for various properties. 459 // Accessors and setters for various properties.
460 void set_focus_on_creation(bool focus_on_creation) { 460 void set_focus_on_creation(bool focus_on_creation) {
461 focus_on_creation_ = focus_on_creation; 461 focus_on_creation_ = focus_on_creation;
462 } 462 }
463 463
464 // The TooltipManager. 464 // The TooltipManager. This is NULL if there is a problem creating the
465 // underlying tooltip window.
465 // WARNING: RootView's destructor calls into the TooltipManager. As such, this 466 // WARNING: RootView's destructor calls into the TooltipManager. As such, this
466 // must be destroyed AFTER root_view_. 467 // must be destroyed AFTER root_view_.
467 scoped_ptr<TooltipManagerWin> tooltip_manager_; 468 scoped_ptr<TooltipManagerWin> tooltip_manager_;
468 469
469 scoped_refptr<DropTargetWin> drop_target_; 470 scoped_refptr<DropTargetWin> drop_target_;
470 471
471 // Are a subclass of NativeWindowWin? 472 // Are a subclass of NativeWindowWin?
472 bool is_window_; 473 bool is_window_;
473 474
474 const gfx::Rect& invalid_rect() const { return invalid_rect_; } 475 const gfx::Rect& invalid_rect() const { return invalid_rect_; }
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 // Whether all ancestors have been enabled. This is only used if is_modal_ is 657 // Whether all ancestors have been enabled. This is only used if is_modal_ is
657 // true. 658 // true.
658 bool restored_enabled_; 659 bool restored_enabled_;
659 660
660 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 661 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
661 }; 662 };
662 663
663 } // namespace views 664 } // namespace views
664 665
665 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 666 #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