OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/base_window.h" | 5 #include "ui/base/base_window.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 bool BaseWindow::IsRestored(const BaseWindow& window) { | 9 bool BaseWindow::IsRestored(const BaseWindow& window) { |
10 return !window.IsMaximized() && | 10 return !window.IsMaximized() && |
11 !window.IsMinimized() && | 11 !window.IsMinimized() && |
12 !window.IsFullscreen(); | 12 !window.IsFullscreen(); |
13 } | 13 } |
14 | 14 |
| 15 void BaseWindow::ShowForUserGesture() { |
| 16 Show(); |
| 17 } |
| 18 |
| 19 void BaseWindow::ActivateForUserGesture() { |
| 20 Activate(); |
| 21 } |
| 22 |
15 } // namespace ui | 23 } // namespace ui |
16 | 24 |
OLD | NEW |