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

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

Issue 7031053: Make Widget ownership a little clearer by expressing it in terms of an enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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/native_widget_test_utils_win.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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 // information from GetUpdateRect()). 468 // information from GetUpdateRect()).
469 // We also need to keep track of the invalid rectangle for the RootView should 469 // We also need to keep track of the invalid rectangle for the RootView should
470 // we need to paint the non-client area. The data supplied to WM_NCPAINT seems 470 // we need to paint the non-client area. The data supplied to WM_NCPAINT seems
471 // to be insufficient. 471 // to be insufficient.
472 gfx::Rect invalid_rect_; 472 gfx::Rect invalid_rect_;
473 473
474 // A factory that allows us to schedule a redraw for layered windows. 474 // A factory that allows us to schedule a redraw for layered windows.
475 ScopedRunnableMethodFactory<NativeWidgetWin> paint_layered_window_factory_; 475 ScopedRunnableMethodFactory<NativeWidgetWin> paint_layered_window_factory_;
476 476
477 // See class documentation for Widget in widget.h for a note about ownership. 477 // See class documentation for Widget in widget.h for a note about ownership.
478 bool delete_on_destroy_; 478 Widget::InitParams::Ownership ownership_;
479 479
480 // True if we are allowed to update the layered window from the DIB backing 480 // True if we are allowed to update the layered window from the DIB backing
481 // store if necessary. 481 // store if necessary.
482 bool can_update_layered_window_; 482 bool can_update_layered_window_;
483 483
484 // Whether the focus should be restored next time we get enabled. Needed to 484 // Whether the focus should be restored next time we get enabled. Needed to
485 // restore focus correctly when Windows modal dialogs are displayed. 485 // restore focus correctly when Windows modal dialogs are displayed.
486 bool restore_focus_when_enabled_; 486 bool restore_focus_when_enabled_;
487 487
488 // Instance of accessibility information and handling for MSAA root 488 // Instance of accessibility information and handling for MSAA root
(...skipping 23 matching lines...) Expand all
512 512
513 // Indicates if the |input_method_| is an InputMethodWin instance. 513 // Indicates if the |input_method_| is an InputMethodWin instance.
514 bool is_input_method_win_; 514 bool is_input_method_win_;
515 515
516 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 516 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
517 }; 517 };
518 518
519 } // namespace views 519 } // namespace views
520 520
521 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 521 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_test_utils_win.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698