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

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

Issue 1707233002: Reduce the fullscreen window height by 1px on activation loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert changes to widget_unittest.cc Created 4 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 | « ui/views/widget/widget_interactive_uitest.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 <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
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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 base::TimeTicks event_time, 498 base::TimeTicks event_time,
496 base::TimeDelta time_stamp, 499 base::TimeDelta time_stamp,
497 TouchEvents* touch_events); 500 TouchEvents* touch_events);
498 501
499 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption. 502 // Handles WM_NCLBUTTONDOWN and WM_NCMOUSEMOVE messages on the caption.
500 // Returns true if the message was handled. 503 // Returns true if the message was handled.
501 bool HandleMouseInputForCaption(unsigned int message, 504 bool HandleMouseInputForCaption(unsigned int message,
502 WPARAM w_param, 505 WPARAM w_param,
503 LPARAM l_param); 506 LPARAM l_param);
504 507
508 // Helper function for setting the bounds of the HWND. For more information
509 // please refer to the SetBounds() function.
510 void SetBoundsInternal(const gfx::Rect& bounds_in_pixels,
511 bool force_size_changed);
512
505 HWNDMessageHandlerDelegate* delegate_; 513 HWNDMessageHandlerDelegate* delegate_;
506 514
507 scoped_ptr<FullscreenHandler> fullscreen_handler_; 515 scoped_ptr<FullscreenHandler> fullscreen_handler_;
508 516
509 // Set to true in Close() and false is CloseNow(). 517 // Set to true in Close() and false is CloseNow().
510 bool waiting_for_close_now_; 518 bool waiting_for_close_now_;
511 519
512 bool remove_standard_frame_; 520 bool remove_standard_frame_;
513 521
514 bool use_system_default_icon_; 522 bool use_system_default_icon_;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 // receive the WM_NCLBUTTONDOWN message. We use this in the subsequent 633 // receive the WM_NCLBUTTONDOWN message. We use this in the subsequent
626 // WM_NCMOUSEMOVE message to see if the mouse actually moved. 634 // WM_NCMOUSEMOVE message to see if the mouse actually moved.
627 // Please refer to the HandleMouseEventInternal function for details on why 635 // Please refer to the HandleMouseEventInternal function for details on why
628 // this is needed. 636 // this is needed.
629 gfx::Point caption_left_button_click_pos_; 637 gfx::Point caption_left_button_click_pos_;
630 638
631 // Set to true if the left mouse button has been pressed on the caption. 639 // Set to true if the left mouse button has been pressed on the caption.
632 // Defaults to false. 640 // Defaults to false.
633 bool left_button_down_on_caption_; 641 bool left_button_down_on_caption_;
634 642
643 // Set to true if the window is a background fullscreen window, i.e a
644 // fullscreen window which lost activation. Defaults to false.
645 bool background_fullscreen_hack_;
646
635 // The WeakPtrFactories below must occur last in the class definition so they 647 // The WeakPtrFactories below must occur last in the class definition so they
636 // get destroyed last. 648 // get destroyed last.
637 649
638 // The factory used to lookup appbar autohide edges. 650 // The factory used to lookup appbar autohide edges.
639 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_; 651 base::WeakPtrFactory<HWNDMessageHandler> autohide_factory_;
640 652
641 // The factory used with BEGIN_SAFE_MSG_MAP_EX. 653 // The factory used with BEGIN_SAFE_MSG_MAP_EX.
642 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_; 654 base::WeakPtrFactory<HWNDMessageHandler> weak_factory_;
643 655
644 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler); 656 DISALLOW_COPY_AND_ASSIGN(HWNDMessageHandler);
645 }; 657 };
646 658
647 } // namespace views 659 } // namespace views
648 660
649 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_ 661 #endif // UI_VIEWS_WIN_HWND_MESSAGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget_interactive_uitest.cc ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698