| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "views/window/window.h" | 5 #include "views/window/window.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "ui/base/l10n/l10n_font_util.h" | 8 #include "ui/base/l10n/l10n_font_util.h" |
| 9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
| 10 #include "ui/gfx/font.h" | 10 #include "ui/gfx/font.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 if (window) { | 42 if (window) { |
| 43 if (!window->IsAppWindow()) | 43 if (!window->IsAppWindow()) |
| 44 window->Close(); | 44 window->Close(); |
| 45 } else { | 45 } else { |
| 46 // If it's not a Window, then close it anyway since it probably is | 46 // If it's not a Window, then close it anyway since it probably is |
| 47 // secondary. | 47 // secondary. |
| 48 widget->Close(); | 48 widget->Close(); |
| 49 } | 49 } |
| 50 } | 50 } |
| 51 | 51 |
| 52 bool Window::IsAppWindow() const { |
| 53 return false; |
| 54 } |
| 55 |
| 52 } // namespace views | 56 } // namespace views |
| OLD | NEW |