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

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

Issue 581953002: [Win] Update HWND style when SizeConstraintsChanged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hidpi
Patch Set: Address comments Created 6 years, 2 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
« no previous file with comments | « ui/views/widget/widget_hwnd_utils.cc ('k') | ui/views/win/hwnd_message_handler.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) 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void set_remove_standard_frame(bool remove_standard_frame) { 198 void set_remove_standard_frame(bool remove_standard_frame) {
199 remove_standard_frame_ = remove_standard_frame; 199 remove_standard_frame_ = remove_standard_frame;
200 } 200 }
201 201
202 void set_use_system_default_icon(bool use_system_default_icon) { 202 void set_use_system_default_icon(bool use_system_default_icon) {
203 use_system_default_icon_ = use_system_default_icon; 203 use_system_default_icon_ = use_system_default_icon;
204 } 204 }
205 205
206 void SetFullscreen(bool fullscreen); 206 void SetFullscreen(bool fullscreen);
207 207
208 // Updates the window style to reflect whether it can be resized or maximized.
209 void SizeConstraintsChanged();
210
208 private: 211 private:
209 typedef std::set<DWORD> TouchIDs; 212 typedef std::set<DWORD> TouchIDs;
210 213
211 // Overridden from internal::InputMethodDelegate: 214 // Overridden from internal::InputMethodDelegate:
212 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; 215 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE;
213 216
214 // Overridden from WindowImpl: 217 // Overridden from WindowImpl:
215 virtual HICON GetDefaultWindowIcon() const OVERRIDE; 218 virtual HICON GetDefaultWindowIcon() const OVERRIDE;
216 virtual LRESULT OnWndProc(UINT message, 219 virtual LRESULT OnWndProc(UINT message,
217 WPARAM w_param, 220 WPARAM w_param,
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // This member variable is set to true if the window is transitioning to 627 // This member variable is set to true if the window is transitioning to
625 // glass. Defaults to false. 628 // glass. Defaults to false.
626 bool dwm_transition_desired_; 629 bool dwm_transition_desired_;
627 630
628 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 631 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
629 }; 632 };
630 633
631 } // namespace views 634 } // namespace views
632 635
633 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 636 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget_hwnd_utils.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698