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

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: use WS_EX_NOACTIVATE and WS_POPUP instead for window creation 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
« no previous file with comments | « base/system_monitor/system_monitor_win.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 <atlbase.h> 8 #include <atlbase.h>
9 #include <atlapp.h> 9 #include <atlapp.h>
10 #include <atlmisc.h> 10 #include <atlmisc.h>
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) 289 MSG_WM_INPUTLANGCHANGE(OnInputLangChange)
290 MSG_WM_KILLFOCUS(OnKillFocus) 290 MSG_WM_KILLFOCUS(OnKillFocus)
291 MSG_WM_MOVE(OnMove) 291 MSG_WM_MOVE(OnMove)
292 MSG_WM_MOVING(OnMoving) 292 MSG_WM_MOVING(OnMoving)
293 MSG_WM_NCACTIVATE(OnNCActivate) 293 MSG_WM_NCACTIVATE(OnNCActivate)
294 MSG_WM_NCCALCSIZE(OnNCCalcSize) 294 MSG_WM_NCCALCSIZE(OnNCCalcSize)
295 MSG_WM_NCHITTEST(OnNCHitTest) 295 MSG_WM_NCHITTEST(OnNCHitTest)
296 MSG_WM_NCPAINT(OnNCPaint) 296 MSG_WM_NCPAINT(OnNCPaint)
297 MSG_WM_NOTIFY(OnNotify) 297 MSG_WM_NOTIFY(OnNotify)
298 MSG_WM_PAINT(OnPaint) 298 MSG_WM_PAINT(OnPaint)
299 MSG_WM_POWERBROADCAST(OnPowerBroadcast)
300 MSG_WM_SETFOCUS(OnSetFocus) 299 MSG_WM_SETFOCUS(OnSetFocus)
301 MSG_WM_SETICON(OnSetIcon) 300 MSG_WM_SETICON(OnSetIcon)
302 MSG_WM_SETTEXT(OnSetText) 301 MSG_WM_SETTEXT(OnSetText)
303 MSG_WM_SETTINGCHANGE(OnSettingChange) 302 MSG_WM_SETTINGCHANGE(OnSettingChange)
304 MSG_WM_SIZE(OnSize) 303 MSG_WM_SIZE(OnSize)
305 MSG_WM_SYSCOMMAND(OnSysCommand) 304 MSG_WM_SYSCOMMAND(OnSysCommand)
306 MSG_WM_THEMECHANGED(OnThemeChanged) 305 MSG_WM_THEMECHANGED(OnThemeChanged)
307 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging) 306 MSG_WM_WINDOWPOSCHANGING(OnWindowPosChanging)
308 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged) 307 MSG_WM_WINDOWPOSCHANGED(OnWindowPosChanged)
309 END_MSG_MAP() 308 END_MSG_MAP()
(...skipping 29 matching lines...) Expand all
339 void OnMove(const CPoint& point); 338 void OnMove(const CPoint& point);
340 void OnMoving(UINT param, const RECT* new_bounds); 339 void OnMoving(UINT param, const RECT* new_bounds);
341 LRESULT OnNCActivate(BOOL active); 340 LRESULT OnNCActivate(BOOL active);
342 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); 341 LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param);
343 LRESULT OnNCHitTest(const CPoint& point); 342 LRESULT OnNCHitTest(const CPoint& point);
344 void OnNCPaint(HRGN rgn); 343 void OnNCPaint(HRGN rgn);
345 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param); 344 LRESULT OnNCUAHDrawCaption(UINT message, WPARAM w_param, LPARAM l_param);
346 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param); 345 LRESULT OnNCUAHDrawFrame(UINT message, WPARAM w_param, LPARAM l_param);
347 LRESULT OnNotify(int w_param, NMHDR* l_param); 346 LRESULT OnNotify(int w_param, NMHDR* l_param);
348 void OnPaint(HDC dc); 347 void OnPaint(HDC dc);
349 LRESULT OnPowerBroadcast(DWORD power_event, DWORD data);
350 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param); 348 LRESULT OnReflectedMessage(UINT message, WPARAM w_param, LPARAM l_param);
351 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); 349 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param);
352 void OnSetFocus(HWND last_focused_window); 350 void OnSetFocus(HWND last_focused_window);
353 LRESULT OnSetIcon(UINT size_type, HICON new_icon); 351 LRESULT OnSetIcon(UINT size_type, HICON new_icon);
354 LRESULT OnSetText(const wchar_t* text); 352 LRESULT OnSetText(const wchar_t* text);
355 void OnSettingChange(UINT flags, const wchar_t* section); 353 void OnSettingChange(UINT flags, const wchar_t* section);
356 void OnSize(UINT param, const CSize& size); 354 void OnSize(UINT param, const CSize& size);
357 void OnSysCommand(UINT notification_code, const CPoint& point); 355 void OnSysCommand(UINT notification_code, const CPoint& point);
358 void OnThemeChanged(); 356 void OnThemeChanged();
359 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param); 357 LRESULT OnTouchEvent(UINT message, WPARAM w_param, LPARAM l_param);
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 460
463 // True the first time nccalc is called on a sizable widget 461 // True the first time nccalc is called on a sizable widget
464 bool is_first_nccalc_; 462 bool is_first_nccalc_;
465 463
466 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 464 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
467 }; 465 };
468 466
469 } // namespace views 467 } // namespace views
470 468
471 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 469 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « base/system_monitor/system_monitor_win.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698