Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: ui/app_list/cocoa/apps_grid_controller_unittest.mm

Issue 19460003: One-click install for the OSX App Launcher Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Cleaner, more future-proof Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.mm ('k') | ui/app_list/cocoa/apps_grid_view_item.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "base/mac/foundation_util.h" 5 #include "base/mac/foundation_util.h"
6 #include "base/mac/scoped_nsobject.h" 6 #include "base/mac/scoped_nsobject.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "skia/ext/skia_utils_mac.h" 8 #include "skia/ext/skia_utils_mac.h"
9 #import "testing/gtest_mac.h" 9 #import "testing/gtest_mac.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 } 67 }
68 68
69 - (void)pageVisibilityChanged { 69 - (void)pageVisibilityChanged {
70 visibilityDidChange_ = true; 70 visibilityDidChange_ = true;
71 } 71 }
72 72
73 - (NSInteger)pagerSegmentAtLocation:(NSPoint)locationInWindow { 73 - (NSInteger)pagerSegmentAtLocation:(NSPoint)locationInWindow {
74 return hoveredSegmentForTest_; 74 return hoveredSegmentForTest_;
75 } 75 }
76 76
77 - (void)ensureAppsPagesVisible {}
78
77 @end 79 @end
78 80
79 namespace app_list { 81 namespace app_list {
80 namespace test { 82 namespace test {
81 83
82 namespace { 84 namespace {
83 85
84 class AppsGridControllerTest : public AppsGridControllerTestHelper { 86 class AppsGridControllerTest : public AppsGridControllerTestHelper {
85 public: 87 public:
86 AppsGridControllerTest() {} 88 AppsGridControllerTest() {}
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 // Test that a button being held down with the left button does not also show 989 // Test that a button being held down with the left button does not also show
988 // a context menu. 990 // a context menu.
989 [GetItemViewAt(0) highlight:YES]; 991 [GetItemViewAt(0) highlight:YES];
990 EXPECT_FALSE([page menuForEvent:mouse_at_cell_0]); 992 EXPECT_FALSE([page menuForEvent:mouse_at_cell_0]);
991 [GetItemViewAt(0) highlight:NO]; 993 [GetItemViewAt(0) highlight:NO];
992 EXPECT_TRUE([page menuForEvent:mouse_at_cell_0]); 994 EXPECT_TRUE([page menuForEvent:mouse_at_cell_0]);
993 } 995 }
994 996
995 } // namespace test 997 } // namespace test
996 } // namespace app_list 998 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/app_list_view_controller.mm ('k') | ui/app_list/cocoa/apps_grid_view_item.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698