| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "ui/app_list/cocoa/app_list_view_controller.h" | 5 #import "ui/app_list/cocoa/app_list_view_controller.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
| 11 #include "skia/ext/skia_utils_mac.h" | 11 #include "skia/ext/skia_utils_mac.h" |
| 12 #include "ui/app_list/app_list_constants.h" | 12 #include "ui/app_list/app_list_constants.h" |
| 13 #include "ui/app_list/app_list_model.h" | 13 #include "ui/app_list/app_list_model.h" |
| 14 #include "ui/app_list/app_list_view_delegate.h" | 14 #include "ui/app_list/app_list_view_delegate.h" |
| 15 #include "ui/app_list/app_list_view_delegate_observer.h" | 15 #include "ui/app_list/app_list_view_delegate_observer.h" |
| 16 #import "ui/app_list/cocoa/app_list_pager_view.h" | 16 #import "ui/app_list/cocoa/app_list_pager_view.h" |
| 17 #import "ui/app_list/cocoa/apps_grid_controller.h" | 17 #import "ui/app_list/cocoa/apps_grid_controller.h" |
| 18 #include "ui/app_list/search_box_model.h" |
| 18 #import "ui/base/cocoa/flipped_view.h" | 19 #import "ui/base/cocoa/flipped_view.h" |
| 19 #include "ui/app_list/search_box_model.h" | |
| 20 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" | 20 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" |
| 21 | 21 |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| 24 // The roundedness of the corners of the bubble. | 24 // The roundedness of the corners of the bubble. |
| 25 const CGFloat kBubbleCornerRadius = 3; | 25 const CGFloat kBubbleCornerRadius = 3; |
| 26 | 26 |
| 27 // Height of the pager. | 27 // Height of the pager. |
| 28 const CGFloat kPagerPreferredHeight = 57; | 28 const CGFloat kPagerPreferredHeight = 57; |
| 29 | 29 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 delegate_->OpenSearchResult( | 359 delegate_->OpenSearchResult( |
| 360 result, false /* auto_launch */, 0 /* event flags */); | 360 result, false /* auto_launch */, 0 /* event flags */); |
| 361 } | 361 } |
| 362 } | 362 } |
| 363 | 363 |
| 364 - (void)onProfilesChanged { | 364 - (void)onProfilesChanged { |
| 365 [appsSearchBoxController_ rebuildMenu]; | 365 [appsSearchBoxController_ rebuildMenu]; |
| 366 } | 366 } |
| 367 | 367 |
| 368 @end | 368 @end |
| OLD | NEW |