| 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 #include "ui/views/win/fullscreen_handler.h" | 5 #include "ui/views/win/fullscreen_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/win/win_util.h" | 8 #include "base/win/win_util.h" |
| 9 #include "ui/gfx/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 #include "ui/views/win/scoped_fullscreen_visibility.h" | 10 #include "ui/views/win/scoped_fullscreen_visibility.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 //////////////////////////////////////////////////////////////////////////////// | 14 //////////////////////////////////////////////////////////////////////////////// |
| 15 // FullscreenHandler, public: | 15 // FullscreenHandler, public: |
| 16 | 16 |
| 17 FullscreenHandler::FullscreenHandler() | 17 FullscreenHandler::FullscreenHandler() |
| 18 : hwnd_(NULL), | 18 : hwnd_(NULL), |
| 19 fullscreen_(false), | 19 fullscreen_(false), |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 SetWindowPos(hwnd_, NULL, new_rect.x(), new_rect.y(), | 96 SetWindowPos(hwnd_, NULL, new_rect.x(), new_rect.y(), |
| 97 new_rect.width(), new_rect.height(), | 97 new_rect.width(), new_rect.height(), |
| 98 SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED); | 98 SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED); |
| 99 } | 99 } |
| 100 if (saved_window_info_.maximized) | 100 if (saved_window_info_.maximized) |
| 101 ::SendMessage(hwnd_, WM_SYSCOMMAND, SC_MAXIMIZE, 0); | 101 ::SendMessage(hwnd_, WM_SYSCOMMAND, SC_MAXIMIZE, 0); |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 } // namespace views | 105 } // namespace views |
| OLD | NEW |