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 #include <stddef.h> | 9 #include <stddef.h> |
10 | 10 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 // Callback if the autohide edges have changed. See | 248 // Callback if the autohide edges have changed. See |
249 // ViewsDelegate::GetAppbarAutohideEdges() for details. | 249 // ViewsDelegate::GetAppbarAutohideEdges() for details. |
250 void OnAppbarAutohideEdgesChanged(); | 250 void OnAppbarAutohideEdgesChanged(); |
251 | 251 |
252 // Can be called after the delegate has had the opportunity to set focus and | 252 // Can be called after the delegate has had the opportunity to set focus and |
253 // did not do so. | 253 // did not do so. |
254 void SetInitialFocus(); | 254 void SetInitialFocus(); |
255 | 255 |
256 // Called after the WM_ACTIVATE message has been processed by the default | 256 // Called after the WM_ACTIVATE message has been processed by the default |
257 // windows procedure. | 257 // windows procedure. |
258 void PostProcessActivateMessage(int activation_state, bool minimized); | 258 void PostProcessActivateMessage( |
| 259 int activation_state, |
| 260 bool minimized, |
| 261 HWND window_gaining_or_losing_activation); |
259 | 262 |
260 // Enables disabled owner windows that may have been disabled due to this | 263 // Enables disabled owner windows that may have been disabled due to this |
261 // window's modality. | 264 // window's modality. |
262 void RestoreEnabledIfNecessary(); | 265 void RestoreEnabledIfNecessary(); |
263 | 266 |
264 // Executes the specified SC_command. | 267 // Executes the specified SC_command. |
265 void ExecuteSystemMenuCommand(int command); | 268 void ExecuteSystemMenuCommand(int command); |
266 | 269 |
267 // Start tracking all mouse events so that this window gets sent mouse leave | 270 // Start tracking all mouse events so that this window gets sent mouse leave |
268 // messages too. | 271 // messages too. |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 | 643 |
641 // The factory used with BEGIN_SAFE_MSG_MAP_EX. | 644 // The factory used with BEGIN_SAFE_MSG_MAP_EX. |
642 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; | 645 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; |
643 | 646 |
644 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); | 647 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); |
645 }; | 648 }; |
646 | 649 |
647 } // namespace views | 650 } // namespace views |
648 | 651 |
649 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ | 652 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ |
OLD | NEW |