| 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 "chrome/browser/ui/views/extensions/shell_window_frame_view.h" | 5 #include "chrome/browser/ui/views/extensions/shell_window_frame_view.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/ui/views/extensions/native_app_window_views.h" | 8 #include "chrome/browser/ui/views/extensions/native_app_window_views.h" |
| 9 #include "extensions/common/draggable_region.h" | 9 #include "extensions/common/draggable_region.h" |
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 11 #include "grit/ui_strings.h" // Accessibility names | 11 #include "grit/ui_strings.h" // Accessibility names |
| 12 #include "third_party/skia/include/core/SkPaint.h" | 12 #include "third_party/skia/include/core/SkPaint.h" |
| 13 #include "ui/base/hit_test.h" | 13 #include "ui/base/hit_test.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
| 15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 17 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
| 18 #include "ui/gfx/path.h" | 18 #include "ui/gfx/path.h" |
| 19 #include "ui/views/controls/button/image_button.h" | 19 #include "ui/views/controls/button/image_button.h" |
| 20 #include "ui/views/layout/grid_layout.h" | 20 #include "ui/views/layout/grid_layout.h" |
| 21 #include "ui/views/views_delegate.h" | 21 #include "ui/views/views_delegate.h" |
| 22 #include "ui/views/widget/widget.h" | 22 #include "ui/views/widget/widget.h" |
| 23 | 23 |
| 24 #if defined(OS_WIN) && !defined(USE_AURA) | 24 #if defined(OS_WIN) && !defined(USE_AURA) |
| 25 #include "chrome/browser/shell_integration.h" | 25 #include "apps/shell_integration.h" |
| 26 #include "chrome/browser/web_applications/web_app.h" | 26 #include "chrome/browser/web_applications/web_app.h" |
| 27 #include "ui/base/win/shell.h" | 27 #include "ui/base/win/shell.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 #if defined(USE_ASH) | 30 #if defined(USE_ASH) |
| 31 #include "ash/ash_constants.h" | 31 #include "ash/ash_constants.h" |
| 32 #include "chrome/browser/ui/ash/ash_util.h" | 32 #include "chrome/browser/ui/ash/ash_util.h" |
| 33 #include "ui/aura/env.h" | 33 #include "ui/aura/env.h" |
| 34 #endif | 34 #endif |
| 35 | 35 |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 DCHECK(!window_->frameless()); | 361 DCHECK(!window_->frameless()); |
| 362 if (sender == close_button_) | 362 if (sender == close_button_) |
| 363 frame_->Close(); | 363 frame_->Close(); |
| 364 else if (sender == maximize_button_) | 364 else if (sender == maximize_button_) |
| 365 frame_->Maximize(); | 365 frame_->Maximize(); |
| 366 else if (sender == restore_button_) | 366 else if (sender == restore_button_) |
| 367 frame_->Restore(); | 367 frame_->Restore(); |
| 368 else if (sender == minimize_button_) | 368 else if (sender == minimize_button_) |
| 369 frame_->Minimize(); | 369 frame_->Minimize(); |
| 370 } | 370 } |
| OLD | NEW |