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_WIDGET_NATIVE_WIDGET_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 // Notifies any owned windows that we're closing. | 535 // Notifies any owned windows that we're closing. |
536 void NotifyOwnedWindowsParentClosing(); | 536 void NotifyOwnedWindowsParentClosing(); |
537 | 537 |
538 // Overridden from internal::InputMethodDelegate | 538 // Overridden from internal::InputMethodDelegate |
539 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; | 539 virtual void DispatchKeyEventPostIME(const KeyEvent& key) OVERRIDE; |
540 | 540 |
541 // Common implementation of fullscreen-related code. This method handles | 541 // Common implementation of fullscreen-related code. This method handles |
542 // changing from windowed mode to a display mode (dubbed fullscreen mode) | 542 // changing from windowed mode to a display mode (dubbed fullscreen mode) |
543 // where the window occupies a fixed portion (possibly 100%) of the screen. | 543 // where the window occupies a fixed portion (possibly 100%) of the screen. |
544 // |fullscreen| specifies whether we are entering or leaving fullscreen mode. | 544 // |fullscreen| specifies whether we are entering or leaving fullscreen mode. |
545 // |window_rect| contains sizing information that describes the portion of the | 545 // |for_metro| specifies whether we are doing this at the behest of a metro |
546 // screen to be occupied. |window_rect| may be a rect of width | 546 // snap transition. |
547 // 0, which indicates that sizing should be skipped when | 547 void SetFullscreenInternal(bool fullscreen, bool for_metro); |
548 // entering fullscreen mode and previously-stored size should | |
549 // be used when exiting fullscreen mode. | |
550 void SetFullscreenInternal(bool fullscreen, | |
551 const gfx::Rect& window_rect); | |
552 | 548 |
553 // A delegate implementation that handles events received here. | 549 // A delegate implementation that handles events received here. |
554 // See class documentation for Widget in widget.h for a note about ownership. | 550 // See class documentation for Widget in widget.h for a note about ownership. |
555 internal::NativeWidgetDelegate* delegate_; | 551 internal::NativeWidgetDelegate* delegate_; |
556 | 552 |
557 // The following factory is used for calls to close the NativeWidgetWin | 553 // The following factory is used for calls to close the NativeWidgetWin |
558 // instance. | 554 // instance. |
559 base::WeakPtrFactory<NativeWidgetWin> close_widget_factory_; | 555 base::WeakPtrFactory<NativeWidgetWin> close_widget_factory_; |
560 | 556 |
561 // The flags currently being used with TrackMouseEvent to track mouse | 557 // The flags currently being used with TrackMouseEvent to track mouse |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 | 680 |
685 // The set of touch devices currently down. | 681 // The set of touch devices currently down. |
686 TouchIDs touch_ids_; | 682 TouchIDs touch_ids_; |
687 | 683 |
688 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); | 684 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); |
689 }; | 685 }; |
690 | 686 |
691 } // namespace views | 687 } // namespace views |
692 | 688 |
693 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ | 689 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ |
OLD | NEW |