| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/app_list/views/contents_switcher_view.h" | 5 #include "ui/app_list/views/contents_switcher_view.h" |
| 6 | 6 |
| 7 #include "ui/app_list/app_list_constants.h" | 7 #include "ui/app_list/app_list_constants.h" |
| 8 #include "ui/app_list/views/contents_view.h" | 8 #include "ui/app_list/views/contents_view.h" |
| 9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
| 10 #include "ui/views/controls/button/custom_button.h" | 10 #include "ui/views/controls/button/custom_button.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 gfx::Size buttons_size(buttons_->GetPreferredSize()); | 84 gfx::Size buttons_size(buttons_->GetPreferredSize()); |
| 85 gfx::Rect buttons_bounds(rect.CenterPoint().x() - buttons_size.width() / 2, | 85 gfx::Rect buttons_bounds(rect.CenterPoint().x() - buttons_size.width() / 2, |
| 86 rect.y(), | 86 rect.y(), |
| 87 buttons_size.width(), | 87 buttons_size.width(), |
| 88 rect.height()); | 88 rect.height()); |
| 89 buttons_->SetBoundsRect(gfx::IntersectRects(rect, buttons_bounds)); | 89 buttons_->SetBoundsRect(gfx::IntersectRects(rect, buttons_bounds)); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void ContentsSwitcherView::ButtonPressed(views::Button* sender, | 92 void ContentsSwitcherView::ButtonPressed(views::Button* sender, |
| 93 const ui::Event& event) { | 93 const ui::Event& event) { |
| 94 #ifdef FIXME |
| 94 contents_view_->SetShowState( | 95 contents_view_->SetShowState( |
| 95 static_cast<ContentsView::ShowState>(sender->tag())); | 96 static_cast<ContentsView::ShowState>(sender->tag())); |
| 97 #endif |
| 96 } | 98 } |
| 97 | 99 |
| 98 } // namespace app_list | 100 } // namespace app_list |
| OLD | NEW |