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

Side by Side Diff: chrome/views/widget_win.h

Issue 14131: Fixes info bubble painting bug. This was happening because we were... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « chrome/browser/views/info_bubble.cc ('k') | chrome/views/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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_WIDGET_WIN_H_ 5 #ifndef CHROME_VIEWS_WIDGET_WIN_H_
6 #define CHROME_VIEWS_WIDGET_WIN_H_ 6 #define CHROME_VIEWS_WIDGET_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcrack.h> 9 #include <atlcrack.h>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 UINT initial_class_style() { return class_style_; } 125 UINT initial_class_style() { return class_style_; }
126 126
127 void set_delete_on_destroy(bool delete_on_destroy) { 127 void set_delete_on_destroy(bool delete_on_destroy) {
128 delete_on_destroy_ = delete_on_destroy; 128 delete_on_destroy_ = delete_on_destroy;
129 } 129 }
130 130
131 // Sets the initial opacity of a layered window, or updates the window's 131 // Sets the initial opacity of a layered window, or updates the window's
132 // opacity if it is on the screen. 132 // opacity if it is on the screen.
133 void SetLayeredAlpha(BYTE layered_alpha); 133 void SetLayeredAlpha(BYTE layered_alpha);
134 134
135 // See description of use_layered_buffer_ for details.
136 void SetUseLayeredBuffer(bool use_layered_buffer);
137
135 // Disable Layered Window updates by setting to false. 138 // Disable Layered Window updates by setting to false.
136 void set_can_update_layered_window(bool can_update_layered_window) { 139 void set_can_update_layered_window(bool can_update_layered_window) {
137 can_update_layered_window_ = can_update_layered_window; 140 can_update_layered_window_ = can_update_layered_window;
138 } 141 }
139 142
140 // Returns the RootView associated with the specified HWND (if any). 143 // Returns the RootView associated with the specified HWND (if any).
141 static RootView* FindRootView(HWND hwnd); 144 static RootView* FindRootView(HWND hwnd);
142 145
143 // Closes the window asynchronously by scheduling a task for it. The window 146 // Closes the window asynchronously by scheduling a task for it. The window
144 // is destroyed as a result. 147 // is destroyed as a result.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 545
543 // Window Styles used when creating the window. 546 // Window Styles used when creating the window.
544 DWORD window_style_; 547 DWORD window_style_;
545 548
546 // Window Extended Styles used when creating the window. 549 // Window Extended Styles used when creating the window.
547 DWORD window_ex_style_; 550 DWORD window_ex_style_;
548 551
549 // Style of the class to use. 552 // Style of the class to use.
550 UINT class_style_; 553 UINT class_style_;
551 554
552 // Whether or not this is a layered window. 555 // Should we keep an offscreen buffer? This is initially true and if the
553 bool layered_; 556 // window has WS_EX_LAYERED then it remains true. You can set this to false
557 // at any time to ditch the buffer, and similarly set back to true to force
558 // creation of the buffer.
559 //
560 // NOTE: this is intended to be used with a layered window (a window with an
561 // extended window style of WS_EX_LAYERED). If you are using a layered window
562 // and NOT changing the layered alpha or anything else, then leave this value
563 // alone. OTOH if you are invoking SetLayeredWindowAttributes then you'll
564 // must likely want to set this to false, or after changing the alpha toggle
565 // the extended style bit to false than back to true. See MSDN for more
566 // details.
567 bool use_layered_buffer_;
554 568
555 // The default alpha to be applied to the layered window. 569 // The default alpha to be applied to the layered window.
556 BYTE layered_alpha_; 570 BYTE layered_alpha_;
557 571
558 // A canvas that contains the window contents in the case of a layered 572 // A canvas that contains the window contents in the case of a layered
559 // window. 573 // window.
560 scoped_ptr<ChromeCanvas> contents_; 574 scoped_ptr<ChromeCanvas> contents_;
561 575
562 // Whether or not the window should delete itself when it is destroyed. 576 // Whether or not the window should delete itself when it is destroyed.
563 // Set this to false via its setter for stack allocated instances. 577 // Set this to false via its setter for stack allocated instances.
(...skipping 18 matching lines...) Expand all
582 CComPtr<IAccessible> accessibility_root_; 596 CComPtr<IAccessible> accessibility_root_;
583 597
584 // Our hwnd. 598 // Our hwnd.
585 HWND hwnd_; 599 HWND hwnd_;
586 }; 600 };
587 601
588 } // namespace views 602 } // namespace views
589 603
590 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_ 604 #endif // #ifndef CHROME_VIEWS_WIDGET_WIN_H_
591 605
OLDNEW
« no previous file with comments | « chrome/browser/views/info_bubble.cc ('k') | chrome/views/widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698