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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 208 // Updates the window style to reflect whether it can be resized or maximized. |
209 void SizeConstraintsChanged(); | 209 void SizeConstraintsChanged(); |
210 | 210 |
211 private: | 211 private: |
212 typedef std::set<DWORD> TouchIDs; | 212 typedef std::set<DWORD> TouchIDs; |
213 | 213 |
214 // Overridden from internal::InputMethodDelegate: | 214 // Overridden from internal::InputMethodDelegate: |
215 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) OVERRIDE; | 215 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; |
216 | 216 |
217 // Overridden from WindowImpl: | 217 // Overridden from WindowImpl: |
218 virtual HICON GetDefaultWindowIcon() const OVERRIDE; | 218 virtual HICON GetDefaultWindowIcon() const override; |
219 virtual LRESULT OnWndProc(UINT message, | 219 virtual LRESULT OnWndProc(UINT message, |
220 WPARAM w_param, | 220 WPARAM w_param, |
221 LPARAM l_param) OVERRIDE; | 221 LPARAM l_param) override; |
222 | 222 |
223 // Overridden from WindowEventTarget | 223 // Overridden from WindowEventTarget |
224 virtual LRESULT HandleMouseMessage(unsigned int message, | 224 virtual LRESULT HandleMouseMessage(unsigned int message, |
225 WPARAM w_param, | 225 WPARAM w_param, |
226 LPARAM l_param, | 226 LPARAM l_param, |
227 bool* handled) OVERRIDE; | 227 bool* handled) override; |
228 virtual LRESULT HandleKeyboardMessage(unsigned int message, | 228 virtual LRESULT HandleKeyboardMessage(unsigned int message, |
229 WPARAM w_param, | 229 WPARAM w_param, |
230 LPARAM l_param, | 230 LPARAM l_param, |
231 bool* handled) OVERRIDE; | 231 bool* handled) override; |
232 virtual LRESULT HandleTouchMessage(unsigned int message, | 232 virtual LRESULT HandleTouchMessage(unsigned int message, |
233 WPARAM w_param, | 233 WPARAM w_param, |
234 LPARAM l_param, | 234 LPARAM l_param, |
235 bool* handled) OVERRIDE; | 235 bool* handled) override; |
236 | 236 |
237 virtual LRESULT HandleScrollMessage(unsigned int message, | 237 virtual LRESULT HandleScrollMessage(unsigned int message, |
238 WPARAM w_param, | 238 WPARAM w_param, |
239 LPARAM l_param, | 239 LPARAM l_param, |
240 bool* handled) OVERRIDE; | 240 bool* handled) override; |
241 | 241 |
242 virtual LRESULT HandleNcHitTestMessage(unsigned int message, | 242 virtual LRESULT HandleNcHitTestMessage(unsigned int message, |
243 WPARAM w_param, | 243 WPARAM w_param, |
244 LPARAM l_param, | 244 LPARAM l_param, |
245 bool* handled) OVERRIDE; | 245 bool* handled) override; |
246 | 246 |
247 // Returns the auto-hide edges of the appbar. See | 247 // Returns the auto-hide edges of the appbar. See |
248 // ViewsDelegate::GetAppbarAutohideEdges() for details. If the edges change, | 248 // ViewsDelegate::GetAppbarAutohideEdges() for details. If the edges change, |
249 // OnAppbarAutohideEdgesChanged() is called. | 249 // OnAppbarAutohideEdgesChanged() is called. |
250 int GetAppbarAutohideEdges(HMONITOR monitor); | 250 int GetAppbarAutohideEdges(HMONITOR monitor); |
251 | 251 |
252 // Callback if the autohide edges have changed. See | 252 // Callback if the autohide edges have changed. See |
253 // ViewsDelegate::GetAppbarAutohideEdges() for details. | 253 // ViewsDelegate::GetAppbarAutohideEdges() for details. |
254 void OnAppbarAutohideEdgesChanged(); | 254 void OnAppbarAutohideEdgesChanged(); |
255 | 255 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 // 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 |
628 // glass. Defaults to false. | 628 // glass. Defaults to false. |
629 bool dwm_transition_desired_; | 629 bool dwm_transition_desired_; |
630 | 630 |
631 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 631 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
632 }; | 632 }; |
633 | 633 |
634 } // namespace views | 634 } // namespace views |
635 | 635 |
636 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 636 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |