| 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 "chrome/browser/chromeos/frame/panel_controller.h" | 5 #include "chrome/browser/chromeos/frame/panel_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | 9 #include "app/resource_bundle.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
| 12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
| 13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/browser.h" | 15 #include "chrome/browser/browser.h" |
| 15 #include "chrome/browser/chromeos/wm_ipc.h" | 16 #include "chrome/browser/chromeos/wm_ipc.h" |
| 16 #include "chrome/common/notification_service.h" | 17 #include "chrome/common/notification_service.h" |
| 17 #include "grit/app_resources.h" | 18 #include "grit/app_resources.h" |
| 18 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
| 20 #include "cros/chromeos_wm_ipc_enums.h" | 21 #include "cros/chromeos_wm_ipc_enums.h" |
| 21 #include "views/controls/button/image_button.h" | 22 #include "views/controls/button/image_button.h" |
| 22 #include "views/controls/image_view.h" | 23 #include "views/controls/image_view.h" |
| 23 #include "views/controls/label.h" | 24 #include "views/controls/label.h" |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 panel_controller_ = NULL; | 365 panel_controller_ = NULL; |
| 365 } | 366 } |
| 366 | 367 |
| 367 void PanelController::TitleContentView::ButtonPressed( | 368 void PanelController::TitleContentView::ButtonPressed( |
| 368 views::Button* sender, const views::Event& event) { | 369 views::Button* sender, const views::Event& event) { |
| 369 if (panel_controller_ && sender == close_button_) | 370 if (panel_controller_ && sender == close_button_) |
| 370 panel_controller_->OnCloseButtonPressed(); | 371 panel_controller_->OnCloseButtonPressed(); |
| 371 } | 372 } |
| 372 | 373 |
| 373 } // namespace chromeos | 374 } // namespace chromeos |
| OLD | NEW |