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

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

Issue 11821050: Move power event handling logic from ui/ to base/ on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add message only window into base/ Created 7 years, 10 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 <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) 288 MSG_WM_INPUTLANGCHANGE(OnInputLangChange)
289 MSG_WM_KILLFOCUS(OnKillFocus) 289 MSG_WM_KILLFOCUS(OnKillFocus)
290 MSG_WM_MOVE(OnMove) 290 MSG_WM_MOVE(OnMove)
291 MSG_WM_MOVING(OnMoving) 291 MSG_WM_MOVING(OnMoving)
292 MSG_WM_NCACTIVATE(OnNCActivate) 292 MSG_WM_NCACTIVATE(OnNCActivate)
293 MSG_WM_NCCALCSIZE(OnNCCalcSize) 293 MSG_WM_NCCALCSIZE(OnNCCalcSize)
294 MSG_WM_NCHITTEST(OnNCHitTest) 294 MSG_WM_NCHITTEST(OnNCHitTest)
295 MSG_WM_NCPAINT(OnNCPaint) 295 MSG_WM_NCPAINT(OnNCPaint)
296 MSG_WM_NOTIFY(OnNotify) 296 MSG_WM_NOTIFY(OnNotify)
297 MSG_WM_PAINT(OnPaint) 297 MSG_WM_PAINT(OnPaint)
298 MSG_WM_POWERBROADCAST(OnPowerBroadcast)
299 MSG_WM_SETFOCUS(OnSetFocus) 298 MSG_WM_SETFOCUS(OnSetFocus)
300 MSG_WM_SETICON(OnSetIcon) 299 MSG_WM_SETICON(OnSetIcon)
301 MSG_WM_SETTEXT(OnSetText) 300 MSG_WM_SETTEXT(OnSetText)
302 MSG_WM_SETTINGCHANGE(OnSettingChange) 301 MSG_WM_SETTINGCHANGE(OnSettingChange)
303 MSG_WM_SIZE(OnSize) 302 MSG_WM_SIZE(OnSize)
304 MSG_WM_SYSCOMMAND(OnSysCommand) 303 MSG_WM_SYSCOMMAND(OnSysCommand)
305 MSG_WM_THEMECHANGED(OnThemeChanged) 304 MSG_WM_THEMECHANGED(OnThemeChanged)
306 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) 305 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
307 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) 306 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged)
308 END_MSG_MAP() 307 END_MSG_MAP()
(...skipping 28 matching lines...) Expand all
337 void OnMove(const CPoint& point); 336 void OnMove(const CPoint& point);
338 void OnMoving(UINT param, const RECT* new_bounds); 337 void OnMoving(UINT param, const RECT* new_bounds);
339 LRESULT OnNCActivate(BOOL active); 338 LRESULT OnNCActivate(BOOL active);
340 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); 339 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param);
341 LRESULT OnNCHitTest(const CPoint& point); 340 LRESULT OnNCHitTest(const CPoint& point);
342 void OnNCPaint(HRGN rgn); 341 void OnNCPaint(HRGN rgn);
343 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); 342 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param);
344 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); 343 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param);
345 LRESULT OnNotify(int w_param, NMHDR* l_param); 344 LRESULT OnNotify(int w_param, NMHDR* l_param);
346 void OnPaint(HDC dc); 345 void OnPaint(HDC dc);
347 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data);
348 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); 346 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param);
349 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); 347 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param);
350 void OnSetFocus(HWND last_focused_window); 348 void OnSetFocus(HWND last_focused_window);
351 LRESULT OnSetIcon(UINT size_type, HICON new_icon); 349 LRESULT OnSetIcon(UINT size_type, HICON new_icon);
352 LRESULT OnSetText(const wchar_t* text); 350 LRESULT OnSetText(const wchar_t* text);
353 void OnSettingChange(UINT flags, const wchar_t* section); 351 void OnSettingChange(UINT flags, const wchar_t* section);
354 void OnSize(UINT param, const CSize& size); 352 void OnSize(UINT param, const CSize& size);
355 void OnSysCommand(UINT notification_code, const CPoint& point); 353 void OnSysCommand(UINT notification_code, const CPoint& point);
356 void OnThemeChanged(); 354 void OnThemeChanged();
357 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); 355 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 458
461 // True the first time nccalc is called on a sizable widget 459 // True the first time nccalc is called on a sizable widget
462 bool is_first_nccalc_; 460 bool is_first_nccalc_;
463 461
464 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 462 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
465 }; 463 };
466 464
467 } // namespace views 465 } // namespace views
468 466
469 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 467 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698