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

Side by Side Diff: ui/views/win/hwnd_message_handler.h

Issue 300163002: Update window region after widget resizes not changing HWND size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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_WIN_HWND_MESSAGE_HANDLER_H_ 5 #ifndef UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 6 #define UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 void SetCursor(HCURSOR cursor); 183 void SetCursor(HCURSOR cursor);
184 184
185 void FrameTypeChanged(); 185 void FrameTypeChanged();
186 186
187 void SchedulePaintInRect(const gfx::Rect& rect); 187 void SchedulePaintInRect(const gfx::Rect& rect);
188 void SetOpacity(BYTE opacity); 188 void SetOpacity(BYTE opacity);
189 189
190 void SetWindowIcons(const gfx::ImageSkia& window_icon, 190 void SetWindowIcons(const gfx::ImageSkia& window_icon,
191 const gfx::ImageSkia& app_icon); 191 const gfx::ImageSkia& app_icon);
192 192
193 // Forces message handler to think a resize has happened. Useful when
194 // SetBounds() does not really change the size, but we want to force updates
195 // needed after a resize.
196 void ForceWindowResized();
197
193 void set_remove_standard_frame(bool remove_standard_frame) { 198 void set_remove_standard_frame(bool remove_standard_frame) {
194 remove_standard_frame_ = remove_standard_frame; 199 remove_standard_frame_ = remove_standard_frame;
195 } 200 }
196 201
197 void set_use_system_default_icon(bool use_system_default_icon) { 202 void set_use_system_default_icon(bool use_system_default_icon) {
198 use_system_default_icon_ = use_system_default_icon; 203 use_system_default_icon_ = use_system_default_icon;
199 } 204 }
200 205
201 private: 206 private:
202 typedef std::set<DWORD> TouchIDs; 207 typedef std::set<DWORD> TouchIDs;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the 606 // Time the last WM_MOUSEHWHEEL message is received. Please refer to the
602 // HandleMouseEventInternal function as to why this is needed. 607 // HandleMouseEventInternal function as to why this is needed.
603 long last_mouse_hwheel_time_; 608 long last_mouse_hwheel_time_;
604 609
605 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 610 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
606 }; 611 };
607 612
608 } // namespace views 613 } // namespace views
609 614
610 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 615 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698