| 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 "ui/app_list/views/app_list_view.h" | 5 #include "ui/app_list/views/app_list_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 new_widget_bounds.set_y(half_app_list_y); | 839 new_widget_bounds.set_y(half_app_list_y); |
| 840 break; | 840 break; |
| 841 } | 841 } |
| 842 case FULLSCREEN_SEARCH: | 842 case FULLSCREEN_SEARCH: |
| 843 case FULLSCREEN_ALL_APPS: | 843 case FULLSCREEN_ALL_APPS: |
| 844 case CLOSED: | 844 case CLOSED: |
| 845 NOTREACHED(); | 845 NOTREACHED(); |
| 846 break; | 846 break; |
| 847 } | 847 } |
| 848 break; | 848 break; |
| 849 case FULLSCREEN_ALL_APPS: | 849 case FULLSCREEN_ALL_APPS: { |
| 850 new_widget_bounds.set_y(0); | 850 new_widget_bounds.set_y(0); |
| 851 AppsContainerView* apps_container_view = |
| 852 app_list_main_view_->contents_view()->apps_container_view(); |
| 853 |
| 854 if (apps_container_view->IsInFolderView()) |
| 855 apps_container_view->app_list_folder_view()->CloseFolderPage(); |
| 856 |
| 851 app_list_main_view_->contents_view()->SetActiveState( | 857 app_list_main_view_->contents_view()->SetActiveState( |
| 852 AppListModel::STATE_APPS); | 858 AppListModel::STATE_APPS); |
| 853 break; | 859 break; |
| 860 } |
| 854 case FULLSCREEN_SEARCH: | 861 case FULLSCREEN_SEARCH: |
| 855 new_widget_bounds.set_y(0); | 862 new_widget_bounds.set_y(0); |
| 856 break; | 863 break; |
| 857 case CLOSED: | 864 case CLOSED: |
| 858 app_list_main_view_->Close(); | 865 app_list_main_view_->Close(); |
| 859 delegate_->Dismiss(); | 866 delegate_->Dismiss(); |
| 860 break; | 867 break; |
| 861 } | 868 } |
| 862 fullscreen_widget_->SetBounds(new_widget_bounds); | 869 fullscreen_widget_->SetBounds(new_widget_bounds); |
| 863 app_list_state_ = new_state_override; | 870 app_list_state_ = new_state_override; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 .work_area() | 965 .work_area() |
| 959 .size(); | 966 .size(); |
| 960 size.Enlarge(0, kShelfSize); | 967 size.Enlarge(0, kShelfSize); |
| 961 fullscreen_widget_->SetSize(size); | 968 fullscreen_widget_->SetSize(size); |
| 962 | 969 |
| 963 // Update the |fullscreen_widget_| bounds to accomodate the new work area. | 970 // Update the |fullscreen_widget_| bounds to accomodate the new work area. |
| 964 SetState(app_list_state_); | 971 SetState(app_list_state_); |
| 965 } | 972 } |
| 966 | 973 |
| 967 } // namespace app_list | 974 } // namespace app_list |
| OLD | NEW |