| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |