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

Side by Side Diff: ash/common/test/test_shelf_item_delegate.cc

Issue 2462753002: Use Ash's ShelfWindowWatcher for app panel windows. (Closed)
Patch Set: Add ShelfWindowWatcherTest, remove ChromeLauncherControllerImplTest panel use. Created 4 years, 1 month 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
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 "ash/common/test/test_shelf_item_delegate.h" 5 #include "ash/common/test/test_shelf_item_delegate.h"
6 6
7 #include "ash/common/wm_lookup.h" 7 #include "ash/common/wm_lookup.h"
8 #include "ash/common/wm_window.h" 8 #include "ash/common/wm_window.h"
9 #include "ui/events/event.h" 9 #include "ui/events/event.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 bool TestShelfItemDelegate::CanPin() const { 64 bool TestShelfItemDelegate::CanPin() const {
65 return true; 65 return true;
66 } 66 }
67 67
68 bool TestShelfItemDelegate::ShouldShowTooltip() { 68 bool TestShelfItemDelegate::ShouldShowTooltip() {
69 return true; 69 return true;
70 } 70 }
71 71
72 bool TestShelfItemDelegate::IsOpen() const {
73 return window_ != nullptr;
74 }
75
72 void TestShelfItemDelegate::Close() {} 76 void TestShelfItemDelegate::Close() {}
73 77
74 } // namespace test 78 } // namespace test
75 } // namespace ash 79 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698